diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-03-12 17:27:03 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-03-12 17:27:03 +0000 |
commit | d70fcb96ac3ed2d6182a966010f4bcdc7e898a67 (patch) | |
tree | ddbf913d8b6bf4b3ab8b7dd135e747f8ee9a51c5 /crypto/srp | |
parent | 5e374d2ee85992523a3eafd7dfa8095e51b1a9a0 (diff) |
Fix warnings: signed/unisgned comparison, shadowing (in some cases global
functions such as rand() ).
Diffstat (limited to 'crypto/srp')
-rw-r--r-- | crypto/srp/srp_lib.c | 4 | ||||
-rw-r--r-- | crypto/srp/srp_vfy.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/crypto/srp/srp_lib.c b/crypto/srp/srp_lib.c index dbf464bbf4..9f6318281d 100644 --- a/crypto/srp/srp_lib.c +++ b/crypto/srp/srp_lib.c @@ -326,7 +326,7 @@ int SRP_Verify_A_mod_N(BIGNUM *A, BIGNUM *N) */ char * SRP_check_known_gN_param(BIGNUM* g, BIGNUM* N) { - int i; + size_t i; if ((g == NULL) || (N == NULL)) return 0; @@ -343,7 +343,7 @@ char * SRP_check_known_gN_param(BIGNUM* g, BIGNUM* N) SRP_gN *SRP_get_default_gN(const char * id) { - int i; + size_t i; if (id == NULL) return knowngN; diff --git a/crypto/srp/srp_vfy.c b/crypto/srp/srp_vfy.c index 8b96a20d56..ba3dca074e 100644 --- a/crypto/srp/srp_vfy.c +++ b/crypto/srp/srp_vfy.c @@ -414,14 +414,14 @@ int SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file) else if (pp[DB_srptype][0] == DB_SRP_VALID) { /* it is a user .... */ - SRP_gN *gN; - if ((gN = SRP_get_gN_by_id(pp[DB_srpgN],SRP_gN_tab))!=NULL) + SRP_gN *lgN; + if ((lgN = SRP_get_gN_by_id(pp[DB_srpgN],SRP_gN_tab))!=NULL) { error_code = SRP_ERR_MEMORY; if ((user_pwd = SRP_user_pwd_new()) == NULL) goto err; - SRP_user_pwd_set_gN(user_pwd,gN->g,gN->N); + SRP_user_pwd_set_gN(user_pwd,lgN->g,lgN->N); if (!SRP_user_pwd_set_ids(user_pwd, pp[DB_srpid], pp[DB_srpinfo])) goto err; |