summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_x931.c
diff options
context:
space:
mode:
authortedu <>2014-07-10 11:25:13 +0000
committertedu <>2014-07-10 11:25:13 +0000
commit9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5 (patch)
tree7e6c9ca704304f6f99e87e8dac39a6d87504a1c5 /src/lib/libcrypto/rsa/rsa_x931.c
parent61a4bd4a18867aecea2b5f0da267ba17f1f102ea (diff)
downloadopenbsd-9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5.tar.gz
openbsd-9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5.tar.bz2
openbsd-9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5.zip
delete some casts. ok miod
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_x931.c')
-rw-r--r--src/lib/libcrypto/rsa/rsa_x931.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_x931.c b/src/lib/libcrypto/rsa/rsa_x931.c
index 74c4af91a5..e9f4df341d 100644
--- a/src/lib/libcrypto/rsa/rsa_x931.c
+++ b/src/lib/libcrypto/rsa/rsa_x931.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_x931.c,v 1.5 2014/07/09 19:51:38 jsing Exp $ */ 1/* $OpenBSD: rsa_x931.c,v 1.6 2014/07/10 11:25:13 tedu Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2005. 3 * project 2005.
4 */ 4 */
@@ -95,7 +95,7 @@ RSA_padding_add_X931(unsigned char *to, int tlen, const unsigned char *from,
95 } 95 }
96 *p++ = 0xBA; 96 *p++ = 0xBA;
97 } 97 }
98 memcpy(p, from, (unsigned int)flen); 98 memcpy(p, from, flen);
99 p += flen; 99 p += flen;
100 *p = 0xCC; 100 *p = 0xCC;
101 return 1; 101 return 1;
@@ -141,7 +141,7 @@ RSA_padding_check_X931(unsigned char *to, int tlen, const unsigned char *from,
141 return -1; 141 return -1;
142 } 142 }
143 143
144 memcpy(to, p, (unsigned int)j); 144 memcpy(to, p, j);
145 145
146 return j; 146 return j;
147} 147}