提交 252cfef1 编写于 作者: R Rich Salz

Add missing debug strings.

Found by turning -Wswitch-enum on.
Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 342a1a23
...@@ -43,6 +43,14 @@ const char *SSL_state_string_long(const SSL *s) ...@@ -43,6 +43,14 @@ const char *SSL_state_string_long(const SSL *s)
return "error"; return "error";
switch (SSL_get_state(s)) { switch (SSL_get_state(s)) {
case TLS_ST_CR_CERT_STATUS:
return "SSLv3/TLS read certificate status";
case TLS_ST_CW_NEXT_PROTO:
return "SSLv3/TLS write next proto";
case TLS_ST_SR_NEXT_PROTO:
return "SSLv3/TLS write next proto";
case TLS_ST_SW_CERT_STATUS:
return "SSLv3/TLS write next proto";
case TLS_ST_BEFORE: case TLS_ST_BEFORE:
return "before SSL initialization"; return "before SSL initialization";
case TLS_ST_OK: case TLS_ST_OK:
...@@ -116,6 +124,18 @@ const char *SSL_state_string(const SSL *s) ...@@ -116,6 +124,18 @@ const char *SSL_state_string(const SSL *s)
return "SSLERR"; return "SSLERR";
switch (SSL_get_state(s)) { switch (SSL_get_state(s)) {
case TLS_ST_SR_NEXT_PROTO:
return "TRNP";
case TLS_ST_SW_SESSION_TICKET:
return "TWST";
case TLS_ST_SW_CERT_STATUS:
return "TWCS";
case TLS_ST_CR_CERT_STATUS:
return "TRCS";
case TLS_ST_CR_SESSION_TICKET:
return "TRST";
case TLS_ST_CW_NEXT_PROTO:
return "TWNP";
case TLS_ST_BEFORE: case TLS_ST_BEFORE:
return "PINIT "; return "PINIT ";
case TLS_ST_OK: case TLS_ST_OK:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册