diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-04-18 19:30:54 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-12 14:47:11 +0100 |
commit | e1dee2e37971e068d6aff25dbfc92ef4db5adbd9 (patch) | |
tree | e17fffcc4083baa2e1cd097d3206daaae65d0a21 /ssl | |
parent | 020d0389396d0ee01041188a3d1b211a1d6b6c6a (diff) |
QUIC DISPATCH/APL: Implement SSL_is_connection
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 31905a23d4..29d16107ae 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -7323,6 +7323,11 @@ SSL *SSL_get0_connection(SSL *s) #endif } +int SSL_is_connection(SSL *s) +{ + return SSL_get0_connection(s) == s; +} + int SSL_add_expected_rpk(SSL *s, EVP_PKEY *rpk) { unsigned char *data = NULL; |