diff options
author | 2018-03-17 15:55:52 +0000 | |
---|---|---|
committer | 2018-03-17 15:55:52 +0000 | |
commit | 1a87ffcc37d89003f2f6d5a55cd93f9dd8621d45 (patch) | |
tree | 2909fa980207786279691825088bad76d760ce7e /lib/libssl/ssl_sess.c | |
parent | Provide SSL_CTX_get_default_passwd_cb{,_userdata}() (diff) | |
download | wireguard-openbsd-1a87ffcc37d89003f2f6d5a55cd93f9dd8621d45.tar.xz wireguard-openbsd-1a87ffcc37d89003f2f6d5a55cd93f9dd8621d45.zip |
Provide SSL_SESSION_get_ticket_lifetime_hint() and
SSL_SESSION_has_ticket()
ok jsing
Diffstat (limited to 'lib/libssl/ssl_sess.c')
-rw-r--r-- | lib/libssl/ssl_sess.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c index b97dfd78672..4903719fb39 100644 --- a/lib/libssl/ssl_sess.c +++ b/lib/libssl/ssl_sess.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_sess.c,v 1.76 2018/03/17 14:47:48 tb Exp $ */ +/* $OpenBSD: ssl_sess.c,v 1.77 2018/03/17 15:55:53 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -249,6 +249,18 @@ SSL_SESSION_get_compress_id(const SSL_SESSION *ss) return 0; } +unsigned long +SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s) +{ + return s->tlsext_tick_lifetime_hint; +} + +int +SSL_SESSION_has_ticket(const SSL_SESSION *s) +{ + return (s->tlsext_ticklen > 0) ? 1 : 0; +} + /* * SSLv3/TLSv1 has 32 bytes (256 bits) of session ID space. As such, filling * the ID with random gunk repeatedly until we have no conflict is going to |