1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
/* nettle.cmod -*- c -*- */ 
 
#include "global.h" 
RCSID("$Id: nettle.cmod,v 1.7 2003/03/18 16:35:48 nisse 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/aes.h> 
#include <nettle/nettle-meta.h> 
 
#include <assert.h> 
#include <stdio.h> 
#include <stdarg.h> 
 
DECLARATIONS 
 
/*! @module Nettle 
 */ 
 
/*! @endmodule 
 */ 
 
#endif /* HAVE_LIBNETTLE */ 
 
PIKE_MODULE_INIT 
{ 
  INIT; 
#ifdef HAVE_LIBNETTLE 
  hash_init(); 
  cipher_init(); 
#endif /* HAVE_LIBNETTLE */ 
} 
 
PIKE_MODULE_EXIT 
{ 
#ifdef HAVE_LIBNETTLE 
  cipher_exit(); 
  hash_exit(); 
#endif /* HAVE_LIBNETTLE */ 
  EXIT; 
}