From 9045cd98ac0d2004aac7cfc73e33e2d627023748 Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 14 Dec 2020 15:20:31 +0000 Subject: 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 --- src/lib/libssl/ssl_locl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib') 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 @@ -/* $OpenBSD: ssl_locl.h,v 1.308 2020/12/01 07:46:02 tb Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.309 2020/12/14 15:20:31 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -897,9 +897,9 @@ typedef struct ssl3_state_internal_st { /* actually only need to be 16+20 for SSLv3 and 12 for TLS */ unsigned char finish_md[EVP_MAX_MD_SIZE*2]; - int finish_md_len; + size_t finish_md_len; unsigned char peer_finish_md[EVP_MAX_MD_SIZE*2]; - int peer_finish_md_len; + size_t peer_finish_md_len; unsigned long message_size; int message_type; -- cgit v1.2.3-55-g6feb