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_locl.h | |
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_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 2f8ba1fc09..bd210cdce5 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.287 2020/09/01 05:32:11 tb Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.288 2020/09/01 12:40:53 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1403,8 +1403,7 @@ int ssl_check_serverhello_tlsext(SSL *s); | |||
1403 | #define TLS1_TICKET_NOT_DECRYPTED 2 | 1403 | #define TLS1_TICKET_NOT_DECRYPTED 2 |
1404 | #define TLS1_TICKET_DECRYPTED 3 | 1404 | #define TLS1_TICKET_DECRYPTED 3 |
1405 | 1405 | ||
1406 | int tls1_process_ticket(SSL *s, CBS *session_id, CBS *ext_block, | 1406 | int tls1_process_ticket(SSL *s, CBS *ext_block, int *alert, SSL_SESSION **ret); |
1407 | int *alert, SSL_SESSION **ret); | ||
1408 | 1407 | ||
1409 | long ssl_get_algorithm2(SSL *s); | 1408 | long ssl_get_algorithm2(SSL *s); |
1410 | 1409 | ||