summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <>2018-02-22 17:27:07 +0000
committerjsing <>2018-02-22 17:27:07 +0000
commit3c72d343814bb45f61c611a44becf544720e907f (patch)
tree58c5691a4893640f4d737caa5cd97369ff3df093 /src/lib/libssl/ssl_lib.c
parent3f262bdf7558414f798ad71985d30e9c6722a52a (diff)
downloadopenbsd-3c72d343814bb45f61c611a44becf544720e907f.tar.gz
openbsd-3c72d343814bb45f61c611a44becf544720e907f.tar.bz2
openbsd-3c72d343814bb45f61c611a44becf544720e907f.zip
Provide SSL_CTX_get_ciphers().
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 e910d85914..941a230ab1 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.176 2018/02/17 15:19:43 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.177 2018/02/22 17:27:07 jsing 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 *
@@ -1314,6 +1314,12 @@ SSL_get_cipher_list(const SSL *s, int n)
1314 return (c->name); 1314 return (c->name);
1315} 1315}
1316 1316
1317STACK_OF(SSL_CIPHER) *
1318SSL_CTX_get_ciphers(const SSL_CTX *ctx)
1319{
1320 return ctx->cipher_list;
1321}
1322
1317/* Specify the ciphers to be used by default by the SSL_CTX. */ 1323/* Specify the ciphers to be used by default by the SSL_CTX. */
1318int 1324int
1319SSL_CTX_set_cipher_list(SSL_CTX *ctx, const char *str) 1325SSL_CTX_set_cipher_list(SSL_CTX *ctx, const char *str)