pike.git
/
src
/
post_modules
/
Nettle
/
hash.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/hash.cmod:1:
/* hash.cmod -*- c -*- */
-
/* $Id: hash.cmod,v 1.
28
2008/05/29
22
:
50
:
20
nilsson Exp $ */
+
/* $Id: hash.cmod,v 1.
29
2008/05/29
23
:
03
:
47
nilsson Exp $ */
#include "global.h" #include "interpret.h" #include "svalue.h" #include "threads.h" /* For this_object() */ #include "object.h" #include "module_support.h"
pike.git/src/post_modules/Nettle/hash.cmod:309:
digest = begin_shared_string(length); meta->digest(THIS->ctx, length, (uint8_t *)digest->str); push_string(end_shared_string(digest)); } INIT { werror("HashState->INIT\n"); THIS->ctx = NULL; }
+
EXIT gc_trivial; { werror("HashState->EXIT\n"); if (THIS->ctx && Pike_fp->current_object->prog) { const struct nettle_hash *meta = GET_META(Pike_fp->current_object); assert(meta); memset(THIS->ctx, 0, meta->context_size);
-
+
THIS->ctx = NULL;
} } } /*! @endclass HashState */ /*! @class MD5_Info *! *! Internal mixin class, intended to be multiply inherited *! together with HashInfo. */