Lines Matching refs:newgN
316 SRP_gN_cache *newgN = OPENSSL_malloc(sizeof(*newgN)); in SRP_gN_new_init() local
318 if (newgN == NULL) in SRP_gN_new_init()
325 if ((newgN->b64_bn = OPENSSL_strdup(ch)) == NULL) in SRP_gN_new_init()
328 if ((newgN->bn = BN_bin2bn(tmp, len, NULL))) in SRP_gN_new_init()
329 return newgN; in SRP_gN_new_init()
331 OPENSSL_free(newgN->b64_bn); in SRP_gN_new_init()
333 OPENSSL_free(newgN); in SRP_gN_new_init()
375 SRP_gN_cache *newgN = SRP_gN_new_init(ch); in SRP_gN_place_bn() local
376 if (newgN) { in SRP_gN_place_bn()
377 if (sk_SRP_gN_cache_insert(gN_cache, newgN, 0) > 0) in SRP_gN_place_bn()
378 return newgN->bn; in SRP_gN_place_bn()
379 SRP_gN_free(newgN); in SRP_gN_place_bn()