summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDennis Jackson <djackson@mozilla.com>2022-07-13 09:56:22 +0000
committerDennis Jackson <djackson@mozilla.com>2022-07-13 09:56:22 +0000
commit27f225efd0d9d32afcfd3a67f6d4f234f372f297 (patch)
treeb1e016568084bb18044f772953b4c9ec325ba988 /lib
parenteacee16592940ba0f4aeb91258ea9a4aa98ae16e (diff)
downloadnss-hg-27f225efd0d9d32afcfd3a67f6d4f234f372f297.tar.gz
Bug 1779285: Add no_application_protocol alert handler and test client error code is set. r=mt,nss-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D151645
Diffstat (limited to 'lib')
-rw-r--r--lib/ssl/ssl3con.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ssl/ssl3con.c b/lib/ssl/ssl3con.c
index aa419bc37..ad7480586 100644
--- a/lib/ssl/ssl3con.c
+++ b/lib/ssl/ssl3con.c
@@ -3136,6 +3136,9 @@ ssl3_HandleAlert(sslSocket *ss, sslBuffer *buf)
case bad_certificate_hash_value:
error = SSL_ERROR_BAD_CERT_HASH_VALUE_ALERT;
break;
+ case no_application_protocol:
+ error = SSL_ERROR_NEXT_PROTOCOL_NO_PROTOCOL;
+ break;
case ech_required:
error = SSL_ERROR_ECH_REQUIRED_ALERT;
break;