BUILD: ssl: fix build with wolfSSL

fix build with wolfSSL, broken since the reorg in src/ssl_clienthello.c
This commit is contained in:
William Lallemand 2024-06-13 17:01:45 +02:00
parent 4ced880d22
commit 5149cc4990
2 changed files with 4 additions and 1 deletions

View File

@ -112,6 +112,9 @@ int ssl_sock_switchctx_cbk(SSL *ssl, int *al, void *arg);
#else /* ! HAVE_SSL_CLIENT_HELLO_CB */ #else /* ! HAVE_SSL_CLIENT_HELLO_CB */
int ssl_sock_switchctx_cbk(SSL *ssl, int *al, void *priv); int ssl_sock_switchctx_cbk(SSL *ssl, int *al, void *priv);
#endif #endif
#ifdef USE_OPENSSL_WOLFSSL
int ssl_sock_switchctx_wolfSSL_cbk(WOLFSSL* ssl, void* arg);
#endif
int increment_sslconn(); int increment_sslconn();
void ssl_sock_load_cert_sni(struct ckch_inst *ckch_inst, struct bind_conf *bind_conf); void ssl_sock_load_cert_sni(struct ckch_inst *ckch_inst, struct bind_conf *bind_conf);

View File

@ -545,7 +545,7 @@ int ssl_sock_switchctx_cbk(SSL *ssl, int *al, void *priv)
* *
* Not activated for now since the PR is not merged. * Not activated for now since the PR is not merged.
*/ */
static int ssl_sock_switchctx_wolfSSL_cbk(WOLFSSL* ssl, void* arg) int ssl_sock_switchctx_wolfSSL_cbk(WOLFSSL* ssl, void* arg)
{ {
struct bind_conf *s = arg; struct bind_conf *s = arg;
int has_rsa_sig = 0, has_ecdsa_sig = 0; int has_rsa_sig = 0, has_ecdsa_sig = 0;