diff options
author | tb <> | 2020-09-01 17:25:17 +0000 |
---|---|---|
committer | tb <> | 2020-09-01 17:25:17 +0000 |
commit | a876570919607f69ce88f4445c88472ef9269f8d (patch) | |
tree | 923a83ec6bfc6873fcf70ec3684be8700290615e /src/lib/libc/stdlib/malloc.c | |
parent | 9f988c795fd8a5ef1dcaff20a0704bca35366cfe (diff) | |
download | openbsd-a876570919607f69ce88f4445c88472ef9269f8d.tar.gz openbsd-a876570919607f69ce88f4445c88472ef9269f8d.tar.bz2 openbsd-a876570919607f69ce88f4445c88472ef9269f8d.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/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions