libressl-SSL_get_finished3
Get last sent or last expected finished message
Usage
SSL Library (libssl, -lssl) libcrypto
#include <openssl/ssl.h>
size_t
SSL_get_finished(const SSL *ssl, void *buf, size_t count);
size_t
SSL_get_peer_finished(const SSL *ssl, void *buf, size_t count);
Overview
SSL_get_finished() and SSL_get_peer_finished() copy count bytes from the last finished message sent to the peer or expected from the peer into the caller-provided buffer buf.
The finished message is computed from a checksum of the handshake records exchanged with the peer. Its length depends on the ciphersuite in use and is at most EVP_MAX_MD_SIZE, i.e., 64 bytes.
Return values
SSL_get_finished() and SSL_get_peer_finished() return the number of bytes copied into buf. The return value is zero if the handshake has not reached the finished message.