summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/ssl_lib.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 6adc28a5e3..2bbc8e54d0 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.290 2022/03/18 18:01:17 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.291 2022/06/28 20:34:17 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 *
@@ -3271,6 +3271,30 @@ SSL_CTX_get_ssl_method(const SSL_CTX *ctx)
3271 return ctx->method; 3271 return ctx->method;
3272} 3272}
3273 3273
3274int
3275SSL_CTX_get_security_level(const SSL_CTX *ctx)
3276{
3277 return ctx->internal->cert->security_level;
3278}
3279
3280void
3281SSL_CTX_set_security_level(SSL_CTX *ctx, int level)
3282{
3283 ctx->internal->cert->security_level = level;
3284}
3285
3286int
3287SSL_get_security_level(const SSL *ssl)
3288{
3289 return ssl->cert->security_level;
3290}
3291
3292void
3293SSL_set_security_level(SSL *ssl, int level)
3294{
3295 ssl->cert->security_level = level;
3296}
3297
3274static int 3298static int
3275ssl_cipher_id_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_) 3299ssl_cipher_id_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)
3276{ 3300{