Validate a Diffie-Hellman public key and return a bitmask of problems (deprecated).
Declared in <openssl/dh.h>
[[deprecated]]
int
DH_check_pub_key(
DH const* dh,
BIGNUM const* pub_key,
int* codes);
Deprecated. Use of this entity is allowed but discouraged.
1 if the check routine ran successfully (inspect codes), or 0 on hard failure.
| Name | Description |
|---|---|
| dh | DH object providing the domain parameters used for the check. |
| pub_key | Public key value to validate against those parameters. |
| codes | Receives zero or a combination of DH_CHECK_PUBKEY_* reason bits. |