mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-02 02:02:03 +00:00
BUILD: quic: allow build with USE_QUIC and USE_OPENSSL_WOLFSSL
WolfSSL does not implement the TLS1_3_CK_AES_128_CCM_SHA256 cipher as well as the SSL_ERROR_WANT_ASYNC, SSL_ERROR_WANT_ASYNC_JOB and SSL_ERROR_WANT_CLIENT_HELLO_CB error codes. This patch disables them for WolfSSL. Signed-off-by: William Lallemand <wlallemand@haproxy.org>
This commit is contained in:
parent
334d091b75
commit
b82296c10e
@ -120,8 +120,10 @@ static inline const EVP_CIPHER *tls_aead(const SSL_CIPHER *cipher)
|
||||
case TLS1_3_CK_CHACHA20_POLY1305_SHA256:
|
||||
return EVP_chacha20_poly1305();
|
||||
#endif
|
||||
#ifndef USE_OPENSSL_WOLFSSL
|
||||
case TLS1_3_CK_AES_128_CCM_SHA256:
|
||||
return EVP_aes_128_ccm();
|
||||
#endif
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
@ -242,7 +244,7 @@ static inline const char *ssl_error_str(int err)
|
||||
return "WANT_CONNECT";
|
||||
case SSL_ERROR_WANT_ACCEPT:
|
||||
return "WANT_ACCEPT";
|
||||
#if !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(USE_OPENSSL_WOLFSSL)
|
||||
case SSL_ERROR_WANT_ASYNC:
|
||||
return "WANT_ASYNC";
|
||||
case SSL_ERROR_WANT_ASYNC_JOB:
|
||||
|
Loading…
Reference in New Issue
Block a user