commit 89f81a8b5a03ad8e28ee2fc9d668462c15aa757b
parent afd418297550d3de0e133e8f5de0881ae31855ad
Author: Joris Vink <joris@coders.se>
Date: Thu, 9 Jun 2016 13:52:37 +0200
Revert "Throw a handshake failure if we cannot find the given SNI hostname."
This reverts commit afd418297550d3de0e133e8f5de0881ae31855ad.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/kore.c b/src/kore.c
@@ -202,7 +202,7 @@ main(int argc, char *argv[])
#if !defined(KORE_NO_TLS)
int
-kore_tls_sni_cb(SSL *ssl, int *al, void *arg)
+kore_tls_sni_cb(SSL *ssl, int *ad, void *arg)
{
struct kore_domain *dom;
const char *sname;
@@ -224,8 +224,7 @@ kore_tls_sni_cb(SSL *ssl, int *al, void *arg)
return (SSL_TLSEXT_ERR_OK);
}
- *al = SSL_AD_HANDSHAKE_FAILURE;
- return (SSL_TLSEXT_ERR_ALERT_FATAL);
+ return (SSL_TLSEXT_ERR_NOACK);
}
void