diff options
author | jsing <> | 2022-07-17 14:49:01 +0000 |
---|---|---|
committer | jsing <> | 2022-07-17 14:49:01 +0000 |
commit | 3100db9e08c1bf8ebeaea72f76c09b995e5a3159 (patch) | |
tree | 001241ad56345d0205d73382768f030dbfa74ebd /src/lib/libssl/ssl.h | |
parent | 829a175777a008e2d7293b56bb0b6fb5056b0d29 (diff) | |
download | openbsd-3100db9e08c1bf8ebeaea72f76c09b995e5a3159.tar.gz openbsd-3100db9e08c1bf8ebeaea72f76c09b995e5a3159.tar.bz2 openbsd-3100db9e08c1bf8ebeaea72f76c09b995e5a3159.zip |
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 'src/lib/libssl/ssl.h')
-rw-r--r-- | src/lib/libssl/ssl.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index d475cb24ba..03e30441e0 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.220 2022/07/12 14:42:48 kn Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.221 2022/07/17 14:49:01 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1576,7 +1576,9 @@ int SSL_get_security_level(const SSL *ssl); | |||
1576 | void SSL_CTX_set_security_level(SSL_CTX *ctx, int level); | 1576 | void SSL_CTX_set_security_level(SSL_CTX *ctx, int level); |
1577 | int SSL_CTX_get_security_level(const SSL_CTX *ctx); | 1577 | int SSL_CTX_get_security_level(const SSL_CTX *ctx); |
1578 | 1578 | ||
1579 | #ifdef LIBRESSL_INTERNAL | 1579 | #if defined(LIBRESSL_HAS_QUIC) || defined(LIBRESSL_INTERNAL) |
1580 | int SSL_is_quic(const SSL *ssl); | ||
1581 | |||
1580 | /* | 1582 | /* |
1581 | * SSL_set_quic_transport_params configures |ssl| to send |params| (of length | 1583 | * SSL_set_quic_transport_params configures |ssl| to send |params| (of length |
1582 | * |params_len|) in the quic_transport_parameters extension in either the | 1584 | * |params_len|) in the quic_transport_parameters extension in either the |