SSL_CIPHER_get_digest_nid

Return the NID of the MAC digest used by a cipher for record protection.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CIPHER_get_digest_nid(SSL_CIPHER const* c);

Return Value

Digest NID, or NID_undef when the suite has no MAC (for example AEAD suites).

Parameters

NameDescription
cCipher suite to query.