Lines Matching refs:vinfo
205 void SRP_user_pwd_set_gN(SRP_user_pwd *vinfo, const BIGNUM *g, in SRP_user_pwd_set_gN() argument
208 vinfo->N = N; in SRP_user_pwd_set_gN()
209 vinfo->g = g; in SRP_user_pwd_set_gN()
212 int SRP_user_pwd_set1_ids(SRP_user_pwd *vinfo, const char *id, in SRP_user_pwd_set1_ids() argument
215 OPENSSL_free(vinfo->id); in SRP_user_pwd_set1_ids()
216 OPENSSL_free(vinfo->info); in SRP_user_pwd_set1_ids()
217 vinfo->id = NULL; in SRP_user_pwd_set1_ids()
218 vinfo->info = NULL; in SRP_user_pwd_set1_ids()
219 if (id != NULL && NULL == (vinfo->id = OPENSSL_strdup(id))) in SRP_user_pwd_set1_ids()
221 return (info == NULL || NULL != (vinfo->info = OPENSSL_strdup(info))); in SRP_user_pwd_set1_ids()
224 static int SRP_user_pwd_set_sv(SRP_user_pwd *vinfo, const char *s, in SRP_user_pwd_set_sv() argument
230 vinfo->v = NULL; in SRP_user_pwd_set_sv()
231 vinfo->s = NULL; in SRP_user_pwd_set_sv()
236 if (NULL == (vinfo->v = BN_bin2bn(tmp, len, NULL))) in SRP_user_pwd_set_sv()
241 vinfo->s = BN_bin2bn(tmp, len, NULL); in SRP_user_pwd_set_sv()
242 if (vinfo->s == NULL) in SRP_user_pwd_set_sv()
246 BN_free(vinfo->v); in SRP_user_pwd_set_sv()
247 vinfo->v = NULL; in SRP_user_pwd_set_sv()
251 int SRP_user_pwd_set0_sv(SRP_user_pwd *vinfo, BIGNUM *s, BIGNUM *v) in SRP_user_pwd_set0_sv() argument
253 BN_free(vinfo->s); in SRP_user_pwd_set0_sv()
254 BN_clear_free(vinfo->v); in SRP_user_pwd_set0_sv()
255 vinfo->v = v; in SRP_user_pwd_set0_sv()
256 vinfo->s = s; in SRP_user_pwd_set0_sv()
257 return (vinfo->s != NULL && vinfo->v != NULL); in SRP_user_pwd_set0_sv()