Fix some TLSv1.3 alert issues
[openssl.git] / ssl / tls13_enc.c
index 264381bd00831fde55ed5fb547500afe642f9948..48990fd65c3bb77f2a47b8514eacd5768e6ef0a4 100644 (file)
@@ -701,7 +701,8 @@ int tls13_update_key(SSL *s, int sending)
 
 int tls13_alert_code(int code)
 {
-    if (code == SSL_AD_MISSING_EXTENSION)
+    /* There are 2 additional alerts in TLSv1.3 compared to TLSv1.2 */
+    if (code == SSL_AD_MISSING_EXTENSION || code == SSL_AD_CERTIFICATE_REQUIRED)
         return code;
 
     return tls1_alert_code(code);