Revert "Throw a handshake failure if we cannot find the given SNI hostname."

This reverts commit afd4182975.
This commit is contained in:
Joris Vink 2016-06-09 13:52:37 +02:00
parent afd4182975
commit 89f81a8b5a
1 changed files with 2 additions and 3 deletions

View File

@ -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