Return the default message-digest NID associated with pkey.
Declared in <openssl/evp.h>
int
EVP_PKEY_get_default_digest_nid(
EVP_PKEY* pkey,
int* pnid);
1 if an advisory default was returned, 2 if the digest is mandatory, or a non-positive value on error.
| Name | Description |
|---|---|
| pkey | Key whose signature defaults are queried. |
| pnid | Receives the NID (for example NID_sha256), or NID_undef when unrestricted. |