diff options
author | jsing <> | 2019-04-22 15:12:20 +0000 |
---|---|---|
committer | jsing <> | 2019-04-22 15:12:20 +0000 |
commit | d01f36627de39df35d37b5b5eb0190e03796fb4b (patch) | |
tree | b05ac1014c562a9129820561b2f5947ae9b3e5a6 /src/lib/libssl/ssl_srvr.c | |
parent | 6b84d880719e36db21e824f5474abd9536466ccb (diff) | |
download | openbsd-d01f36627de39df35d37b5b5eb0190e03796fb4b.tar.gz openbsd-d01f36627de39df35d37b5b5eb0190e03796fb4b.tar.bz2 openbsd-d01f36627de39df35d37b5b5eb0190e03796fb4b.zip |
Pass the session ID down to the session/ticket handling code as a CBS.
Convert ssl_get_prev_session(), tls1_process_ticket() and
tls1_decrypt_ticket() to handle the session ID from the client hello
as a CBS. While here also swap the order of arguments for
tls1_decrypt_ticket() so that it is consistent with the other functions.
ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
-rw-r--r-- | src/lib/libssl/ssl_srvr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c index 0a53343058..809f589653 100644 --- a/src/lib/libssl/ssl_srvr.c +++ b/src/lib/libssl/ssl_srvr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_srvr.c,v 1.67 2019/04/22 14:49:42 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_srvr.c,v 1.68 2019/04/22 15:12:20 jsing 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 | * |
@@ -913,8 +913,7 @@ ssl3_get_client_hello(SSL *s) | |||
913 | 913 | ||
914 | CBS_dup(&cbs, &ext_block); | 914 | CBS_dup(&cbs, &ext_block); |
915 | 915 | ||
916 | i = ssl_get_prev_session(s, CBS_data(&session_id), | 916 | i = ssl_get_prev_session(s, &session_id, &ext_block); |
917 | CBS_len(&session_id), &ext_block); | ||
918 | if (i == 1) { /* previous session */ | 917 | if (i == 1) { /* previous session */ |
919 | s->internal->hit = 1; | 918 | s->internal->hit = 1; |
920 | } else if (i == -1) | 919 | } else if (i == -1) |