diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-03-12 18:27:03 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-03-12 18:27:03 +0100 |
commit | d70fcb96ac3ed2d6182a966010f4bcdc7e898a67 (patch) | |
tree | ddbf913d8b6bf4b3ab8b7dd135e747f8ee9a51c5 /ssl | |
parent | Remove redundant check to stop compiler warning. (diff) | |
download | openssl-d70fcb96ac3ed2d6182a966010f4bcdc7e898a67.tar.xz openssl-d70fcb96ac3ed2d6182a966010f4bcdc7e898a67.zip |
Fix warnings: signed/unisgned comparison, shadowing (in some cases global
functions such as rand() ).
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/tls_srp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ssl/tls_srp.c b/ssl/tls_srp.c index de5ee99a74..e6c109b6a4 100644 --- a/ssl/tls_srp.c +++ b/ssl/tls_srp.c @@ -414,7 +414,7 @@ err: int SRP_Calc_A_param(SSL *s) { - unsigned char rand[SSL_MAX_MASTER_KEY_LENGTH]; + unsigned char rnd[SSL_MAX_MASTER_KEY_LENGTH]; if (BN_num_bits(s->srp_ctx.N) < s->srp_ctx.strength) return 0; @@ -423,10 +423,10 @@ int SRP_Calc_A_param(SSL *s) !SRP_check_known_gN_param(s->srp_ctx.g,s->srp_ctx.N)) return 0; - if (RAND_bytes(rand, sizeof(rand)) <= 0) + if (RAND_bytes(rnd, sizeof(rnd)) <= 0) return 0; - s->srp_ctx.a = BN_bin2bn(rand,sizeof(rand), s->srp_ctx.a); - OPENSSL_cleanse(rand,sizeof(rand)); + s->srp_ctx.a = BN_bin2bn(rnd,sizeof(rnd), s->srp_ctx.a); + OPENSSL_cleanse(rnd,sizeof(rnd)); if (!(s->srp_ctx.A = SRP_Calc_A(s->srp_ctx.a,s->srp_ctx.N,s->srp_ctx.g))) return 0; |