[#EVP_PKEY_get_default_digest_nid] = EVP_PKEY_get_default_digest_nid :mrdocs: Return the default message‐digest NID associated with `pkey.` == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_get_default_digest_nid( xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, int* pnid); ---- == Return Value 1 if an advisory default was returned, 2 if the digest is mandatory, or a non‐positive value on error. == Parameters [cols="1,4"] |=== | Name| Description | *pkey* | Key whose signature defaults are queried. | *pnid* | Receives the NID (for example NID_sha256), or NID_undef when unrestricted. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#