summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authortb <>2021-05-10 17:05:26 +0000
committertb <>2021-05-10 17:05:26 +0000
commit365b597795feb239f1389fd3c6516095ee9efe14 (patch)
tree4b4347727d1d092b6a5540771bbb5a85e1db59c8 /src/lib/libssl/ssl_lib.c
parentc0bbd8901c307ebd2ab88321036be666f5c05fe5 (diff)
downloadopenbsd-365b597795feb239f1389fd3c6516095ee9efe14.tar.gz
openbsd-365b597795feb239f1389fd3c6516095ee9efe14.tar.bz2
openbsd-365b597795feb239f1389fd3c6516095ee9efe14.zip
Provide SSL_CTX_get_ssl_method(3)
ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 44cc1ed323..2e3be8b13f 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.255 2021/03/29 16:57:38 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.256 2021/05/10 17:05:26 tb 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 *
@@ -3058,6 +3058,12 @@ SSL_set_max_proto_version(SSL *ssl, uint16_t version)
3058 &ssl->internal->max_proto_version); 3058 &ssl->internal->max_proto_version);
3059} 3059}
3060 3060
3061const SSL_METHOD *
3062SSL_CTX_get_ssl_method(const SSL_CTX *ctx)
3063{
3064 return ctx->method;
3065}
3066
3061static int 3067static int
3062ssl_cipher_id_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_) 3068ssl_cipher_id_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)
3063{ 3069{