summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_srvr.c
diff options
context:
space:
mode:
authortb <>2020-09-01 05:32:11 +0000
committertb <>2020-09-01 05:32:11 +0000
commit9a896a8c68a5bbc7e0c50b709ff9c34e5453473e (patch)
treea89badeedfb5b8d164eaebe6f37737ae75e06e2c /src/lib/libssl/ssl_srvr.c
parentf9f2c6158d37416abbdd6c8cdf77912181bbbefc (diff)
downloadopenbsd-9a896a8c68a5bbc7e0c50b709ff9c34e5453473e.tar.gz
openbsd-9a896a8c68a5bbc7e0c50b709ff9c34e5453473e.tar.bz2
openbsd-9a896a8c68a5bbc7e0c50b709ff9c34e5453473e.zip
simplify tls1_process_ticket() exit path
tls1_process_ticket() - the only caller of tls_decrypt_ticket() - ends in a switch over the return value of tls_decrypt_ticket() to decide whether or not to set s->internal->tlsext_ticket_expected = 1. Since tls_decrypt_ticket() already knows what it will return and partly bases its decision on what to return on whether or not the ticket needs to be renewed, it can also take care of setting this flag. This way we don't need to have a confusing switch that conflates some return values and sets this flag. Moreover, we can get rid of the ugly TLS1_TICKET_DECRYPTED_RENEW whose only purpose is to signal that the flag should be set. ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
0 files changed, 0 insertions, 0 deletions