diff options
author | tb <> | 2020-09-01 17:25:17 +0000 |
---|---|---|
committer | tb <> | 2020-09-01 17:25:17 +0000 |
commit | a528105b51540c5edf59368d36bf78b914cd2899 (patch) | |
tree | 923a83ec6bfc6873fcf70ec3684be8700290615e /src/lib/libssl/ssl_srvr.c | |
parent | 1e6510105e17f4686509b6cef5e4a607664dd5c0 (diff) | |
download | openbsd-a528105b51540c5edf59368d36bf78b914cd2899.tar.gz openbsd-a528105b51540c5edf59368d36bf78b914cd2899.tar.bz2 openbsd-a528105b51540c5edf59368d36bf78b914cd2899.zip |
Split session retrieval out of ssl_get_prev_session()
In case the session ticket was empty or missing, an attempt is made to
retrieve the session from the internal cache or via a callback. This
code can easily be flattened a bit and factored into two functions. I
decided to wrap those into a third function to make the call from the
switch easier on the eye.
I could have kept the try_session_cache flag, but it now seems rather
pointless and awkwardly named anyway, so I took its negation and named
it ticket_decrypted.
To top things off, a little bit of polish in the exit path.
ok beck inoguchi jsing (with the usual healthy dose of nits)
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
0 files changed, 0 insertions, 0 deletions