diff options
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_clnt.c | 8 | ||||
-rw-r--r-- | ssl/s3_srvr.c | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index 31a8535bb0..af4bd15194 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -1460,7 +1460,7 @@ static int ssl3_send_client_verify(SSL *s) unsigned char data[MD5_DIGEST_LENGTH+SHA_DIGEST_LENGTH]; EVP_PKEY *pkey; #ifndef NO_RSA - int i=0; + unsigned u=0; #endif unsigned long n; #ifndef NO_DSA @@ -1483,13 +1483,13 @@ static int ssl3_send_client_verify(SSL *s) &(s->s3->finish_dgst1),&(data[0])); if (RSA_sign(NID_md5_sha1, data, 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); goto err; } - s2n(i,p); - n=i+2; + s2n(u,p); + n=u+2; } else #endif diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index d722ff3860..961a2ca10c 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -872,6 +872,7 @@ static int ssl3_send_server_key_exchange(SSL *s) EVP_PKEY *pkey; unsigned char *p,*d; int al,i; + unsigned int u; unsigned long type; int n; CERT *cert; @@ -1027,13 +1028,13 @@ static int ssl3_send_server_key_exchange(SSL *s) j+=i; } 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); goto err; } - s2n(i,p); - n+=i+2; + s2n(u,p); + n+=u+2; } else #endif |