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

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:992:    */    INHERIT "__builtin.Nettle.Sign";       CVAR struct ecc_scalar key;       PIKEVAR function(int(0..):string(0..255)) random    flags ID_PROTECTED;       INIT    { +  struct svalue *random;    const struct ecc_curve *curve =    (((const struct Nettle_ECC_Curve_struct *)parent_storage(1, Nettle_ECC_Curve_program))->curve);    if (!curve) Pike_error("No curve selected.\n");    ecc_scalar_init(&THIS->key, curve);    -  struct svalue *random = +  random =    simple_mapping_string_lookup(get_builtin_constants(), "random_string");    if(!random || (TYPEOF(*random) != T_FUNCTION))    Pike_error("Unable to resolve random function.\n");    assign_svalue(&THIS->random, random);    }       EXIT    {    const struct ecc_curve *curve =    (((const struct Nettle_ECC_Curve_struct *)parent_storage(1, Nettle_ECC_Curve_program))->curve);