From d01f36627de39df35d37b5b5eb0190e03796fb4b Mon Sep 17 00:00:00 2001 From: jsing <> Date: Mon, 22 Apr 2019 15:12:20 +0000 Subject: 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@ --- src/lib/libssl/ssl_srvr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/libssl/ssl_srvr.c') 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 @@ -/* $OpenBSD: ssl_srvr.c,v 1.67 2019/04/22 14:49:42 jsing Exp $ */ +/* $OpenBSD: ssl_srvr.c,v 1.68 2019/04/22 15:12:20 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -913,8 +913,7 @@ ssl3_get_client_hello(SSL *s) CBS_dup(&cbs, &ext_block); - i = ssl_get_prev_session(s, CBS_data(&session_id), - CBS_len(&session_id), &ext_block); + i = ssl_get_prev_session(s, &session_id, &ext_block); if (i == 1) { /* previous session */ s->internal->hit = 1; } else if (i == -1) -- cgit v1.2.3-55-g6feb