diff options
author | 2019-01-22 01:12:18 +0000 | |
---|---|---|
committer | 2019-01-22 01:12:18 +0000 | |
commit | 6e429577b5f96607419b128214eb56c32117bb45 (patch) | |
tree | 10c97e665b0111b65ceab642755e074acd80ef3c /lib/libssl/ssl_lib.c | |
parent | Add missing symbols from the EC_KEY_METHOD port. (diff) | |
download | wireguard-openbsd-6e429577b5f96607419b128214eb56c32117bb45.tar.xz wireguard-openbsd-6e429577b5f96607419b128214eb56c32117bb45.zip |
Provide SSL_get_client_ciphers().
Part of OpenSSL 1.1 API, pre-licence change.
ok jsing
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r-- | lib/libssl/ssl_lib.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c index e3ab8431ab6..839bead7557 100644 --- a/lib/libssl/ssl_lib.c +++ b/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.199 2019/01/21 14:12:13 tb Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.200 2019/01/22 01:12:18 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1255,6 +1255,14 @@ SSL_get_ciphers(const SSL *s) return (NULL); } +STACK_OF(SSL_CIPHER) * +SSL_get_client_ciphers(const SSL *s) +{ + if (s == NULL || s->session == NULL || !s->server) + return NULL; + return s->session->ciphers; +} + /* * Return a STACK of the ciphers available for the SSL and in order of * algorithm id. |