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_locl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/libssl/ssl_locl.h') diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 0dc555f9db..a1b36e549a 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_locl.h,v 1.413 2022/07/10 18:40:55 tb Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.414 2022/07/17 14:49:01 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1066,7 +1066,8 @@ struct ssl_st { */ int version; - const SSL_METHOD *method; /* SSLv3 */ + const SSL_METHOD *method; + const void *quic_method; /* XXX */ /* There are 2 BIO's even though they are normally both the * same. This is so data can be read and written to different -- cgit v1.2.3-55-g6feb