projects
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get TLS SNI server-switching working with GnuTLS.
[exim.git]
/
src
/
src
/
verify.c
diff --git
a/src/src/verify.c
b/src/src/verify.c
index f32f8710d1040cb21001697702e7fa3fdd540ac5..475f52d929a952f7fd55129d971c9fff644fc27e 100644
(file)
--- a/
src/src/verify.c
+++ b/
src/src/verify.c
@@
-1,10
+1,8
@@
-/* $Cambridge: exim/src/src/verify.c,v 1.53 2009/01/21 19:14:53 fanf2 Exp $ */
-
/*************************************************
* Exim - an Internet mail transport agent *
*************************************************/
/*************************************************
* Exim - an Internet mail transport agent *
*************************************************/
-/* Copyright (c) University of Cambridge 1995 - 200
7
*/
+/* Copyright (c) University of Cambridge 1995 - 200
9
*/
/* See the file NOTICE for conditions of use and distribution. */
/* Functions concerned with verifying things. The original code for callout
/* See the file NOTICE for conditions of use and distribution. */
/* Functions concerned with verifying things. The original code for callout
@@
-885,7
+883,7
@@
Returns:
*/
static void PRINTF_FUNCTION(2,3)
*/
static void PRINTF_FUNCTION(2,3)
-respond_printf(FILE *f, char *format, ...)
+respond_printf(FILE *f, c
onst c
har *format, ...)
{
va_list ap;
{
va_list ap;
@@
-2256,7
+2254,7
@@
if (iplookup)
}
else /* Single-key style */
{
}
else /* Single-key style */
{
- int sep = (Ustrcmp(lookup_list[search_type]
.
name, "iplsearch") == 0)?
+ int sep = (Ustrcmp(lookup_list[search_type]
->
name, "iplsearch") == 0)?
':' : '.';
insize = host_aton(cb->host_address, incoming);
host_mask(insize, incoming, mlen);
':' : '.';
insize = host_aton(cb->host_address, incoming);
host_mask(insize, incoming, mlen);
@@
-2513,16
+2511,18
@@
return verify_check_this_host(listptr, sender_host_cache, NULL,
/*************************************************
/*************************************************
-*
Invert an IP address for a DNS black list
*
+*
Invert an IP address
*
*************************************************/
*************************************************/
-/*
+/* Originally just used for DNS xBL lists, now also used for the
+reverse_ip expansion operator.
+
Arguments:
buffer where to put the answer
address the address to invert
*/
Arguments:
buffer where to put the answer
address the address to invert
*/
-
static
void
+void
invert_address(uschar *buffer, uschar *address)
{
int bin[4];
invert_address(uschar *buffer, uschar *address)
{
int bin[4];
@@
-3036,7
+3036,7
@@
while ((domain = string_nextinlist(&list, &sep, buffer, sizeof(buffer))) != NULL
for (s = domain; *s != 0; s++)
{
for (s = domain; *s != 0; s++)
{
- if (!isalnum(*s) && *s != '-' && *s != '.')
+ if (!isalnum(*s) && *s != '-' && *s != '.'
&& *s != '_'
)
{
log_write(0, LOG_MAIN, "dnslists domain \"%s\" contains "
"strange characters - is this right?", domain);
{
log_write(0, LOG_MAIN, "dnslists domain \"%s\" contains "
"strange characters - is this right?", domain);
@@
-3048,7
+3048,7
@@
while ((domain = string_nextinlist(&list, &sep, buffer, sizeof(buffer))) != NULL
if (domain_txt != domain) for (s = domain_txt; *s != 0; s++)
{
if (domain_txt != domain) for (s = domain_txt; *s != 0; s++)
{
- if (!isalnum(*s) && *s != '-' && *s != '.')
+ if (!isalnum(*s) && *s != '-' && *s != '.'
&& *s != '_'
)
{
log_write(0, LOG_MAIN, "dnslists domain \"%s\" contains "
"strange characters - is this right?", domain_txt);
{
log_write(0, LOG_MAIN, "dnslists domain \"%s\" contains "
"strange characters - is this right?", domain_txt);