pike.git / src / post_modules / Nettle / hash.H

version» Context lines:

pike.git/src/post_modules/Nettle/hash.H:42:    push_string(end_shared_string(dst));    }   #endif      #ifdef HAVE_NETTLE_HMAC_H    PIKECLASS _HMAC    flags ID_PROTECTED;    {    EXTRA    { -  inherit_internal_class(MK_STRING("_HMAC")); +  lexical_inherit(1, MK_STRING("_HMAC"), 0, REPORT_ERROR);    }       PIKECLASS State    {    CVAR struct HMAC_CTX(struct cmod_CONCAT_EVAL(NETTLE_NAME, _ctx)) ctx;    CVAR const struct nettle_hash *meta;       EXTRA    { -  inherit_internal_class(MK_STRING("State")); +  lexical_inherit(1, MK_STRING("State"), 0, REPORT_ERROR);    }       PIKEFUN void create(string(8bit) passwd, void|int b)    {    const struct nettle_hash *meta = THIS->meta = ((struct Nettle_Hash_struct *)parent_storage(2, Nettle_Hash_program))->meta;    NO_WIDE_STRING(passwd);    HMAC_SET_KEY(&THIS->ctx, meta, passwd->len, (const uint8_t *)passwd->str);    }       PIKEFUN string(8bit) `()(string(8bit) text)
pike.git/src/post_modules/Nettle/hash.H:151:    program_flags PROGRAM_NEEDS_PARENT|PROGRAM_USES_PARENT;    {    DOCSTART() @decl inherit Hash::State    DOCEND()       EXTRA    {    /* Perform an inherit of the Hash.State class that our parent    * contains via its inherit of Hash.    */ -  inherit_internal_class(MK_STRING("State")); +  lexical_inherit(1, MK_STRING("State"), 0, REPORT_ERROR);    }       CVAR struct cmod_CONCAT_EVAL(NETTLE_NAME, _ctx) NETTLE_NAME;       INIT    {    struct Nettle_Hash_State_struct *instance;    ASSIGN_CURRENT_STORAGE(instance, struct Nettle_Hash_State_struct, 1,    Nettle_Hash_State_program);