summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-11-18 10:46:59 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-11-18 10:46:59 +0000
commita24e17ca164782d0a4a99d6a54299780a6739ff9 (patch)
tree6bad9e1b7d4874e517376c354d3e80d5fd821d69 /lib/libcrypto
parentfd3e26fa3dc1b35d584ae04d700da01386dfe248 (diff)
Forgot to fix one unsigned int vs int confusion
CID 468015
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/evp/e_rc2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/evp/e_rc2.c b/lib/libcrypto/evp/e_rc2.c
index 501e2dd31fe..202abc69c1c 100644
--- a/lib/libcrypto/evp/e_rc2.c
+++ b/lib/libcrypto/evp/e_rc2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: e_rc2.c,v 1.23 2023/11/18 09:37:15 tb Exp $ */
+/* $OpenBSD: e_rc2.c,v 1.24 2023/11/18 10:46:58 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -338,7 +338,7 @@ rc2_get_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
long num = 0;
int i = 0;
int key_bits;
- unsigned int l;
+ int l;
unsigned char iv[EVP_MAX_IV_LENGTH];
if (type != NULL) {
@@ -348,7 +348,7 @@ rc2_get_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
return -1;
}
i = ASN1_TYPE_get_int_octetstring(type, &num, iv, l);
- if (i != (int)l)
+ if (i != l)
return (-1);
key_bits = rc2_magic_to_meth((int)num);
if (!key_bits)