1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

added alert for renegotiation failure

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@172 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2010-05-08 07:37:49 +00:00
parent 596f569e1e
commit e686f3b6c6
4 changed files with 19 additions and 10 deletions

View File

@ -1410,7 +1410,6 @@ int send_alert(SSL *ssl, int error_code)
case SSL_ERROR_INVALID_HANDSHAKE:
case SSL_ERROR_INVALID_PROT_MSG:
case SSL_ERROR_NO_CLIENT_RENOG:
alert_num = SSL_ALERT_HANDSHAKE_FAILURE;
break;
@ -1433,6 +1432,10 @@ int send_alert(SSL *ssl, int error_code)
alert_num = SSL_ALERT_BAD_CERTIFICATE;
break;
case SSL_ERROR_NO_CLIENT_RENOG:
alert_num = SSL_ALERT_NO_RENEGOTIATION;
break;
default:
/* a catch-all for any badly verified certificates */
alert_num = (error_code <= SSL_X509_OFFSET) ?
@ -2032,6 +2035,10 @@ void DISPLAY_ALERT(SSL *ssl, int alert)
printf("decrypt error");
break;
case SSL_ALERT_NO_RENEGOTIATION:
printf("no renegotiation");
break;
default:
printf("alert - (unknown %d)", alert);
break;