summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
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{