diff options
author | tb <> | 2020-09-01 12:40:53 +0000 |
---|---|---|
committer | tb <> | 2020-09-01 12:40:53 +0000 |
commit | 1e6510105e17f4686509b6cef5e4a607664dd5c0 (patch) | |
tree | 6fdd9e8bc65d3d8f4c0c2ef68a3210541959652c /src/lib/libssl/ssl_srvr.c | |
parent | 74672b5d1316338ff3c0a52e10612b0ba2619c15 (diff) | |
download | openbsd-1e6510105e17f4686509b6cef5e4a607664dd5c0.tar.gz openbsd-1e6510105e17f4686509b6cef5e4a607664dd5c0.tar.bz2 openbsd-1e6510105e17f4686509b6cef5e4a607664dd5c0.zip |
copy session id directly in ssl_get_prev_session
ssl_get_prev_session() hands the session id down to tls_decrypt_ticket()
which then copies it into the session pointer that it is about to return.
It's a lot simpler to retrieve the session pointer and copy the session id
inside ssl_get_prev_session().
Also, 'goto err' directly in TLS1_TICKET_NOT_DECRYPTED instead of skipping
a couple of long if clauses before doing so.
ok inoguchi jsing
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
0 files changed, 0 insertions, 0 deletions