summaryrefslogtreecommitdiff
path: root/lib/libssl/ssl_sess.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/ssl_sess.c')
-rw-r--r--lib/libssl/ssl_sess.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c
index 70c6daa22d7..54e39183f51 100644
--- a/lib/libssl/ssl_sess.c
+++ b/lib/libssl/ssl_sess.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_sess.c,v 1.72 2018/02/17 15:32:20 jsing Exp $ */
+/* $OpenBSD: ssl_sess.c,v 1.73 2018/02/20 18:07:11 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -806,6 +806,12 @@ SSL_SESSION_set_time(SSL_SESSION *s, long t)
return (t);
}
+int
+SSL_SESSION_get_protocol_version(SSL_SESSION *s)
+{
+ return s->ssl_version;
+}
+
X509 *
SSL_SESSION_get0_peer(SSL_SESSION *s)
{