## modules/ca/ca_dictionary.h

/* [<][>][^][v][top][bottom][index][help] */

## FUNCTIONS

This source file includes following functions.

       1 /***************************************
       2   $Revision:
       3
       4   CA module: a wrapper for the functions which parse the
       5              dictionary, configuration and source files.
       6
       7   Status: NOT REVIEWED, NOT TESTED
       8
       9   Author(s):       Ambrose Magee
      10
      11 ******************//******************
      12 Modification History:
      13
      14 ******************/
      15
      16 /************************************
      17 Copyright (c) 2000,2001,2002                    RIPE NCC
      18
      19 All Rights Reserved
      20
      21 Permission to use, copy, modify, and distribute this software and its
      22 documentation for any purpose and without fee is hereby granted,
      23 provided that the above copyright notice appear in all copies and that
      24 both that copyright notice and this permission notice appear in
      25 supporting documentation, and that the name of the author not be
      26 used in advertising or publicity pertaining to distribution of the
      27 software without specific, written prior permission.
      28
      29 THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
      30 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
      31 AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
      32 DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
      33 AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
      34 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
      35 ***************************************/
      36
      37 #ifndef _CA_DICT_H
      38 #define _CA_DICT_H
      39
      40 /* m4 macro */
      41
      42
      43 #define CAP_W 0x000001
      44 #define CAP_U 0x000002
      45
      46
      47
      48
      49
      50
      51
      52
      53
      54
      55
      56
      57
      58
      59
      60
      61
      62
      63
      64
      65
      66
      67
      68
      69
      70
      71
      72
      73
      74
      75
      76
      77
      78
      79
      80
      81
      82
      83
      84
      85
      86
      87
      88
      89
      90
      91
      92
      93
      94
      95
      96
      97
      98
      99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136 typedef enum {
     137
     138           CA_TESTMODE,
     139   CA_OVERRIDECRYPTEDPW,
     140   CA_AUTODBMHELP,
     141   CA_CROSSNOTIFYSOURCES,
     142   CA_UPDLOG,
     143   CA_ACKLOG,
     144   CA_LOCKDIR,
     145   CA_UPDATELOCK,
     146   CA_KEEPOPEN,
     147   CA_ALLOCMNT,
     148   CA_WHOISUPDFROM,
     149   CA_TMPDIR,
     150   CA_GPGCMD,
     151   CA_PGPPATH,
     152   CA_MAILCMD,
     153   CA_HUMAILBOX,
     154   CA_AUTOBOX,
     155   CA_DEFMAIL,
     156   CA_DUPLICATEPERSONCHECK,
     157   CA_CN_SUBJECT_ADD,
     158   CA_CN_SUBJECT_DEL,
     159   CA_CN_EXPLAIN_ADD,
     160   CA_CN_EXPLAIN_DEL,
     161   CA_CN_OVERLAP_ADD,
     162   CA_CN_OVERLAP_DEL,
     163   CA_CNO_SUBJECT_ADD,
     164   CA_CNO_SUBJECT_DEL,
     165   CA_CNO_EXPLAIN_ADD,
     166   CA_CNO_EXPLAIN_DEL,
     167   CA_CNO_OVERLAP_ADD,
     168   CA_CNO_OVERLAP_DEL,
     169   CA_MAILTXT,
     170   CA_MHEADER,
     171   CA_FAILURETXT,
     172   CA_SUCCESSTXT,
     173   CA_HELPHEADER,
     174   CA_ACKERR,
     175   CA_ACKOK,
     176   CA_ACKSIG,
     177   CA_NOTITXT,
     178   CA_NOTIMAILTXT,
     179   CA_NOTINETWORKTXT,
     180   CA_NHEADER,
     181   CA_FWHEADER,
     182   CA_FWTXT,
     183   CA_FWMAILTXT,
     184   CA_FWNETWORKTXT,
     185   CA_MTFWHEADER,
     186   CA_MTFWTXT,
     187   CA_REFERRALTIMEOUT,
     188   CA_REFERRALMAXLINES,
     189   CA_COUNTRY,
     190   CA_RIPADMIN,
     191   CA_NOTIFLOG,
     192   CA_FORWLOG,
     193   CA_CROSSLOG,
     194   CA_UPDSOURCE,
     195   CA_SVWHOIS_PORT,
     196   CA_SVCONFIG_PORT,
     197   CA_SVMIRROR_PORT,
     198   CA_SOURCEFILE,
     199   CA_AC_DECAY_INTERVAL,
     200   CA_AC_DECAY_HALFLIFE,
     201   CA_PW_RESP_HEADER,
     202   CA_PW_ERR_NOKEY,
     203   CA_PW_HELP_FILE,
     204   CA_PW_K_FILTER,
     205   CA_PW_LIMIT_REACHED,
     206   CA_PW_ACL_ADDRPASS,
     207   CA_PW_ACL_PERMDENY,
     208   CA_PW_NOTFOUND,
     209   CA_PW_CONNCLOSED,
     210   CA_PW_BANNER,
     211   CA_QC_BADATTR,
     212   CA_QC_FMT_ATTRNOTINV,
     213   CA_QC_FMT_BADSOURCE,
     214   CA_QC_BADOBJTYPE,
     215   CA_QI_REF_TMOUT,
     216   CA_QI_REF_OVERMAXLIN,
     217   CA_QI_REF_BADHOST,
     218   CA_QI_REF_HOSTNOTTRESP,
     219   CA_QI_FMT_REFHEADER,
     220   CA_ER_DEF,
     221   CA_ER_MACRO,
     222   CA_ER_UD_DEF,
     223   CA_QI_REFTRAILER,
     224
     225
     226         CA_NUMBEROFSYMBOLS
     227
     228 } ca_dictsym;
     229
     230 #ifndef DICT_INIT
     231 extern dict_t dictionary[];
     232 #else
     233 dict_t dictionary[] = {
     234    {"TESTMODE", "CA_TESTMODE",  "CA_BOOLEAN", CA_TESTMODE, 1},
     235  {"OVERRIDECRYPTEDPW", "CA_OVERRIDECRYPTEDPW",  "CA_STRING", CA_OVERRIDECRYPTEDPW, 1},
     236  {"AUTODBMHELP", "CA_AUTODBMHELP",  "CA_DIRLIST", CA_AUTODBMHELP, 1},
     237  {"CROSSNOTIFYSOURCES", "CA_CROSSNOTIFYSOURCES",  "CA_STRING", CA_CROSSNOTIFYSOURCES, 1},
     238  {"UPDLOG", "CA_UPDLOG",  "CA_DIRLIST", CA_UPDLOG, 1},
     239  {"ACKLOG", "CA_ACKLOG",  "CA_DIRLIST", CA_ACKLOG, 1},
     240  {"LOCKDIR", "CA_LOCKDIR",  "CA_DIRLIST", CA_LOCKDIR, 1},
     241  {"UPDATELOCK", "CA_UPDATELOCK",  "CA_STRING", CA_UPDATELOCK, 1},
     242  {"KEEPOPEN", "CA_KEEPOPEN",  "CA_INT", CA_KEEPOPEN, 1},
     243  {"ALLOCMNT", "CA_ALLOCMNT",  "CA_STRING", CA_ALLOCMNT, 1},
     244  {"WHOISUPDFROM", "CA_WHOISUPDFROM",  "CA_STRING", CA_WHOISUPDFROM, 1},
     245  {"TMPDIR", "CA_TMPDIR",  "CA_DIRLIST", CA_TMPDIR, 1},
     246  {"GPGCMD", "CA_GPGCMD",  "CA_DIRLIST", CA_GPGCMD, 1},
     247  {"PGPPATH", "CA_PGPPATH",  "CA_DIRLIST", CA_PGPPATH, 1},
     248  {"MAILCMD", "CA_MAILCMD",  "CA_DIRLIST", CA_MAILCMD, 1},
     249  {"HUMAILBOX", "CA_HUMAILBOX",  "CA_STRING", CA_HUMAILBOX, 1},
     250  {"AUTOBOX", "CA_AUTOBOX",  "CA_STRING", CA_AUTOBOX, 1},
     251  {"DEFMAIL", "CA_DEFMAIL",  "CA_STRING", CA_DEFMAIL, 1},
     252  {"DUPLICATEPERSONCHECK", "CA_DUPLICATEPERSONCHECK",  "CA_STRING", CA_DUPLICATEPERSONCHECK, 1},
     253  {"CN_SUBJECT_ADD", "CA_CN_SUBJECT_ADD",  "CA_STRING", CA_CN_SUBJECT_ADD, 1},
     254  {"CN_SUBJECT_DEL", "CA_CN_SUBJECT_DEL",  "CA_STRING", CA_CN_SUBJECT_DEL, 1},
     255  {"CN_EXPLAIN_ADD", "CA_CN_EXPLAIN_ADD",  "CA_STRING", CA_CN_EXPLAIN_ADD, 1},
     256  {"CN_EXPLAIN_DEL", "CA_CN_EXPLAIN_DEL",  "CA_STRING", CA_CN_EXPLAIN_DEL, 1},
     257  {"CN_OVERLAP_ADD", "CA_CN_OVERLAP_ADD",  "CA_STRING", CA_CN_OVERLAP_ADD, 1},
     258  {"CN_OVERLAP_DEL", "CA_CN_OVERLAP_DEL",  "CA_STRING", CA_CN_OVERLAP_DEL, 1},
     259  {"CNO_SUBJECT_ADD", "CA_CNO_SUBJECT_ADD",  "CA_STRING", CA_CNO_SUBJECT_ADD, 1},
     260  {"CNO_SUBJECT_DEL", "CA_CNO_SUBJECT_DEL",  "CA_STRING", CA_CNO_SUBJECT_DEL, 1},
     261  {"CNO_EXPLAIN_ADD", "CA_CNO_EXPLAIN_ADD",  "CA_STRING", CA_CNO_EXPLAIN_ADD, 1},
     262  {"CNO_EXPLAIN_DEL", "CA_CNO_EXPLAIN_DEL",  "CA_STRING", CA_CNO_EXPLAIN_DEL, 1},
     263  {"CNO_OVERLAP_ADD", "CA_CNO_OVERLAP_ADD",  "CA_STRING", CA_CNO_OVERLAP_ADD, 1},
     264  {"CNO_OVERLAP_DEL", "CA_CNO_OVERLAP_DEL",  "CA_STRING", CA_CNO_OVERLAP_DEL, 1},
     265  {"MAILTXT", "CA_MAILTXT",  "CA_STRING", CA_MAILTXT, 1},
     266  {"MHEADER", "CA_MHEADER",  "CA_STRING", CA_MHEADER, 1},
     267  {"FAILURETXT", "CA_FAILURETXT",  "CA_STRING", CA_FAILURETXT, 1},
     268  {"SUCCESSTXT", "CA_SUCCESSTXT",  "CA_STRING", CA_SUCCESSTXT, 1},
     269  {"HELPHEADER", "CA_HELPHEADER",  "CA_STRING", CA_HELPHEADER, 1},
     270  {"ACKERR", "CA_ACKERR",  "CA_STRING", CA_ACKERR, 1},
     271  {"ACKOK", "CA_ACKOK",  "CA_STRING", CA_ACKOK, 1},
     272  {"ACKSIG", "CA_ACKSIG",  "CA_STRING", CA_ACKSIG, 1},
     273  {"NOTITXT", "CA_NOTITXT",  "CA_STRING", CA_NOTITXT, 1},
     274  {"NOTIMAILTXT", "CA_NOTIMAILTXT",  "CA_STRING", CA_NOTIMAILTXT, 1},
     275  {"NOTINETWORKTXT", "CA_NOTINETWORKTXT",  "CA_STRING", CA_NOTINETWORKTXT, 1},
     276  {"NHEADER", "CA_NHEADER",  "CA_STRING", CA_NHEADER, 1},
     277  {"FWHEADER", "CA_FWHEADER",  "CA_STRING", CA_FWHEADER, 1},
     278  {"FWTXT", "CA_FWTXT",  "CA_STRING", CA_FWTXT, 1},
     279  {"FWMAILTXT", "CA_FWMAILTXT",  "CA_STRING", CA_FWMAILTXT, 1},
     280  {"FWNETWORKTXT", "CA_FWNETWORKTXT",  "CA_STRING", CA_FWNETWORKTXT, 1},
     281  {"MTFWHEADER", "CA_MTFWHEADER",  "CA_STRING", CA_MTFWHEADER, 1},
     282  {"MTFWTXT", "CA_MTFWTXT",  "CA_STRING", CA_MTFWTXT, 1},
     283  {"REFERRALTIMEOUT", "CA_REFERRALTIMEOUT",  "CA_INT", CA_REFERRALTIMEOUT, 1},
     284  {"REFERRALMAXLINES", "CA_REFERRALMAXLINES",  "CA_INT", CA_REFERRALMAXLINES, 1},
     285  {"COUNTRY", "CA_COUNTRY",  "CA_STRING", CA_COUNTRY, 1},
     286  {"RIPADMIN", "CA_RIPADMIN",  "CA_ADMIN", CA_RIPADMIN, 1},
     287  {"NOTIFLOG", "CA_NOTIFLOG",  "CA_DIRLIST", CA_NOTIFLOG, 1},
     288  {"FORWLOG", "CA_FORWLOG",  "CA_DIRLIST", CA_FORWLOG, 1},
     289  {"CROSSLOG", "CA_CROSSLOG",  "CA_DIRLIST", CA_CROSSLOG, 1},
     290  {"UPDSOURCE", "CA_UPDSOURCE",  "CA_UPDSOURCE", CA_UPDSOURCE, 1},
     291  {"SVWHOIS_PORT", "CA_SVWHOIS_PORT",  "CA_INT", CA_SVWHOIS_PORT, 1},
     292  {"SVCONFIG_PORT", "CA_SVCONFIG_PORT",  "CA_INT", CA_SVCONFIG_PORT, 1},
     293  {"SVMIRROR_PORT", "CA_SVMIRROR_PORT",  "CA_INT", CA_SVMIRROR_PORT, 1},
     294  {"SOURCEFILE", "CA_SOURCEFILE",  "CA_DIRLIST", CA_SOURCEFILE, 1},
     295  {"AC_DECAY_INTERVAL", "CA_AC_DECAY_INTERVAL",  "CA_INT", CA_AC_DECAY_INTERVAL, 1},
     296  {"AC_DECAY_HALFLIFE", "CA_AC_DECAY_HALFLIFE",  "CA_INT", CA_AC_DECAY_HALFLIFE, 1},
     297  {"PW_RESP_HEADER", "CA_PW_RESP_HEADER",  "CA_STRING", CA_PW_RESP_HEADER, 1},
     298  {"PW_ERR_NOKEY", "CA_PW_ERR_NOKEY",  "CA_STRING", CA_PW_ERR_NOKEY, 1},
     299  {"PW_HELP_FILE", "CA_PW_HELP_FILE",  "CA_DIRLIST", CA_PW_HELP_FILE, 1},
     300  {"PW_K_FILTER", "CA_PW_K_FILTER",  "CA_STRING", CA_PW_K_FILTER, 1},
     301  {"PW_LIMIT_REACHED", "CA_PW_LIMIT_REACHED",  "CA_STRING", CA_PW_LIMIT_REACHED, 1},
     302  {"PW_ACL_ADDRPASS", "CA_PW_ACL_ADDRPASS",  "CA_STRING", CA_PW_ACL_ADDRPASS, 1},
     303  {"PW_ACL_PERMDENY", "CA_PW_ACL_PERMDENY",  "CA_STRING", CA_PW_ACL_PERMDENY, 1},
     304  {"PW_NOTFOUND", "CA_PW_NOTFOUND",  "CA_STRING", CA_PW_NOTFOUND, 1},
     305  {"PW_CONNCLOSED", "CA_PW_CONNCLOSED",  "CA_STRING", CA_PW_CONNCLOSED, 1},
     306  {"PW_BANNER", "CA_PW_BANNER",  "CA_STRING", CA_PW_BANNER, 1},
     307  {"QC_BADATTR", "CA_QC_BADATTR",  "CA_STRING", CA_QC_BADATTR, 1},
     308  {"QC_FMT_ATTRNOTINV", "CA_QC_FMT_ATTRNOTINV",  "CA_STRING", CA_QC_FMT_ATTRNOTINV, 1},
     309  {"QC_FMT_BADSOURCE", "CA_QC_FMT_BADSOURCE",  "CA_STRING", CA_QC_FMT_BADSOURCE, 1},
     310  {"QC_BADOBJTYPE", "CA_QC_BADOBJTYPE",  "CA_STRING", CA_QC_BADOBJTYPE, 1},
     311  {"QI_REF_TMOUT", "CA_QI_REF_TMOUT",  "CA_STRING", CA_QI_REF_TMOUT, 1},
     312  {"QI_REF_OVERMAXLIN", "CA_QI_REF_OVERMAXLIN",  "CA_STRING", CA_QI_REF_OVERMAXLIN, 1},
     313  {"QI_REF_BADHOST", "CA_QI_REF_BADHOST",  "CA_STRING", CA_QI_REF_BADHOST, 1},
     314  {"QI_REF_HOSTNOTTRESP", "CA_QI_REF_HOSTNOTTRESP",  "CA_STRING", CA_QI_REF_HOSTNOTTRESP, 1},
     315  {"QI_FMT_REFHEADER", "CA_QI_FMT_REFHEADER",  "CA_STRING", CA_QI_FMT_REFHEADER, 1},
     316  {"ER_DEF", "CA_ER_DEF",  "CA_STRING", CA_ER_DEF, 1},
     317  {"ER_MACRO", "CA_ER_MACRO",  "CA_STRING", CA_ER_MACRO, 1},
     318  {"ER_UD_DEF", "CA_ER_UD_DEF",  "CA_DIRLIST", CA_ER_UD_DEF, 1},
     319  {"QI_REFTRAILER", "CA_QI_REFTRAILER",  "CA_STRING", CA_QI_REFTRAILER, 1},
     320
     321
     322   {"", "", "", CA_NUMBEROFSYMBOLS, 1}
     323 };
     324 #endif
     325
     326 #endif /* ifndef _CA_DICT_H */

/* [<][>][^][v][top][bottom][index][help] */