summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2018-02-22 17:27:06 +0000
committerjsing <jsing@openbsd.org>2018-02-22 17:27:06 +0000
commit3730db37e7e2c5a8b65f086597444c027600080a (patch)
tree39564a223dbdb8ce3e229d38cc7326c749781ea2 /lib/libssl/ssl_lib.c
parentProvide SSL_SESSION_up_ref(). (diff)
downloadwireguard-openbsd-3730db37e7e2c5a8b65f086597444c027600080a.tar.xz
wireguard-openbsd-3730db37e7e2c5a8b65f086597444c027600080a.zip
Provide SSL_CTX_get_ciphers().
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r--lib/libssl/ssl_lib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index e910d85914f..941a230ab1f 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.176 2018/02/17 15:19:43 jsing Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.177 2018/02/22 17:27:07 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1314,6 +1314,12 @@ SSL_get_cipher_list(const SSL *s, int n)
return (c->name);
}
+STACK_OF(SSL_CIPHER) *
+SSL_CTX_get_ciphers(const SSL_CTX *ctx)
+{
+ return ctx->cipher_list;
+}
+
/* Specify the ciphers to be used by default by the SSL_CTX. */
int
SSL_CTX_set_cipher_list(SSL_CTX *ctx, const char *str)