Set the DH key referenced by an EVP_PKEY, incrementing the DH reference count.

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
int
EVP_PKEY_set1_DH(
    EVP_PKEY* pkey,
    dh_st* key);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

pkey

Destination EVP_PKEY to assign.

key

DH key to associate; its reference count is incremented.

Created with MrDocs