/[anubis]/anubis/src/headers.h
ViewVC logotype

Diff of /anubis/src/headers.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by gray, Tue Feb 11 16:52:12 2003 UTC revision 1.10 by polak, Tue Feb 11 21:09:47 2003 UTC
# Line 24  Line 24 
24    
25  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
26    
27   #include <config.h>  #include <config.h>
28    
29   #if defined(HAVE_LIBGCRYPT) && defined(HAVE_LIBGNUTLS)  # if defined(HAVE_LIBGCRYPT) && defined(HAVE_LIBGNUTLS)
30    #if defined(HAVE_GNUTLS_GNUTLS_H)  #  if defined(HAVE_GNUTLS_GNUTLS_H)
31     #define HAVE_GNUTLS  #   define HAVE_GNUTLS
32    #endif /* HAVE_GNUTLS_GNUTLS_H */  #  endif /* HAVE_GNUTLS_GNUTLS_H */
33   #endif /* HAVE_LIBGCRYPT and HAVE_LIBGNUTLS */  # endif /* HAVE_LIBGCRYPT and HAVE_LIBGNUTLS */
34   #if defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO)  # if defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO)
35    #if defined(HAVE_OPENSSL_SSL_H)  #  if defined(HAVE_OPENSSL_SSL_H)
36     #define HAVE_OPENSSL  #   define HAVE_OPENSSL
37    #endif /* HAVE_OPENSSL_SSL_H */  #  endif /* HAVE_OPENSSL_SSL_H */
38   #endif /* HAVE_LIBSSL and HAVE_LIBCRYPTO */  # endif /* HAVE_LIBSSL and HAVE_LIBCRYPTO */
39   #if defined(HAVE_LIBGPGME) && defined(HAVE_GPGME_H) && !defined(NOGPG)  # if defined(HAVE_LIBGPGME) && defined(HAVE_GPGME_H) && !defined(NOGPG)
40    #define HAVE_GPG  #  define HAVE_GPG
41   #endif /* HAVE_LIBGPGME and HAVE_GPGME_H and not NOGPG */  # endif /* HAVE_LIBGPGME and HAVE_GPGME_H and not NOGPG */
42   #if defined(HAVE_LIBPCRE)  # if defined(HAVE_LIBPCRE)
43    #if defined(HAVE_PCRE_H) || defined(HAVE_PCRE_PCRE_H)  #  if defined(HAVE_PCRE_H) || defined(HAVE_PCRE_PCRE_H)
44     #define HAVE_PCRE  #   define HAVE_PCRE
45    #endif /* HAVE_PCRE_H or HAVE_PCRE_PCRE_H */  #  endif /* HAVE_PCRE_H or HAVE_PCRE_PCRE_H */
46   #endif /* HAVE_LIBPCRE */  # endif /* HAVE_LIBPCRE */
47   #if defined(HAVE_REGEX_H) && defined(HAVE_REGCOMP)  # if defined(HAVE_REGEX_H) && defined(HAVE_REGCOMP)
48    #define HAVE_REGEX  #  define HAVE_REGEX
49   #else  # else
50    #error POSIX Regular Expressions are required!  #  error POSIX Regular Expressions are required!
51   #endif /* HAVE_REGEX_H and HAVE_REGCOMP */  # endif /* HAVE_REGEX_H and HAVE_REGCOMP */
52   #if defined(HAVE_LIBPAM) && defined(HAVE_LIBPAM_MISC)  # if defined(HAVE_LIBPAM) && defined(HAVE_LIBPAM_MISC)
53    #if defined(HAVE_SECURITY_PAM_APPL_H) && defined(HAVE_SECURITY_PAM_MISC_H)  #  if defined(HAVE_SECURITY_PAM_APPL_H) && defined(HAVE_SECURITY_PAM_MISC_H)
54     #define HAVE_PAM  #   define HAVE_PAM
55    #endif /* HAVE_SECURITY_PAM_APPL_H and HAVE_SECURITY_PAM_MISC_H */  #  endif /* HAVE_SECURITY_PAM_APPL_H and HAVE_SECURITY_PAM_MISC_H */
56   #endif /* HAVE_LIBPAM and HAVE_LIBPAM_MISC */  # endif /* HAVE_LIBPAM and HAVE_LIBPAM_MISC */
57   #if defined(HAVE_LIBWRAP) && defined(HAVE_TCPD_H)  # if defined(HAVE_LIBWRAP) && defined(HAVE_TCPD_H)
58    #define USE_LIBWRAP  #  define USE_LIBWRAP
59   #endif /* HAVE_LIBWRAP and HAVE_TCPD_H */  # endif /* HAVE_LIBWRAP and HAVE_TCPD_H */
60    
61  #endif /* HAVE_CONFIG_H */  #endif /* HAVE_CONFIG_H */
62    
# Line 96  Line 96 
96  #include <netinet/in.h>  #include <netinet/in.h>
97    
98  #if defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT)  #if defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT)
99   #include <sys/resource.h>  # include <sys/resource.h>
100  #endif /* HAVE_GETRLIMIT and HAVE_SETRLIMIT */  #endif /* HAVE_GETRLIMIT and HAVE_SETRLIMIT */
101  #ifdef HAVE_ARPA_INET_H  #ifdef HAVE_ARPA_INET_H
102   #include <arpa/inet.h>  # include <arpa/inet.h>
103  #endif /* HAVE_ARPA_INET_H */  #endif /* HAVE_ARPA_INET_H */
104  #if defined(HAVE_SYSLOG) && defined(HAVE_SYSLOG_H)  #if defined(HAVE_SYSLOG) && defined(HAVE_SYSLOG_H)
105   #include <syslog.h>  # include <syslog.h>
106  #endif /* HAVE_SYSLOG and HAVE_SYSLOG_H */  #endif /* HAVE_SYSLOG and HAVE_SYSLOG_H */
107    
108  #if defined(USE_GNUTLS) && defined(HAVE_GNUTLS)  #if defined(USE_GNUTLS) && defined(HAVE_GNUTLS)
109   #include <gnutls/gnutls.h>  # include <gnutls/gnutls.h>
110   #define HAVE_TLS  # define HAVE_TLS
111   #undef USE_OPENSSL  # undef USE_OPENSSL
112  #endif /* USE_GNUTLS and HAVE_GNUTLS */  #endif /* USE_GNUTLS and HAVE_GNUTLS */
113    
114  #if defined(USE_OPENSSL) && defined(HAVE_OPENSSL)  #if defined(USE_OPENSSL) && defined(HAVE_OPENSSL)
115   #include <openssl/crypto.h>  # include <openssl/crypto.h>
116   #include <openssl/x509.h>  # include <openssl/x509.h>
117   #include <openssl/pem.h>  # include <openssl/pem.h>
118   #include <openssl/ssl.h>  # include <openssl/ssl.h>
119   #include <openssl/err.h>  # include <openssl/err.h>
120   #include <openssl/rand.h>  # include <openssl/rand.h>
121   #include <openssl/md5.h>  # include <openssl/md5.h>
122   #define HAVE_SSL  # define HAVE_SSL
123  #endif /* USE_OPENSSL and HAVE_OPENSSL */  #endif /* USE_OPENSSL and HAVE_OPENSSL */
124    
125  #ifdef HAVE_PAM  #ifdef HAVE_PAM
126   #include <security/pam_appl.h>  # include <security/pam_appl.h>
127   #include <security/pam_misc.h>  # include <security/pam_misc.h>
128  #endif /* HAVE_PAM */  #endif /* HAVE_PAM */
129    
130  #include "mem.h" /* xfree(), xfree_pptr() */  #include "mem.h" /* xfree(), xfree_pptr() */
131    
132  #ifdef ENABLE_NLS  #ifdef ENABLE_NLS
133   #include <libintl.h>  # include <libintl.h>
134   #define _(String) gettext(String)  # define _(String) gettext(String)
135   #ifdef HAVE_LOCALE_H  # ifdef HAVE_LOCALE_H
136    #include <locale.h>  #  include <locale.h>
137   #endif /* HAVE_LOCALE_H */  # endif /* HAVE_LOCALE_H */
138  #else  #else
139   #define _(String) (String)  # define _(String) (String)
140   #define N_(String) String  # define N_(String) String
141   #define textdomain(Domain)  # define textdomain(Domain)
142   #define bindtextdomain(Package, Directory);  # define bindtextdomain(Package, Directory);
143  #endif /* ENABLE_NLS */  #endif /* ENABLE_NLS */
144    
145  #ifdef WITH_GUILE  #ifdef WITH_GUILE
146  # include <libguile.h>  # include <libguile.h>
147  #endif  #endif /* WITH_GUILE */
148    
149  #ifndef INADDR_NONE  #ifndef INADDR_NONE
150   #define INADDR_NONE (unsigned long)0xffffffff  # define INADDR_NONE (unsigned long)0xffffffff
151  #endif /* not INADDR_NONE */  #endif /* not INADDR_NONE */
152  #ifndef INADDR_ANY  #ifndef INADDR_ANY
153   #define INADDR_ANY (unsigned long)0x00000000  # define INADDR_ANY (unsigned long)0x00000000
154  #endif /* not INADDR_ANY */  #endif /* not INADDR_ANY */
155  #ifndef INADDR_LOOPBACK  #ifndef INADDR_LOOPBACK
156   #define INADDR_LOOPBACK (unsigned long)0x7f000001  # define INADDR_LOOPBACK (unsigned long)0x7f000001
157  #endif /* not INADDR_LOOPBACK */  #endif /* not INADDR_LOOPBACK */
158    
159  #ifndef MAXPATHLEN  #ifndef MAXPATHLEN
160   #ifdef PATH_MAX  # ifdef PATH_MAX
161    #define MAXPATHLEN PATH_MAX  #  define MAXPATHLEN PATH_MAX
162   #else  # else
163    #define MAXPATHLEN 1024  #  define MAXPATHLEN 1024
164   #endif /* PATH_MAX */  # endif /* PATH_MAX */
165  #endif /* not MAXPATHLEN */  #endif /* not MAXPATHLEN */
166    
167  #define MAXCLIENTS 50  #define MAXCLIENTS 50
# Line 350  void remcrlf(char *); Line 350  void remcrlf(char *);
350  char *substitute(char *, char **);  char *substitute(char *, char **);
351  char *insert(char *, char *, char *);  char *insert(char *, char *, char *);
352  void change_to_lower(char *);  void change_to_lower(char *);
 void check_rot13(void);  
353    
354  /* file.c */  /* file.c */
355  void check_all_files(char *);  void check_all_files(char *);
# Line 413  void guile_load_program(char *name); Line 412  void guile_load_program(char *name);
412  void guile_rewrite_line(char *procname, const char *source_line);  void guile_rewrite_line(char *procname, const char *source_line);
413  void guile_postprocess_proc(char *procname, struct list **hdr, char **body);  void guile_postprocess_proc(char *procname, struct list **hdr, char **body);
414  void guile_section_init();  void guile_section_init();
415  #endif  #endif /* WITH_GUILE */
416    
417  /* EOF */  /* EOF */
418    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26