diff src/dnsbl.h @ 214:82886d4dd71f stable-6-0-19

Fixes to compile on Fedora 9 and for const correctness.
author Carl Byington <carl@five-ten-sg.com>
date Tue, 10 Jun 2008 08:58:42 -0700
parents 8f4a9a37d4d9
children ad38575e98ca
line wrap: on
line diff
--- a/src/dnsbl.h	Wed Apr 30 13:11:32 2008 -0700
+++ b/src/dnsbl.h	Tue Jun 10 08:58:42 2008 -0700
@@ -32,13 +32,13 @@
 	int 	fd; 							// to talk to dns resolver process
 	bool	err;							// did we get any errors on the resolver socket?
 	int 	ip; 							// ip4 address of the smtp client
-	char	*helo;							// helo from client
+    const char        *helo;                // helo from client
 	map<DNSBLP, bool> checked;				// map of dnsblp to result of (ip listed on that dnsbl)
 	// message specific data
-	char			*mailaddr;				// envelope from value
-	char			*queueid;				// sendmail queue id
-	char			*authenticated; 		// client authenticated? if so, suppress all dnsbl checks, but check rate limits
-	char			*client_name;			// fully qualified host name of the smtp client
+    const char      *mailaddr;              // envelope from value
+    const char      *queueid;               // sendmail queue id
+    const char      *authenticated;         // client authenticated? if so, suppress all dnsbl checks, but check rate limits
+    const char      *client_name;           // fully qualified host name of the smtp client
 	bool			have_whites;			// have at least one whitelisted recipient? need to accept content and remove all non-whitelisted recipients if it fails
 	bool			only_whites;			// every recipient is whitelisted?
 	bool			want_spamassassin;		// at least one non-whitelisted recipient has a non zero spamassassin limit
@@ -50,10 +50,10 @@
 	context_map 	env_to; 				// map each non-whitelisted recipient to their filtering context
 	recorder		*memory;				// memory for the content scanner
 	url_scanner 	*scanner;				// object to handle body scanning
-	char			*content_suffix;		// for url body filtering based on ip addresses of hostnames in the body
-	char			*content_message;		// ""
-	char			*uribl_suffix;			// for uribl body filtering based on hostnames in the body
-	char			*uribl_message; 		// ""
+    const char      *content_suffix;        // for url body filtering based on ip addresses of hostnames in the body
+    const char      *content_message;       // ""
+    const char      *uribl_suffix;          // for uribl body filtering based on hostnames in the body
+    const char      *uribl_message;         // ""
 	string_set		*content_host_ignore;	// ""
 	SpamAssassin	*assassin;
 	DccInterface	*dccifd;
@@ -66,11 +66,11 @@
 	void return_fd();
 	size_t my_read(char *buf, size_t len);
 	size_t my_write(const char *buf, size_t len);
-	void need_content_filter(char *rcpt, CONTEXT &con);
+    void need_content_filter(const char *rcpt, CONTEXT &con);
 };
 
-void my_syslog(mlfiPriv *priv, char *text);
-void my_syslog(mlfiPriv *priv, string text);
-void my_syslog(char *text);
+void my_syslog(mlfiPriv *priv, const char *text);
+void my_syslog(mlfiPriv *priv, const string text);
+void my_syslog(const char *text);
 
 #endif