mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Fix warnings.
This commit is contained in:
parent
ba0d04a986
commit
6657b9c73a
@ -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;
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user