ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/auth.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/auth.c (file contents):
Revision 5720 by michael, Sun Mar 22 11:50:26 2015 UTC vs.
Revision 5888 by michael, Sun May 3 16:32:25 2015 UTC

# Line 53 | Line 53
53   #include "mempool.h"
54  
55  
56 static const char *const HeaderMessages[] =
57 {
58  ":*** Looking up your hostname",
59  ":*** Found your hostname",
60  ":*** Couldn't look up your hostname",
61  ":*** Checking Ident",
62  ":*** Got Ident response",
63  ":*** No Ident response",
64  ":*** Your forward and reverse DNS do not match, ignoring hostname",
65  ":*** Your hostname is too long, ignoring hostname"
66 };
67
56   enum
57   {
58    REPORT_DO_DNS,
# Line 77 | Line 65 | enum
65    REPORT_HOST_TOOLONG
66   };
67  
68 + static const char *const HeaderMessages[] =
69 + {
70 +  [REPORT_DO_DNS] = ":*** Looking up your hostname",
71 +  [REPORT_FIN_DNS] = ":*** Found your hostname",
72 +  [REPORT_FAIL_DNS] = ":*** Couldn't look up your hostname",
73 +  [REPORT_DO_ID] = ":*** Checking Ident",
74 +  [REPORT_FIN_ID] = ":*** Got Ident response",
75 +  [REPORT_FAIL_ID] = ":*** No Ident response",
76 +  [REPORT_IP_MISMATCH] = ":*** Your forward and reverse DNS do not match, ignoring hostname",
77 +  [REPORT_HOST_TOOLONG] = ":*** Your hostname is too long, ignoring hostname"
78 + };
79 +
80   #define sendheader(c, i) sendto_one_notice((c), &me, "%s", HeaderMessages[(i)])
81  
82   static dlink_list auth_pending_list;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)