summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
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