Lines Matching refs:gN_cache
285 || (vb->gN_cache = sk_SRP_gN_cache_new_null()) == NULL) { in SRP_VBASE_new()
295 sk_SRP_gN_cache_free(vb->gN_cache); in SRP_VBASE_new()
307 sk_SRP_gN_cache_free(vb->gN_cache); in SRP_VBASE_free()
337 static void SRP_gN_free(SRP_gN_cache *gN_cache) in SRP_gN_free() argument
339 if (gN_cache == NULL) in SRP_gN_free()
341 OPENSSL_free(gN_cache->b64_bn); in SRP_gN_free()
342 BN_free(gN_cache->bn); in SRP_gN_free()
343 OPENSSL_free(gN_cache); in SRP_gN_free()
362 static BIGNUM *SRP_gN_place_bn(STACK_OF(SRP_gN_cache) *gN_cache, char *ch) in SRP_gN_place_bn() argument
365 if (gN_cache == NULL) in SRP_gN_place_bn()
369 for (i = 0; i < sk_SRP_gN_cache_num(gN_cache); i++) { in SRP_gN_place_bn()
370 SRP_gN_cache *cache = sk_SRP_gN_cache_value(gN_cache, i); in SRP_gN_place_bn()
377 if (sk_SRP_gN_cache_insert(gN_cache, newgN, 0) > 0) in SRP_gN_place_bn()
443 || (gN->N = SRP_gN_place_bn(vb->gN_cache, pp[DB_srpverifier])) in SRP_VBASE_init()
445 || (gN->g = SRP_gN_place_bn(vb->gN_cache, pp[DB_srpsalt])) in SRP_VBASE_init()