diff options
author | Lyon Chen <lyonplus@gmail.com> | 2016-04-11 10:08:00 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-04-14 08:41:29 -0400 |
commit | 4b6b848785314aa9b62475c520c04f675d6bfa71 (patch) | |
tree | 923aefbadd3f60f03d0d356de8acb3f46ca21489 /ssl | |
parent | ff2344052bfa0132260ee3154962a2552f3d95f5 (diff) | |
download | openssl-new-4b6b848785314aa9b62475c520c04f675d6bfa71.tar.gz |
Add SSL_SESSION_get0_hostname()
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_sess.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index 70e2683ee4..d5b7fe3310 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -925,6 +925,11 @@ long SSL_SESSION_set_time(SSL_SESSION *s, long t) return (t); } +const char *SSL_SESSION_get0_hostname(const SSL_SESSION *s) +{ + return s->tlsext_hostname; +} + int SSL_SESSION_has_ticket(const SSL_SESSION *s) { return (s->tlsext_ticklen > 0) ? 1 : 0; |