Branch: Tag:

2003-03-12

2003-03-12 20:33:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now links even on systems without Nettle...

Rev: src/post_modules/Nettle/nettle.cmod:1.2

1:   /* nettle.cmod -*- c -*- */      #include "global.h" - RCSID("$Id: nettle.cmod,v 1.1 2003/03/12 17:07:10 nisse Exp $"); + RCSID("$Id: nettle.cmod,v 1.2 2003/03/12 20:33:33 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   
10:      #include "module_support.h"    + #ifdef HAVE_LIBNETTLE +    #include "nettle.h"      #include <nettle/md5.h>
84:    INHERIT nettle_hash;       /* FIXME: The ctx pointer isn't strictly needed, as the ctx is in -  * the storage area just after the poitner. But this seems like the +  * the storage area just after the pointer. But this seems like the    * simplest and most portable way to get to it. */    CVAR void *ctx;   
358:    memset(&THIS->ctx, 0, sizeof(THIS->ctx));    }   } +  + #endif /* HAVE_LIBNETTLE */