Generate a Diffie‐Hellman private/public key pair on dh (deprecated).
Synopsis
Declared in <openssl/dh.h>
[[deprecated]]
int
DH_generate_key(DH* dh);
|
Warning
|
Deprecated. Use of this entity is allowed but discouraged. |
Description
Prefer EVP_PKEY_keygen / EVP_PKEY_derive for new code.
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
dh |
DH object that already holds domain parameters; receives the new key pair. |
Created with MrDocs