diff options
author | Hugo Landau <hlandau@openssl.org> | 2024-01-11 09:17:43 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2024-04-19 09:29:02 +0100 |
commit | b90003009678ed12ccc59b6371592ecdd5d8fa2d (patch) | |
tree | 75e8a613198b38ed24067fa93a50284e8103dc98 /ssl/ssl_lib.c | |
parent | 99af2fc5c2da0feeaa8e61b7c04d5123eab41453 (diff) |
QUIC APL: Add skeleton listener API
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index a08fc013a3..28aa428521 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -7663,6 +7663,18 @@ int SSL_set_value_uint(SSL *s, uint32_t class_, uint32_t id, return 0; } +SSL *SSL_new_listener(SSL_CTX *ctx, uint64_t flags) +{ +#ifndef OPENSSL_NO_QUIC + if (!IS_QUIC_CTX(ctx)) + return NULL; + + return ossl_quic_new_listener(ctx, flags); +#else + return NULL; +#endif +} + int SSL_add_expected_rpk(SSL *s, EVP_PKEY *rpk) { unsigned char *data = NULL; |