Make sure we can query the SSL object for version info when using QUIC
authorMatt Caswell <matt@openssl.org>
Wed, 29 Mar 2023 15:25:00 +0000 (16:25 +0100)
committerPauli <pauli@openssl.org>
Mon, 3 Apr 2023 23:06:18 +0000 (09:06 +1000)
commit50769b15ea76123406b5ccebe85b2402e64e9fc6
treeb16643909c459aa6c1dd2ca246d9e4915205b52f
parenta76ccb9d0ddc24f6551afbc220b41fb3c4e64c6a
Make sure we can query the SSL object for version info when using QUIC

We have the existing functions SSL_version(), SSL_get_version() and
SSL_is_dtls(). We extend the first two to return something sensible when
using QUIC. We additionally provide the new functions SSL_is_tls() and
SSL_is_quic() to provide a mechanism to figure out what protocol we are
using.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20650)
include/openssl/prov_ssl.h
include/openssl/ssl.h.in
ssl/ssl_lib.c
util/libssl.num