[#EVP_PKEY_get_default_digest_name] = EVP_PKEY_get_default_digest_name :mrdocs: Write the default digest name recommended for signing with `pkey.` == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_get_default_digest_name( xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, char* mdname, size_t mdname_sz); ---- == Return Value 1 if a default digest is required, 2 if any digest is allowed, or a negative/zero value on error. == Parameters [cols="1,4"] |=== | Name| Description | *pkey* | Key whose signature defaults are queried. | *mdname* | Output buffer receiving a NUL‐terminated digest name (for example "SHA256"). | *mdname_sz* | Capacity of `mdname` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#