summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-06-14 03:54:00 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-06-14 03:54:00 +0000
commitdf7669d4dd6046bf74cf492bcb63916b9cbc447e (patch)
treedade6f9b55c04bd367ae5a5b6cab6742061f5931 /lib
parentfa9fe7b1451997b2e1a989395a4923053507a61f (diff)
Use SSL_AD_INTERNAL_ERROR
One instance of TLS1_AD_* was missed and broke the tree in the recent switch to using only one version of alert defines internally.
Diffstat (limited to 'lib')
-rw-r--r--lib/libtls/tls_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtls/tls_server.c b/lib/libtls/tls_server.c
index 54d220f25a6..0a8ec4728ea 100644
--- a/lib/libtls/tls_server.c
+++ b/lib/libtls/tls_server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_server.c,v 1.46 2021/06/01 19:49:17 tb Exp $ */
+/* $OpenBSD: tls_server.c,v 1.47 2021/06/14 03:53:59 tb Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@ -133,7 +133,7 @@ tls_servername_cb(SSL *ssl, int *al, void *arg)
* There is no way to tell libssl that an internal failure occurred.
* The only option we have is to return a fatal alert.
*/
- *al = TLS1_AD_INTERNAL_ERROR;
+ *al = SSL_AD_INTERNAL_ERROR;
return (SSL_TLSEXT_ERR_ALERT_FATAL);
}