summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authortb <>2019-01-22 01:12:18 +0000
committertb <>2019-01-22 01:12:18 +0000
commitbd68e8ca28679b15d2f2db1e696ed66903f425a6 (patch)
treec4cd8d23400b7f35a0bd063c1aa0503727c5263e /src/lib/libssl/ssl_lib.c
parentdf28bcfd8ca7899fe1720f88f176c93f2e320329 (diff)
downloadopenbsd-bd68e8ca28679b15d2f2db1e696ed66903f425a6.tar.gz
openbsd-bd68e8ca28679b15d2f2db1e696ed66903f425a6.tar.bz2
openbsd-bd68e8ca28679b15d2f2db1e696ed66903f425a6.zip
Provide SSL_get_client_ciphers().
Part of OpenSSL 1.1 API, pre-licence change. ok jsing
Diffstat (limited to '')
-rw-r--r--src/lib/libssl/ssl_lib.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index e3ab8431ab..839bead755 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.199 2019/01/21 14:12:13 tb Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.200 2019/01/22 01:12:18 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 *
@@ -1255,6 +1255,14 @@ SSL_get_ciphers(const SSL *s)
1255 return (NULL); 1255 return (NULL);
1256} 1256}
1257 1257
1258STACK_OF(SSL_CIPHER) *
1259SSL_get_client_ciphers(const SSL *s)
1260{
1261 if (s == NULL || s->session == NULL || !s->server)
1262 return NULL;
1263 return s->session->ciphers;
1264}
1265
1258/* 1266/*
1259 * Return a STACK of the ciphers available for the SSL and in order of 1267 * Return a STACK of the ciphers available for the SSL and in order of
1260 * algorithm id. 1268 * algorithm id.