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

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:554:       CVAR struct ecc_scalar key;    CVAR struct ecc_point pub;       PIKEVAR function(int(0..):string(0..255)) random    flags ID_PROTECTED;       INIT    {    const struct ecc_curve *curve = -  (((const struct Nettle_ECC_Curve_struct *)parent_storage(1))->curve); +  (((const struct Nettle_ECC_Curve_struct *)parent_storage(1, Nettle_ECC_Curve_program))->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); +  (((const struct Nettle_ECC_Curve_struct *)parent_storage(1, Nettle_ECC_Curve_program))->curve);    if (!curve) return;    ecc_point_clear(&THIS->pub);    ecc_scalar_clear(&THIS->key);    }       /*! @decl string(7bit) name()    *!    *! Returns the string @expr{"ECDSA"@} followed by    *! the parenthesized name of the curve.    */