DH_check_pub_key_ex

Validate a Diffie-Hellman public key and report problems via the error queue (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
int
DH_check_pub_key_ex(
    DH const* dh,
    BIGNUM const* pub_key);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 if the public key looks suitable, or 0 if checks fail (reasons are pushed to the error stack).

Parameters

NameDescription
dhDH object providing the domain parameters used for the check.
pub_keyPublic key value to validate against those parameters.