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.
25
2004/10/
07
22
:
19
:
11
nilsson
Exp $ */
+
/* $Id: hash.cmod,v 1.
26
2004/10/
16
07:
27
:
29
agehall
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:247:
/* FIXME: Create should copy state from the other object, if * provided. */ /*! @decl HashState update(string data) *! *! Hashes more data. */ PIKEFUN object update(string data) optflags OPT_SIDE_EFFECT; {
-
const
void *ctx = THIS->ctx;
+
void *ctx = THIS->ctx;
const struct nettle_hash *meta = GET_META(Pike_fp->current_object); if (!ctx || !meta) Pike_error("HashState not properly initialized.\n"); NO_WIDE_STRING(data); THREADS_ALLOW(); meta->update(ctx, data->len, data->str); THREADS_DISALLOW();