summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_err.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-11-23 12:10:54 +0000
committerMatt Caswell <matt@openssl.org>2017-12-04 13:31:48 +0000
commit47e2ee072290db534720565318f0a8110a2e7d92 (patch)
treede0339da635ef1d0d1905b242ee4ed9fbe174183 /ssl/ssl_err.c
parent635c8f771574fbf48281b2372a2f7aba0c673544 (diff)
Add some sanity checks for the fatal error condition
Sometimes at the top level of the state machine code we know we are supposed to be in a fatal error condition. This commit adds some sanity checks to ensure that SSLfatal() has been called. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4778)
Diffstat (limited to 'ssl/ssl_err.c')
-rw-r--r--ssl/ssl_err.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/ssl_err.c b/ssl/ssl_err.c
index 88e741e9fd..b9bef5aa95 100644
--- a/ssl/ssl_err.c
+++ b/ssl/ssl_err.c
@@ -877,6 +877,7 @@ static const ERR_STRING_DATA SSL_str_reasons[] = {
"missing dsa signing cert"},
{ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_ECDSA_SIGNING_CERT),
"missing ecdsa signing cert"},
+ {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_FATAL), "missing fatal"},
{ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_RSA_CERTIFICATE),
"missing rsa certificate"},
{ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_RSA_ENCRYPTING_CERT),