Fix warnings.

This commit is contained in:
Dr. Stephen Henson 2006-05-26 13:27:58 +00:00
parent ba0d04a986
commit 6657b9c73a
3 changed files with 4 additions and 3 deletions

View File

@ -815,6 +815,7 @@ int get_cert_chain (X509 *cert, X509_STORE *store, STACK_OF(X509) **chain)
*chain = chn;
err:
X509_STORE_CTX_cleanup(&store_ctx);
*chain = NULL;
return i;
}

View File

@ -99,7 +99,7 @@ int MAIN(int argc, char **argv)
int keysize = -1;
unsigned char *buf_in = NULL, *buf_out = NULL, *sig = NULL;
int buf_inlen, buf_outlen, siglen = -1;
int buf_inlen = 0, buf_outlen, siglen = -1;
int ret = 1, rv = -1;
@ -539,7 +539,7 @@ static int do_keyop(EVP_PKEY_CTX *ctx, int pkey_op,
unsigned char *out, size_t *poutlen,
unsigned char *in, size_t inlen)
{
int rv;
int rv = 0;
switch(pkey_op)
{
case EVP_PKEY_OP_VERIFYRECOVER:

View File

@ -2048,7 +2048,7 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt,
#ifndef OPENSSL_NO_TLSEXT
#ifndef OPENSSL_NO_EC
int ec_ok, ec_nid;
unsigned char ec_search1, ec_search2;
unsigned char ec_search1 = 0, ec_search2 = 0;
#endif /* OPENSSL_NO_EC */
#endif /* OPENSSL_NO_TLSEXT */
CERT *cert;