Add Error state
Reusing an SSL object when it has encountered a fatal error can have bad consequences. This is a bug in application code not libssl but libssl should be more forgiving and not crash. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
@@ -117,6 +117,9 @@ const char *SSL_state_string_long(const SSL *s)
|
||||
case SSL_ST_OK | SSL_ST_ACCEPT:
|
||||
str = "ok/accept SSL initialization";
|
||||
break;
|
||||
case SSL_ST_ERR:
|
||||
str = "error";
|
||||
break;
|
||||
|
||||
#ifndef OPENSSL_NO_SSL3
|
||||
/* SSLv3 additions */
|
||||
@@ -360,6 +363,9 @@ const char *SSL_state_string(const SSL *s)
|
||||
case SSL_ST_OK:
|
||||
str = "SSLOK ";
|
||||
break;
|
||||
case SSL_ST_ERR:
|
||||
str = "SSLERR";
|
||||
break;
|
||||
|
||||
#ifndef OPENSSL_NO_SSL3
|
||||
/* SSLv3 additions */
|
||||
|
Reference in New Issue
Block a user