Lines Matching refs:vinfo
219 static void SRP_user_pwd_set_gN(SRP_user_pwd *vinfo, const BIGNUM *g,
222 vinfo->N = N;
223 vinfo->g = g;
226 static int SRP_user_pwd_set_ids(SRP_user_pwd *vinfo, const char *id,
229 if (id != NULL && NULL == (vinfo->id = BUF_strdup(id)))
231 return (info == NULL || NULL != (vinfo->info = BUF_strdup(info)));
234 static int SRP_user_pwd_set_sv(SRP_user_pwd *vinfo, const char *s,
240 vinfo->v = NULL;
241 vinfo->s = NULL;
246 if (NULL == (vinfo->v = BN_bin2bn(tmp, len, NULL)))
251 vinfo->s = BN_bin2bn(tmp, len, NULL);
252 if (vinfo->s == NULL)
256 BN_free(vinfo->v);
257 vinfo->v = NULL;
261 static int SRP_user_pwd_set_sv_BN(SRP_user_pwd *vinfo, BIGNUM *s, BIGNUM *v)
263 vinfo->v = v;
264 vinfo->s = s;
265 return (vinfo->s != NULL && vinfo->v != NULL);