summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-11-18 10:46:58 +0000
committertb <>2023-11-18 10:46:58 +0000
commit202f6dd3ad82fa4d195b752e8178e86669956604 (patch)
treeb7db79f783dd2d9eeefaa4547e4f263d10574c40 /src
parentcf1d9118861fb5ec267ff356834308151562d92d (diff)
downloadopenbsd-202f6dd3ad82fa4d195b752e8178e86669956604.tar.gz
openbsd-202f6dd3ad82fa4d195b752e8178e86669956604.tar.bz2
openbsd-202f6dd3ad82fa4d195b752e8178e86669956604.zip
Forgot to fix one unsigned int vs int confusion
CID 468015
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/evp/e_rc2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/e_rc2.c b/src/lib/libcrypto/evp/e_rc2.c
index 501e2dd31f..202abc69c1 100644
--- a/src/lib/libcrypto/evp/e_rc2.c
+++ b/src/lib/libcrypto/evp/e_rc2.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: e_rc2.c,v 1.23 2023/11/18 09:37:15 tb Exp $ */ 1/* $OpenBSD: e_rc2.c,v 1.24 2023/11/18 10:46:58 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 *
@@ -338,7 +338,7 @@ rc2_get_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
338 long num = 0; 338 long num = 0;
339 int i = 0; 339 int i = 0;
340 int key_bits; 340 int key_bits;
341 unsigned int l; 341 int l;
342 unsigned char iv[EVP_MAX_IV_LENGTH]; 342 unsigned char iv[EVP_MAX_IV_LENGTH];
343 343
344 if (type != NULL) { 344 if (type != NULL) {
@@ -348,7 +348,7 @@ rc2_get_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
348 return -1; 348 return -1;
349 } 349 }
350 i = ASN1_TYPE_get_int_octetstring(type, &num, iv, l); 350 i = ASN1_TYPE_get_int_octetstring(type, &num, iv, l);
351 if (i != (int)l) 351 if (i != l)
352 return (-1); 352 return (-1);
353 key_bits = rc2_magic_to_meth((int)num); 353 key_bits = rc2_magic_to_meth((int)num);
354 if (!key_bits) 354 if (!key_bits)