aboutsummaryrefslogtreecommitdiff
path: root/ssl/ssl_sess.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-08-12 15:02:00 -0400
committerRich Salz <rsalz@openssl.org>2016-08-12 15:23:48 -0400
commite92813234318635639dba0168c7ef5568757449b (patch)
tree308cc03ff9850888b7554359d4292eccfd81b23d /ssl/ssl_sess.c
parentce7a2232f881e241515925bef13229656a0d6d58 (diff)
downloadopenssl-e92813234318635639dba0168c7ef5568757449b.zip
openssl-e92813234318635639dba0168c7ef5568757449b.tar.gz
openssl-e92813234318635639dba0168c7ef5568757449b.tar.bz2
GH1446: Add SSL_SESSION_get0_cipher
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1451)
Diffstat (limited to 'ssl/ssl_sess.c')
-rw-r--r--ssl/ssl_sess.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c
index 44bc8a3..4a58fa5 100644
--- a/ssl/ssl_sess.c
+++ b/ssl/ssl_sess.c
@@ -827,6 +827,11 @@ int SSL_SESSION_get_protocol_version(const SSL_SESSION *s)
return s->ssl_version;
}
+const SSL_CIPHER *SSL_SESSION_get0_cipher(const SSL_SESSION *s)
+{
+ return s->cipher;
+}
+
const char *SSL_SESSION_get0_hostname(const SSL_SESSION *s)
{
return s->tlsext_hostname;