aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/srp/srp_vfy.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-03-12 17:27:03 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-03-12 17:27:03 +0000
commitd70fcb96ac3ed2d6182a966010f4bcdc7e898a67 (patch)
treeddbf913d8b6bf4b3ab8b7dd135e747f8ee9a51c5 /crypto/srp/srp_vfy.c
parent5e374d2ee85992523a3eafd7dfa8095e51b1a9a0 (diff)
downloadopenssl-d70fcb96ac3ed2d6182a966010f4bcdc7e898a67.tar.gz
Fix warnings: signed/unisgned comparison, shadowing (in some cases global
functions such as rand() ).
Diffstat (limited to 'crypto/srp/srp_vfy.c')
-rw-r--r--crypto/srp/srp_vfy.c6
1 files changed, 3 insertions, 3 deletions
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;