EVP_PKEY_CTX_get_signature_md

Retrieve the message digest currently configured for signing or verifying with ctx.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_CTX_get_signature_md(
    EVP_PKEY_CTX* ctx,
    EVP_MD const** md);

Return Value

1 on success, or a non-positive value on error.

Parameters

NameDescription
ctxKey context configured for a signature operation.
mdSet to the digest algorithm previously set with EVP_PKEY_CTX_set_signature_md(), or NULL if unset.