Validate a Diffie-Hellman public key and report problems via the error queue (deprecated).
Declared in <openssl/dh.h>
[[deprecated]]
int
DH_check_pub_key_ex(
DH const* dh,
BIGNUM const* pub_key);
Deprecated. Use of this entity is allowed but discouraged.
1 if the public key looks suitable, or 0 if checks fail (reasons are pushed to the error stack).
| Name | Description |
|---|---|
| dh | DH object providing the domain parameters used for the check. |
| pub_key | Public key value to validate against those parameters. |