提交 ca7fea96 编写于 作者: B Ben Laurie

Fix warnings.

上级 eb025998
...@@ -1460,7 +1460,7 @@ static int ssl3_send_client_verify(SSL *s) ...@@ -1460,7 +1460,7 @@ static int ssl3_send_client_verify(SSL *s)
unsigned char data[MD5_DIGEST_LENGTH+SHA_DIGEST_LENGTH]; unsigned char data[MD5_DIGEST_LENGTH+SHA_DIGEST_LENGTH];
EVP_PKEY *pkey; EVP_PKEY *pkey;
#ifndef NO_RSA #ifndef NO_RSA
int i=0; unsigned u=0;
#endif #endif
unsigned long n; unsigned long n;
#ifndef NO_DSA #ifndef NO_DSA
...@@ -1483,13 +1483,13 @@ static int ssl3_send_client_verify(SSL *s) ...@@ -1483,13 +1483,13 @@ static int ssl3_send_client_verify(SSL *s)
&(s->s3->finish_dgst1),&(data[0])); &(s->s3->finish_dgst1),&(data[0]));
if (RSA_sign(NID_md5_sha1, data, if (RSA_sign(NID_md5_sha1, data,
MD5_DIGEST_LENGTH+SHA_DIGEST_LENGTH, MD5_DIGEST_LENGTH+SHA_DIGEST_LENGTH,
&(p[2]), &i, pkey->pkey.rsa) <= 0 ) &(p[2]), &u, pkey->pkey.rsa) <= 0 )
{ {
SSLerr(SSL_F_SSL3_SEND_CLIENT_VERIFY,ERR_R_RSA_LIB); SSLerr(SSL_F_SSL3_SEND_CLIENT_VERIFY,ERR_R_RSA_LIB);
goto err; goto err;
} }
s2n(i,p); s2n(u,p);
n=i+2; n=u+2;
} }
else else
#endif #endif
......
...@@ -872,6 +872,7 @@ static int ssl3_send_server_key_exchange(SSL *s) ...@@ -872,6 +872,7 @@ static int ssl3_send_server_key_exchange(SSL *s)
EVP_PKEY *pkey; EVP_PKEY *pkey;
unsigned char *p,*d; unsigned char *p,*d;
int al,i; int al,i;
unsigned int u;
unsigned long type; unsigned long type;
int n; int n;
CERT *cert; CERT *cert;
...@@ -1027,13 +1028,13 @@ static int ssl3_send_server_key_exchange(SSL *s) ...@@ -1027,13 +1028,13 @@ static int ssl3_send_server_key_exchange(SSL *s)
j+=i; j+=i;
} }
if (RSA_sign(NID_md5_sha1, md_buf, j, if (RSA_sign(NID_md5_sha1, md_buf, j,
&(p[2]), &i, pkey->pkey.rsa) <= 0) &(p[2]), &u, pkey->pkey.rsa) <= 0)
{ {
SSLerr(SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE,ERR_LIB_RSA); SSLerr(SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE,ERR_LIB_RSA);
goto err; goto err;
} }
s2n(i,p); s2n(u,p);
n+=i+2; n+=u+2;
} }
else else
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册