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

version» Context lines:

pike.git/src/post_modules/Nettle/hash.cmod:1:   /* hash.cmod -*- c -*- */      #include "global.h" - RCSID("$Id: hash.cmod,v 1.10 2003/08/01 19:26:28 nilsson Exp $"); + RCSID("$Id: hash.cmod,v 1.11 2003/08/01 20:23:05 nilsson Exp $");   #include "interpret.h"   #include "svalue.h"      /* For this_object() */   #include "object.h"   #include "module_support.h"      #include "nettle_config.h"      #ifdef HAVE_LIBNETTLE      #include "nettle.h"      #include <nettle/md5.h> - #ifdef HAVE_MD4_UPDATE + #ifdef HAVE_MD4_INIT   #include <nettle/md4.h>   #endif   #include <nettle/sha.h>   #include <nettle/nettle-meta.h>      #include <assert.h>   #include <stdio.h>   #include <stdarg.h>      #if 0
pike.git/src/post_modules/Nettle/hash.cmod:238:    werror("MD5_State->INIT\n");       assert(instance);       md5_init(&THIS->md5);    instance->ctx = &THIS->md5;    }   }   /*! @endclass MD5_State */    - #ifdef HAVE_MD4_UPDATE + #ifdef HAVE_MD4_INIT      /*! @class MD4_Info    *!    *! Internal mixin class, intended to be multiply inherited    *! together with HashInfo. */      PIKECLASS MD4_Info   {    INIT    {
pike.git/src/post_modules/Nettle/hash.cmod:292:    werror("MD4_State->INIT\n");       assert(instance);       md5_init(&THIS->md4);    instance->ctx = &THIS->md4;    }   }   /*! @endclass MD4_State */    - #endif /* HAVE_MD4_UPDATE */ + #endif /* HAVE_MD4_INIT */      /*! @class SHA1_Info    *!    *! Internal mixin class, intended to be multiply inherited    *! together with HashInfo. */      PIKECLASS SHA1_Info   {    INIT    {