summaryrefslogtreecommitdiff
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2021-03-29 16:46:10 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2021-03-29 16:46:10 +0000
commit7f0b6ce91ab96606b121740b976f9be507396f0a (patch)
tree8a2dd8c07d5167124930ebb1153dfab9e71ed3aa /lib/libssl/ssl_lib.c
parentb15e56bbf0159b31704b988639b29eeef83dcbd7 (diff)
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 'lib/libssl/ssl_lib.c')
-rw-r--r--lib/libssl/ssl_lib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index c77fdd77e98..892922d7611 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.253 2021/03/27 17:56:28 tb Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.254 2021/03/29 16:46:09 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -723,10 +723,10 @@ SSL_get_finished(const SSL *s, void *buf, size_t count)
{
size_t ret;
- ret = S3I(s)->tmp.finish_md_len;
+ ret = S3I(s)->hs.finished_len;
if (count > ret)
count = ret;
- memcpy(buf, S3I(s)->tmp.finish_md, count);
+ memcpy(buf, S3I(s)->hs.finished, count);
return (ret);
}
@@ -736,10 +736,10 @@ SSL_get_peer_finished(const SSL *s, void *buf, size_t count)
{
size_t ret;
- ret = S3I(s)->tmp.peer_finish_md_len;
+ ret = S3I(s)->hs.peer_finished_len;
if (count > ret)
count = ret;
- memcpy(buf, S3I(s)->tmp.peer_finish_md, count);
+ memcpy(buf, S3I(s)->hs.peer_finished, count);
return (ret);
}