Lines Matching refs:gN_cache
287 || (vb->gN_cache = sk_SRP_gN_cache_new_null()) == NULL) {
296 sk_SRP_gN_cache_free(vb->gN_cache);
308 sk_SRP_gN_cache_free(vb->gN_cache);
338 static void SRP_gN_free(SRP_gN_cache *gN_cache)
340 if (gN_cache == NULL)
342 OPENSSL_free(gN_cache->b64_bn);
343 BN_free(gN_cache->bn);
344 OPENSSL_free(gN_cache);
363 static BIGNUM *SRP_gN_place_bn(STACK_OF(SRP_gN_cache) *gN_cache, char *ch)
366 if (gN_cache == NULL)
370 for (i = 0; i < sk_SRP_gN_cache_num(gN_cache); i++) {
371 SRP_gN_cache *cache = sk_SRP_gN_cache_value(gN_cache, i);
378 if (sk_SRP_gN_cache_insert(gN_cache, newgN, 0) > 0)
436 || (gN->N = SRP_gN_place_bn(vb->gN_cache, pp[DB_srpverifier]))
438 || (gN->g = SRP_gN_place_bn(vb->gN_cache, pp[DB_srpsalt]))