From: Richard Levitte Date: Tue, 19 Jul 2016 09:50:31 +0000 (+0200) Subject: Fixup a few SSLerr calls in ssl/statem/ X-Git-Tag: OpenSSL_1_1_0-pre6~173 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=340a282853abbc9a95bfe63f58e6451a271df5a6;p=oweals%2Fopenssl.git Fixup a few SSLerr calls in ssl/statem/ Reviewed-by: Rich Salz --- diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c index 60aecdbb3c..bef2583c32 100644 --- a/ssl/statem/statem_clnt.c +++ b/ssl/statem/statem_clnt.c @@ -268,7 +268,7 @@ int ossl_statem_client_read_transition(SSL *s, int mt) err: /* No valid transition found */ ssl3_send_alert(s, SSL3_AL_FATAL, SSL3_AD_UNEXPECTED_MESSAGE); - SSLerr(SSL_F_READ_STATE_MACHINE, SSL_R_UNEXPECTED_MESSAGE); + SSLerr(SSL_F_OSSL_STATEM_CLIENT_READ_TRANSITION, SSL_R_UNEXPECTED_MESSAGE); return 0; } diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c index d38fc3a892..a45acbd30c 100644 --- a/ssl/statem/statem_srvr.c +++ b/ssl/statem/statem_srvr.c @@ -113,7 +113,7 @@ int ossl_statem_server_read_transition(SSL *s, int mt) */ ssl3_send_alert(s, SSL3_AL_FATAL, SSL3_AD_HANDSHAKE_FAILURE); - SSLerr(SSL_F_READ_STATE_MACHINE, + SSLerr(SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION, SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE); return 0; } @@ -214,7 +214,7 @@ int ossl_statem_server_read_transition(SSL *s, int mt) /* No valid transition found */ ssl3_send_alert(s, SSL3_AL_FATAL, SSL3_AD_UNEXPECTED_MESSAGE); - SSLerr(SSL_F_READ_STATE_MACHINE, SSL_R_UNEXPECTED_MESSAGE); + SSLerr(SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION, SSL_R_UNEXPECTED_MESSAGE); return 0; }