Rework the decrypt ticket callback
authorMatt Caswell <matt@openssl.org>
Wed, 9 May 2018 17:22:36 +0000 (18:22 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 11 May 2018 13:51:09 +0000 (14:51 +0100)
commit61fb59238dad6452a37ec14513fae617a4faef29
tree5737eeba510f7a64792d3ac007f794d62a2dcb8a
parentc20e3b282c26205f39a89a23664245475d4d7cbc
Rework the decrypt ticket callback

Don't call the decrypt ticket callback if we've already encountered a
fatal error. Do call it if we have an empty ticket present.

Change the return code to have 5 distinct returns codes and separate it
from the input status value.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6198)
doc/man3/SSL_CTX_set_session_ticket_cb.pod
include/openssl/ssl.h
ssl/ssl_locl.h
ssl/ssl_sess.c
ssl/statem/extensions_srvr.c
ssl/statem/statem_srvr.c
ssl/t1_lib.c
test/handshake_helper.c
test/sslapitest.c