From 3100db9e08c1bf8ebeaea72f76c09b995e5a3159 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 17 Jul 2022 14:49:01 +0000 Subject: 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@ --- src/lib/libssl/ssl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib/libssl/ssl.h') 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 @@ -/* $OpenBSD: ssl.h,v 1.220 2022/07/12 14:42:48 kn Exp $ */ +/* $OpenBSD: ssl.h,v 1.221 2022/07/17 14:49:01 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1576,7 +1576,9 @@ int SSL_get_security_level(const SSL *ssl); void SSL_CTX_set_security_level(SSL_CTX *ctx, int level); int SSL_CTX_get_security_level(const SSL_CTX *ctx); -#ifdef LIBRESSL_INTERNAL +#if defined(LIBRESSL_HAS_QUIC) || defined(LIBRESSL_INTERNAL) +int SSL_is_quic(const SSL *ssl); + /* * SSL_set_quic_transport_params configures |ssl| to send |params| (of length * |params_len|) in the quic_transport_parameters extension in either the -- cgit v1.2.3-55-g6feb