summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <>2021-03-29 16:46:09 +0000
committerjsing <>2021-03-29 16:46:09 +0000
commitffd3a25f2822ad41040600e98da045f9f9ca96dd (patch)
tree8a97f354c4119a96736fdf5834563fa25bf10bf4 /src/lib/libssl/ssl_lib.c
parentf431352ee52eb3d8093a86cdc439cd6faf807ca7 (diff)
downloadopenbsd-ffd3a25f2822ad41040600e98da045f9f9ca96dd.tar.gz
openbsd-ffd3a25f2822ad41040600e98da045f9f9ca96dd.tar.bz2
openbsd-ffd3a25f2822ad41040600e98da045f9f9ca96dd.zip
Move finished and peer finished to the handshake struct.
This moves the finish_md and peer_finish_md from the 'tmp' struct to the handshake struct, renaming to finished and peer_finished in the process. This also allows the remaining S3I(s) references to be removed from the TLSv1.3 client and server. ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index c77fdd77e9..892922d761 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.253 2021/03/27 17:56:28 tb Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.254 2021/03/29 16:46:09 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 *
@@ -723,10 +723,10 @@ SSL_get_finished(const SSL *s, void *buf, size_t count)
723{ 723{
724 size_t ret; 724 size_t ret;
725 725
726 ret = S3I(s)->tmp.finish_md_len; 726 ret = S3I(s)->hs.finished_len;
727 if (count > ret) 727 if (count > ret)
728 count = ret; 728 count = ret;
729 memcpy(buf, S3I(s)->tmp.finish_md, count); 729 memcpy(buf, S3I(s)->hs.finished, count);
730 return (ret); 730 return (ret);
731} 731}
732 732
@@ -736,10 +736,10 @@ SSL_get_peer_finished(const SSL *s, void *buf, size_t count)
736{ 736{
737 size_t ret; 737 size_t ret;
738 738
739 ret = S3I(s)->tmp.peer_finish_md_len; 739 ret = S3I(s)->hs.peer_finished_len;
740 if (count > ret) 740 if (count > ret)
741 count = ret; 741 count = ret;
742 memcpy(buf, S3I(s)->tmp.peer_finish_md, count); 742 memcpy(buf, S3I(s)->hs.peer_finished, count);
743 return (ret); 743 return (ret);
744} 744}
745 745