diff options
author | tedu <> | 2014-07-10 11:25:13 +0000 |
---|---|---|
committer | tedu <> | 2014-07-10 11:25:13 +0000 |
commit | 9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5 (patch) | |
tree | 7e6c9ca704304f6f99e87e8dac39a6d87504a1c5 /src/lib/libcrypto/rsa/rsa_ssl.c | |
parent | 61a4bd4a18867aecea2b5f0da267ba17f1f102ea (diff) | |
download | openbsd-9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5.tar.gz openbsd-9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5.tar.bz2 openbsd-9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5.zip |
delete some casts. ok miod
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_ssl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_ssl.c b/src/lib/libcrypto/rsa/rsa_ssl.c index fb2e228454..6c8a02086c 100644 --- a/src/lib/libcrypto/rsa/rsa_ssl.c +++ b/src/lib/libcrypto/rsa/rsa_ssl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_ssl.c,v 1.10 2014/07/10 07:41:54 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_ssl.c,v 1.11 2014/07/10 11:25:13 tedu 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 | * |
@@ -97,7 +97,7 @@ RSA_padding_add_SSLv23(unsigned char *to, int tlen, const unsigned char *from, | |||
97 | p += 8; | 97 | p += 8; |
98 | *(p++) = '\0'; | 98 | *(p++) = '\0'; |
99 | 99 | ||
100 | memcpy(p, from, (unsigned int)flen); | 100 | memcpy(p, from, flen); |
101 | return 1; | 101 | return 1; |
102 | } | 102 | } |
103 | 103 | ||
@@ -146,7 +146,7 @@ RSA_padding_check_SSLv23(unsigned char *to, int tlen, const unsigned char *from, | |||
146 | RSAerr(RSA_F_RSA_PADDING_CHECK_SSLV23, RSA_R_DATA_TOO_LARGE); | 146 | RSAerr(RSA_F_RSA_PADDING_CHECK_SSLV23, RSA_R_DATA_TOO_LARGE); |
147 | return -1; | 147 | return -1; |
148 | } | 148 | } |
149 | memcpy(to, p, (unsigned int)j); | 149 | memcpy(to, p, j); |
150 | 150 | ||
151 | return j; | 151 | return j; |
152 | } | 152 | } |