提交 0afc9f5b 编写于 作者: D Dr. Stephen Henson

PR: 1777

Submitted by: "Alon Bar-Lev" <alon.barlev@gmail.com>
Approved by: steve@openssl.org

Fix some size_t issues.
上级 2e597528
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
#if defined(BN_LLONG) || defined(BN_UMULT_HIGH) #if defined(BN_LLONG) || defined(BN_UMULT_HIGH)
BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w) BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, size_t num, BN_ULONG w)
{ {
BN_ULONG c1=0; BN_ULONG c1=0;
...@@ -94,7 +94,7 @@ BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w) ...@@ -94,7 +94,7 @@ BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
return(c1); return(c1);
} }
BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w) BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, size_t num, BN_ULONG w)
{ {
BN_ULONG c1=0; BN_ULONG c1=0;
...@@ -119,7 +119,7 @@ BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w) ...@@ -119,7 +119,7 @@ BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
return(c1); return(c1);
} }
void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, int n) void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, size_t n)
{ {
assert(n >= 0); assert(n >= 0);
if (n <= 0) return; if (n <= 0) return;
...@@ -303,7 +303,7 @@ BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d) ...@@ -303,7 +303,7 @@ BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
#endif /* !defined(BN_LLONG) && defined(BN_DIV2W) */ #endif /* !defined(BN_LLONG) && defined(BN_DIV2W) */
#ifdef BN_LLONG #ifdef BN_LLONG
BN_ULONG bn_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, int n) BN_ULONG bn_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, size_t n)
{ {
BN_ULLONG ll=0; BN_ULLONG ll=0;
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
*/ */
#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_VOS) || defined(OPENSSL_SYS_BEOS) #if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_VOS) || defined(OPENSSL_SYS_BEOS)
int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) int RAND_query_egd_bytes(const char *path, unsigned char *buf, size_t bytes)
{ {
return(-1); return(-1);
} }
...@@ -105,7 +105,7 @@ int RAND_egd(const char *path) ...@@ -105,7 +105,7 @@ int RAND_egd(const char *path)
return(-1); return(-1);
} }
int RAND_egd_bytes(const char *path,int bytes) int RAND_egd_bytes(const char *path,size_t bytes)
{ {
return(-1); return(-1);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册