summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_sess.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-08-02 13:32:56 +0100
committerPauli <paul.dale@oracle.com>2017-08-09 13:37:06 +1000
commit07927bedf3667f9a9148fb5670fb06124ae8fa59 (patch)
tree7592a7292011164e5ac2c8b5d4a86650f229fc6f /ssl/ssl_sess.c
parent402f26e6ee56ec295e053d1f6455e910ac398149 (diff)
Add an SSL_SESSION_dup() function
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/4072)
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 8cd4355cc6..7336251210 100644
--- a/ssl/ssl_sess.c
+++ b/ssl/ssl_sess.c
@@ -93,6 +93,11 @@ SSL_SESSION *SSL_SESSION_new(void)
return ss;
}
+SSL_SESSION *SSL_SESSION_dup(SSL_SESSION *src)
+{
+ return ssl_session_dup(src, 1);
+}
+
/*
* Create a new SSL_SESSION and duplicate the contents of |src| into it. If
* ticket == 0 then no ticket information is duplicated, otherwise it is.