projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d0a20ca
)
Fix warnings about mismatched prototypes, undefined size_t and value computed
author
Dr. Stephen Henson
<steve@openssl.org>
Sun, 2 Nov 2008 12:50:48 +0000
(12:50 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sun, 2 Nov 2008 12:50:48 +0000
(12:50 +0000)
not used.
apps/apps.c
patch
|
blob
|
history
crypto/bn/asm/x86_64-gcc.c
patch
|
blob
|
history
crypto/bn/bn_lcl.h
patch
|
blob
|
history
crypto/evp/p_verify.c
patch
|
blob
|
history
ssl/ssl_lib.c
patch
|
blob
|
history
diff --git
a/apps/apps.c
b/apps/apps.c
index f011f0ba6ac43c9960d9fb1fc615feae4ed1e200..7038ac1e2457f5795c905a4e67d9dd49d186f4bc 100644
(file)
--- a/
apps/apps.c
+++ b/
apps/apps.c
@@
-2424,7
+2424,7
@@
static void jpake_send_step1(BIO *bconn, JPAKE_CTX *ctx)
JPAKE_STEP1_generate(&s1, ctx);
jpake_send_part(bconn, &s1.p1);
jpake_send_part(bconn, &s1.p2);
JPAKE_STEP1_generate(&s1, ctx);
jpake_send_part(bconn, &s1.p1);
jpake_send_part(bconn, &s1.p2);
- BIO_flush(bconn);
+
(void)
BIO_flush(bconn);
JPAKE_STEP1_release(&s1);
}
JPAKE_STEP1_release(&s1);
}
@@
-2435,7
+2435,7
@@
static void jpake_send_step2(BIO *bconn, JPAKE_CTX *ctx)
JPAKE_STEP2_init(&s2);
JPAKE_STEP2_generate(&s2, ctx);
jpake_send_part(bconn, &s2);
JPAKE_STEP2_init(&s2);
JPAKE_STEP2_generate(&s2, ctx);
jpake_send_part(bconn, &s2);
- BIO_flush(bconn);
+
(void)
BIO_flush(bconn);
JPAKE_STEP2_release(&s2);
}
JPAKE_STEP2_release(&s2);
}
@@
-2446,7
+2446,7
@@
static void jpake_send_step3a(BIO *bconn, JPAKE_CTX *ctx)
JPAKE_STEP3A_init(&s3a);
JPAKE_STEP3A_generate(&s3a, ctx);
BIO_write(bconn, s3a.hhk, sizeof s3a.hhk);
JPAKE_STEP3A_init(&s3a);
JPAKE_STEP3A_generate(&s3a, ctx);
BIO_write(bconn, s3a.hhk, sizeof s3a.hhk);
- BIO_flush(bconn);
+
(void)
BIO_flush(bconn);
JPAKE_STEP3A_release(&s3a);
}
JPAKE_STEP3A_release(&s3a);
}
@@
-2457,7
+2457,7
@@
static void jpake_send_step3b(BIO *bconn, JPAKE_CTX *ctx)
JPAKE_STEP3B_init(&s3b);
JPAKE_STEP3B_generate(&s3b, ctx);
BIO_write(bconn, s3b.hk, sizeof s3b.hk);
JPAKE_STEP3B_init(&s3b);
JPAKE_STEP3B_generate(&s3b, ctx);
BIO_write(bconn, s3b.hk, sizeof s3b.hk);
- BIO_flush(bconn);
+
(void)
BIO_flush(bconn);
JPAKE_STEP3B_release(&s3b);
}
JPAKE_STEP3B_release(&s3b);
}
diff --git
a/crypto/bn/asm/x86_64-gcc.c
b/crypto/bn/asm/x86_64-gcc.c
index 1509864574815a991827b5ac5ec7e4185cd790b0..85191ecb0847b85ab00fbd210b9eb7deb5ba665f 100644
(file)
--- a/
crypto/bn/asm/x86_64-gcc.c
+++ b/
crypto/bn/asm/x86_64-gcc.c
@@
-1,6
+1,7
@@
#ifdef __SUNPRO_C
# include "../bn_asm.c" /* kind of dirty hack for Sun Studio */
#else
#ifdef __SUNPRO_C
# include "../bn_asm.c" /* kind of dirty hack for Sun Studio */
#else
+#include <sys/types.h>
/*
* x86_64 BIGNUM accelerator version 0.1, December 2002.
*
/*
* x86_64 BIGNUM accelerator version 0.1, December 2002.
*
diff --git
a/crypto/bn/bn_lcl.h
b/crypto/bn/bn_lcl.h
index 857616d53b32dd9684c2a67b43451bcde5be493e..05e8874a5a05999ae107716a9cf1cfdca058b6b0 100644
(file)
--- a/
crypto/bn/bn_lcl.h
+++ b/
crypto/bn/bn_lcl.h
@@
-481,8
+481,9
@@
void bn_mul_high(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, BN_ULONG *l, int n2,
BN_ULONG *t);
BN_ULONG bn_add_part_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
size_t cl, ssize_t dl);
BN_ULONG *t);
BN_ULONG bn_add_part_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
size_t cl, ssize_t dl);
-BN_ULONG bn_sub_part_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
- int cl, int dl);
+BN_ULONG bn_sub_part_words(BN_ULONG *r,
+ const BN_ULONG *a, const BN_ULONG *b,
+ size_t cl, ssize_t dl);
int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
const BN_ULONG *np,const BN_ULONG *n0, int num);
int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
const BN_ULONG *np,const BN_ULONG *n0, int num);
diff --git
a/crypto/evp/p_verify.c
b/crypto/evp/p_verify.c
index 8db46412f3771720b9afde5faa46a4dcfc133dc9..16a449aed1b9997f72bcf183ff1edd6cb8e6b63b 100644
(file)
--- a/
crypto/evp/p_verify.c
+++ b/
crypto/evp/p_verify.c
@@
-62,8
+62,8
@@
#include <openssl/objects.h>
#include <openssl/x509.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
-int
EVP_VerifyFinal(EVP_MD_CTX *ctx,
const unsigned char *sigbuf,
-
unsigned int siglen,
EVP_PKEY *pkey)
+int
EVP_VerifyFinal(EVP_MD_CTX *ctx,
const unsigned char *sigbuf,
+
size_t siglen,
EVP_PKEY *pkey)
{
unsigned char m[EVP_MAX_MD_SIZE];
unsigned int m_len;
{
unsigned char m[EVP_MAX_MD_SIZE];
unsigned int m_len;
diff --git
a/ssl/ssl_lib.c
b/ssl/ssl_lib.c
index 803894c44f968b82e22e4dfd9592256db913c588..2e85a560fe0013378df6df90b82219369cb6dd02 100644
(file)
--- a/
ssl/ssl_lib.c
+++ b/
ssl/ssl_lib.c
@@
-432,7
+432,7
@@
int SSL_set_generate_session_id(SSL *ssl, GEN_SESSION_CB cb)
}
int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id,
}
int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id,
-
unsigned in
t id_len)
+
size_
t id_len)
{
/* A quick examination of SSL_SESSION_hash and SSL_SESSION_cmp shows how
* we can "construct" a session to give us the desired check - ie. to
{
/* A quick examination of SSL_SESSION_hash and SSL_SESSION_cmp shows how
* we can "construct" a session to give us the desired check - ie. to