quic: fix quic plugin with openssl 3.x

- load openssl legacy providers during quic init
  when building with openssl 3.0 or greater
- re-enable quic 'make test' testcases on
  ubuntu-22.04

Type: fix

Change-Id: Icfd429b6bc1bddf9f9937baa44cc47cd535ac5f2
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
This commit is contained in:
Dave Wallace
2022-12-20 17:41:43 -05:00
committed by Beno�t Ganne
parent 15952b261f
commit 24adebad27
3 changed files with 15 additions and 2 deletions

View File

@@ -18,6 +18,19 @@
#include <quicly.h>
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
#include <openssl/provider.h>
#define quic_load_openssl3_legacy_provider() \
do \
{ \
(void) OSSL_PROVIDER_load (NULL, "legacy"); \
} \
while (0)
#else
#define quic_load_openssl3_legacy_provider()
#endif
struct quic_ctx_t;
extern ptls_cipher_suite_t *quic_crypto_cipher_suites[];