diff options
| author | tb <> | 2019-01-22 01:12:18 +0000 |
|---|---|---|
| committer | tb <> | 2019-01-22 01:12:18 +0000 |
| commit | 3099ee288a8e9d7cb1cbfb81c3409c0300965bcb (patch) | |
| tree | c4cd8d23400b7f35a0bd063c1aa0503727c5263e /src/lib/libssl/ssl_lib.c | |
| parent | 5bcf112b6415a5cd571e1429f9d206e00660c059 (diff) | |
| download | openbsd-3099ee288a8e9d7cb1cbfb81c3409c0300965bcb.tar.gz openbsd-3099ee288a8e9d7cb1cbfb81c3409c0300965bcb.tar.bz2 openbsd-3099ee288a8e9d7cb1cbfb81c3409c0300965bcb.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.c | 10 |
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 | ||
| 1258 | STACK_OF(SSL_CIPHER) * | ||
| 1259 | SSL_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. |
