pike.git / src / post_modules / Nettle / hogweed.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:388:    PIKEVAR function(int:string(0..255)) random    flags ID_PROTECTED;       INIT    {    const struct ecc_curve *curve =    (((const struct Nettle_ECC_Curve_struct *)parent_storage(1))->curve);    if (!curve) Pike_error("No curve selected.\n");    ecc_point_init(&THIS->pub, curve);    ecc_scalar_init(&THIS->key, curve); +  push_constant_text("Crypto.Random.random_string"); +  SAFE_APPLY_MASTER("resolv",1); +  assign_svalue(&THIS->random, Pike_sp-1); +  pop_stack();    }       EXIT    {    const struct ecc_curve *curve =    (((const struct Nettle_ECC_Curve_struct *)parent_storage(1))->curve);    if (!curve) return;    ecc_point_clear(&THIS->pub);    ecc_scalar_clear(&THIS->key);    }