diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2022-07-17 14:49:02 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2022-07-17 14:49:02 +0000 |
commit | e6b40e74027b62b92d61555dbd19efb84c409f7c (patch) | |
tree | d906bbe654c279f16155ea96cb95ad2208b1c02c /lib/libssl/ssl_lib.c | |
parent | 1a1e87aee7fc40cef4647900cb7ac8cea848b7eb (diff) |
Provide SSL_is_quic()
This function will allow code to know if the SSL connection is configured
for use with QUIC or not. Also move existing SSL_.*quic.* functions under
LIBRESSL_HAS_QUIC to prevent exposing them prematurely.
ok beck@ tb@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r-- | lib/libssl/ssl_lib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c index 2cdcef444c4..860a58ddd15 100644 --- a/lib/libssl/ssl_lib.c +++ b/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.295 2022/07/02 16:31:04 tb Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.296 2022/07/17 14:49:01 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -3316,6 +3316,12 @@ OBJ_bsearch_ssl_cipher_id(SSL_CIPHER *key, SSL_CIPHER const *base, int num) } int +SSL_is_quic(const SSL *ssl) +{ + return ssl->quic_method != NULL; +} + +int SSL_set_quic_transport_params(SSL *ssl, const uint8_t *params, size_t params_len) { |