summaryrefslogtreecommitdiff
path: root/lib/libcrypto/rsa/rsa_ssl.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-07-10 11:25:14 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-07-10 11:25:14 +0000
commitd190b5a8e066d2d417ad1fcf416748ae6e14b456 (patch)
treeb428160706d4041f88ead747b2aea69d37b016bb /lib/libcrypto/rsa/rsa_ssl.c
parent9072f454e714a7c50c24423c94d84ec5a15d002e (diff)
delete some casts. ok miod
Diffstat (limited to 'lib/libcrypto/rsa/rsa_ssl.c')
-rw-r--r--lib/libcrypto/rsa/rsa_ssl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/rsa/rsa_ssl.c b/lib/libcrypto/rsa/rsa_ssl.c
index fb2e2284545..6c8a02086cf 100644
--- a/lib/libcrypto/rsa/rsa_ssl.c
+++ b/lib/libcrypto/rsa/rsa_ssl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_ssl.c,v 1.10 2014/07/10 07:41:54 jsing Exp $ */
+/* $OpenBSD: rsa_ssl.c,v 1.11 2014/07/10 11:25:13 tedu Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -97,7 +97,7 @@ RSA_padding_add_SSLv23(unsigned char *to, int tlen, const unsigned char *from,
p += 8;
*(p++) = '\0';
- memcpy(p, from, (unsigned int)flen);
+ memcpy(p, from, flen);
return 1;
}
@@ -146,7 +146,7 @@ RSA_padding_check_SSLv23(unsigned char *to, int tlen, const unsigned char *from,
RSAerr(RSA_F_RSA_PADDING_CHECK_SSLV23, RSA_R_DATA_TOO_LARGE);
return -1;
}
- memcpy(to, p, (unsigned int)j);
+ memcpy(to, p, j);
return j;
}