store and print out message digest peer signed with in TLS 1.2
(backport from HEAD)
This commit is contained in:
@@ -914,6 +914,11 @@ int tls12_check_peer_sigalg(const EVP_MD **pmd, SSL *s,
|
||||
SSLerr(SSL_F_TLS12_CHECK_PEER_SIGALG,SSL_R_UNKNOWN_DIGEST);
|
||||
return 0;
|
||||
}
|
||||
/* Store the digest used so applications can retrieve it if they
|
||||
* wish.
|
||||
*/
|
||||
if (s->session && s->session->sess_cert)
|
||||
s->session->sess_cert->peer_key->digest = *pmd;
|
||||
return 1;
|
||||
}
|
||||
/* Get a mask of disabled algorithms: an algorithm is disabled
|
||||
|
Reference in New Issue
Block a user