diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-08-11 23:18:29 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-08-11 23:18:29 +0000 |
commit | 6434abbfc6ac0d5cb882844ed10fef5821039cf6 (patch) | |
tree | 04b0b4626e1ccd18fb80965716957144ceb839b9 /ssl/ssl_txt.c | |
parent | e45c100762baaaa0bfd9e9db136192ec09286a55 (diff) | |
download | openssl-new-6434abbfc6ac0d5cb882844ed10fef5821039cf6.tar.gz |
RFC4507 (including RFC4507bis) TLS stateless session resumption support
for OpenSSL.
Diffstat (limited to 'ssl/ssl_txt.c')
-rw-r--r-- | ssl/ssl_txt.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ssl/ssl_txt.c b/ssl/ssl_txt.c index 22f9a403af..26dee73bfa 100644 --- a/ssl/ssl_txt.c +++ b/ssl/ssl_txt.c @@ -183,6 +183,22 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) if (BIO_puts(bp,"\n PSK identity hint: ") <= 0) goto err; if (BIO_printf(bp, "%s", x->psk_identity_hint ? x->psk_identity_hint : "None") <= 0) goto err; #endif +#ifndef OPENSSL_NO_TLSEXT + if (x->tlsext_tick_lifetime_hint) + { + if (BIO_printf(bp, + "\n TLS session ticket lifetime hint: %ld (seconds)", + x->tlsext_tick_lifetime_hint) <=0) + goto err; + } + if (x->tlsext_tick) + { + if (BIO_puts(bp, "\n TLS session ticket:\n") <= 0) goto err; + if (BIO_dump_indent(bp, (char *)x->tlsext_tick, x->tlsext_ticklen, 4) <= 0) + goto err; + } +#endif + #ifndef OPENSSL_NO_COMP if (x->compress_meth != 0) { |