summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2020-12-14 15:20:31 +0000
committertb <>2020-12-14 15:20:31 +0000
commit9045cd98ac0d2004aac7cfc73e33e2d627023748 (patch)
tree9f47279e4108141f8a9527f337f84b1d1d4bf8f9 /src/lib
parent1bf084da2bfa93ca4b6bbae6dcaa8bfbdc8f2b3d (diff)
downloadopenbsd-9045cd98ac0d2004aac7cfc73e33e2d627023748.tar.gz
openbsd-9045cd98ac0d2004aac7cfc73e33e2d627023748.tar.bz2
openbsd-9045cd98ac0d2004aac7cfc73e33e2d627023748.zip
Switch finish{,_peer}_md_len from int to size_t
This is the natural type for these and it simplifies an upcoming commit. The few consumers have been carefully checked to be fine with this. ok inoguchi jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/ssl_locl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 19d883e3b0..80a7d95be5 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.308 2020/12/01 07:46:02 tb Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.309 2020/12/14 15:20:31 tb 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 *
@@ -897,9 +897,9 @@ typedef struct ssl3_state_internal_st {
897 897
898 /* actually only need to be 16+20 for SSLv3 and 12 for TLS */ 898 /* actually only need to be 16+20 for SSLv3 and 12 for TLS */
899 unsigned char finish_md[EVP_MAX_MD_SIZE*2]; 899 unsigned char finish_md[EVP_MAX_MD_SIZE*2];
900 int finish_md_len; 900 size_t finish_md_len;
901 unsigned char peer_finish_md[EVP_MAX_MD_SIZE*2]; 901 unsigned char peer_finish_md[EVP_MAX_MD_SIZE*2];
902 int peer_finish_md_len; 902 size_t peer_finish_md_len;
903 903
904 unsigned long message_size; 904 unsigned long message_size;
905 int message_type; 905 int message_type;