forked from wolfSSL/wolfssl
enable SNI_Callback for lighttpd
This commit is contained in:
committed by
Daniel Pouzzner
parent
be7592fb43
commit
f4e2db831e
@ -27693,7 +27693,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(OPENSSL_ALL) || defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
|
#if defined(OPENSSL_ALL) || defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY) || defined(HAVE_LIGHTY)
|
||||||
if((ret=SNI_Callback(ssl)))
|
if((ret=SNI_Callback(ssl)))
|
||||||
goto out;
|
goto out;
|
||||||
ssl->options.side = WOLFSSL_SERVER_END;
|
ssl->options.side = WOLFSSL_SERVER_END;
|
||||||
@ -30152,7 +30152,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
#endif /* !WOLFSSL_NO_TLS12 */
|
#endif /* !WOLFSSL_NO_TLS12 */
|
||||||
|
|
||||||
#if defined(OPENSSL_ALL) || defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || \
|
#if defined(OPENSSL_ALL) || defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || \
|
||||||
defined(WOLFSSL_HAPROXY)
|
defined(WOLFSSL_HAPROXY) || defined(HAVE_LIGHTY)
|
||||||
int SNI_Callback(WOLFSSL* ssl)
|
int SNI_Callback(WOLFSSL* ssl)
|
||||||
{
|
{
|
||||||
/* Stunnel supports a custom sni callback to switch an SSL's ctx
|
/* Stunnel supports a custom sni callback to switch an SSL's ctx
|
||||||
|
@ -1713,7 +1713,7 @@ WOLFSSL_LOCAL int HashOutput(WOLFSSL* ssl, const byte* output, int sz,
|
|||||||
int ivSz);
|
int ivSz);
|
||||||
WOLFSSL_LOCAL int HashInput(WOLFSSL* ssl, const byte* input, int sz);
|
WOLFSSL_LOCAL int HashInput(WOLFSSL* ssl, const byte* input, int sz);
|
||||||
|
|
||||||
#if defined(OPENSSL_ALL) || defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
|
#if defined(OPENSSL_ALL) || defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY) || defined(HAVE_LIGHTY)
|
||||||
WOLFSSL_LOCAL int SNI_Callback(WOLFSSL* ssl);
|
WOLFSSL_LOCAL int SNI_Callback(WOLFSSL* ssl);
|
||||||
#endif
|
#endif
|
||||||
#ifdef WOLFSSL_TLS13
|
#ifdef WOLFSSL_TLS13
|
||||||
@ -2648,7 +2648,7 @@ struct WOLFSSL_CTX {
|
|||||||
DerBuffer* certificate;
|
DerBuffer* certificate;
|
||||||
DerBuffer* certChain;
|
DerBuffer* certChain;
|
||||||
/* chain after self, in DER, with leading size for each cert */
|
/* chain after self, in DER, with leading size for each cert */
|
||||||
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_EXTRA)
|
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_EXTRA) || defined(HAVE_LIGHTY)
|
||||||
WOLF_STACK_OF(WOLFSSL_X509_NAME)* ca_names;
|
WOLF_STACK_OF(WOLFSSL_X509_NAME)* ca_names;
|
||||||
#endif
|
#endif
|
||||||
#if defined(OPENSSL_ALL) || defined(OPENSSL_EXTRA) || \
|
#if defined(OPENSSL_ALL) || defined(OPENSSL_EXTRA) || \
|
||||||
|
Reference in New Issue
Block a user