## include/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                              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
      38 /* m4 macro */
      39
      40
      41 #define CAP_W 0x000001
      42 #define CAP_U 0x000002
      43
      44
      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 typedef enum {
     135
     136           CA_TESTMODE,
     137   CA_OVERRIDECRYPTEDPW,
     138   CA_AUTODBMHELP,
     139   CA_CROSSNOTIFYSOURCES,
     140   CA_UPDLOG,
     141   CA_ACKLOG,
     142   CA_LOCKDIR,
     143   CA_UPDATELOCK,
     144   CA_KEEPOPEN,
     145   CA_ALLOCMNT,
     146   CA_WHOISUPDFROM,
     147   CA_TMPDIR,
     148   CA_GPGCMD,
     149   CA_PGPPATH,
     150   CA_MAILCMD,
     151   CA_HUMAILBOX,
     152   CA_AUTOBOX,
     153   CA_DEFMAIL,
     154   CA_DUPLICATEPERSONCHECK,
     155   CA_CN_SUBJECT_ADD,
     156   CA_CN_SUBJECT_DEL,
     157   CA_CN_EXPLAIN_ADD,
     158   CA_CN_EXPLAIN_DEL,
     159   CA_CN_OVERLAP_ADD,
     160   CA_CN_OVERLAP_DEL,
     161   CA_CNO_SUBJECT_ADD,
     162   CA_CNO_SUBJECT_DEL,
     163   CA_CNO_EXPLAIN_ADD,
     164   CA_CNO_EXPLAIN_DEL,
     165   CA_CNO_OVERLAP_ADD,
     166   CA_CNO_OVERLAP_DEL,
     167   CA_MAILTXT,
     168   CA_MHEADER,
     169   CA_FAILURETXT,
     170   CA_SUCCESSTXT,
     171   CA_HELPHEADER,
     172   CA_ACKERR,
     173   CA_ACKOK,
     174   CA_ACKSIG,
     175   CA_NOTITXT,
     176   CA_NOTIMAILTXT,
     177   CA_NOTINETWORKTXT,
     178   CA_NHEADER,
     179   CA_FWHEADER,
     180   CA_FWTXT,
     181   CA_FWMAILTXT,
     182   CA_FWNETWORKTXT,
     183   CA_MTFWHEADER,
     184   CA_MTFWTXT,
     185   CA_REFERRALTIMEOUT,
     186   CA_REFERRALMAXLINES,
     187   CA_COUNTRY,
     188   CA_RIPADMIN,
     189   CA_NOTIFLOG,
     190   CA_FORWLOG,
     191   CA_CROSSLOG,
     192   CA_UPDSOURCE,
     193   CA_SVWHOIS_PORT,
     194   CA_SVCONFIG_PORT,
     195   CA_SVMIRROR_PORT,
     196   CA_SOURCEFILE,
     197   CA_AC_DECAY_INTERVAL,
     198   CA_AC_DECAY_HALFLIFE,
     199   CA_PW_RESP_HEADER,
     200   CA_PW_ERR_NOKEY,
     201   CA_PW_HELP_FILE,
     202   CA_PW_K_FILTER,
     203   CA_PW_LIMIT_REACHED,
     204   CA_PW_ACL_ADDRPASS,
     205   CA_PW_ACL_PERMDENY,
     206   CA_PW_NOTFOUND,
     207   CA_PW_CONNCLOSED,
     208   CA_PW_BANNER,
     209   CA_QC_BADATTR,
     210   CA_QC_FMT_ATTRNOTINV,
     211   CA_QC_FMT_BADSOURCE,
     212   CA_QC_BADOBJTYPE,
     213   CA_QI_REF_TMOUT,
     214   CA_QI_REF_OVERMAXLIN,
     215   CA_QI_REF_BADHOST,
     216   CA_QI_REF_HOSTNOTTRESP,
     217   CA_QI_FMT_REFHEADER,
     218   CA_ER_DEF,
     219   CA_ER_MACRO,
     220   CA_ER_UD_DEF,
     221   CA_QI_REFTRAILER,
     222
     223
     224         CA_NUMBEROFSYMBOLS
     225
     226 } ca_dictsym;
     227
     228 #ifndef DICT_INIT
     229 extern dict_t dictionary[];
     230 #else
     231 dict_t dictionary[] = {
     232    {"TESTMODE", "CA_TESTMODE",  "CA_BOOLEAN", CA_TESTMODE, 1},
     233  {"OVERRIDECRYPTEDPW", "CA_OVERRIDECRYPTEDPW",  "CA_STRING", CA_OVERRIDECRYPTEDPW, 1},
     234  {"AUTODBMHELP", "CA_AUTODBMHELP",  "CA_DIRLIST", CA_AUTODBMHELP, 1},
     235  {"CROSSNOTIFYSOURCES", "CA_CROSSNOTIFYSOURCES",  "CA_STRING", CA_CROSSNOTIFYSOURCES, 1},
     236  {"UPDLOG", "CA_UPDLOG",  "CA_DIRLIST", CA_UPDLOG, 1},
     237  {"ACKLOG", "CA_ACKLOG",  "CA_DIRLIST", CA_ACKLOG, 1},
     238  {"LOCKDIR", "CA_LOCKDIR",  "CA_DIRLIST", CA_LOCKDIR, 1},
     239  {"UPDATELOCK", "CA_UPDATELOCK",  "CA_STRING", CA_UPDATELOCK, 1},
     240  {"KEEPOPEN", "CA_KEEPOPEN",  "CA_INT", CA_KEEPOPEN, 1},
     241  {"ALLOCMNT", "CA_ALLOCMNT",  "CA_STRING", CA_ALLOCMNT, 1},
     242  {"WHOISUPDFROM", "CA_WHOISUPDFROM",  "CA_STRING", CA_WHOISUPDFROM, 1},
     243  {"TMPDIR", "CA_TMPDIR",  "CA_DIRLIST", CA_TMPDIR, 1},
     244  {"GPGCMD", "CA_GPGCMD",  "CA_DIRLIST", CA_GPGCMD, 1},
     245  {"PGPPATH", "CA_PGPPATH",  "CA_DIRLIST", CA_PGPPATH, 1},
     246  {"MAILCMD", "CA_MAILCMD",  "CA_DIRLIST", CA_MAILCMD, 1},
     247  {"HUMAILBOX", "CA_HUMAILBOX",  "CA_STRING", CA_HUMAILBOX, 1},
     248  {"AUTOBOX", "CA_AUTOBOX",  "CA_STRING", CA_AUTOBOX, 1},
     249  {"DEFMAIL", "CA_DEFMAIL",  "CA_STRING", CA_DEFMAIL, 1},
     250  {"DUPLICATEPERSONCHECK", "CA_DUPLICATEPERSONCHECK",  "CA_STRING", CA_DUPLICATEPERSONCHECK, 1},
     251  {"CN_SUBJECT_ADD", "CA_CN_SUBJECT_ADD",  "CA_STRING", CA_CN_SUBJECT_ADD, 1},
     252  {"CN_SUBJECT_DEL", "CA_CN_SUBJECT_DEL",  "CA_STRING", CA_CN_SUBJECT_DEL, 1},
     253  {"CN_EXPLAIN_ADD", "CA_CN_EXPLAIN_ADD",  "CA_STRING", CA_CN_EXPLAIN_ADD, 1},
     254  {"CN_EXPLAIN_DEL", "CA_CN_EXPLAIN_DEL",  "CA_STRING", CA_CN_EXPLAIN_DEL, 1},
     255  {"CN_OVERLAP_ADD", "CA_CN_OVERLAP_ADD",  "CA_STRING", CA_CN_OVERLAP_ADD, 1},
     256  {"CN_OVERLAP_DEL", "CA_CN_OVERLAP_DEL",  "CA_STRING", CA_CN_OVERLAP_DEL, 1},
     257  {"CNO_SUBJECT_ADD", "CA_CNO_SUBJECT_ADD",  "CA_STRING", CA_CNO_SUBJECT_ADD, 1},
     258  {"CNO_SUBJECT_DEL", "CA_CNO_SUBJECT_DEL",  "CA_STRING", CA_CNO_SUBJECT_DEL, 1},
     259  {"CNO_EXPLAIN_ADD", "CA_CNO_EXPLAIN_ADD",  "CA_STRING", CA_CNO_EXPLAIN_ADD, 1},
     260  {"CNO_EXPLAIN_DEL", "CA_CNO_EXPLAIN_DEL",  "CA_STRING", CA_CNO_EXPLAIN_DEL, 1},
     261  {"CNO_OVERLAP_ADD", "CA_CNO_OVERLAP_ADD",  "CA_STRING", CA_CNO_OVERLAP_ADD, 1},
     262  {"CNO_OVERLAP_DEL", "CA_CNO_OVERLAP_DEL",  "CA_STRING", CA_CNO_OVERLAP_DEL, 1},
     263  {"MAILTXT", "CA_MAILTXT",  "CA_STRING", CA_MAILTXT, 1},
     264  {"MHEADER", "CA_MHEADER",  "CA_STRING", CA_MHEADER, 1},
     265  {"FAILURETXT", "CA_FAILURETXT",  "CA_STRING", CA_FAILURETXT, 1},
     266  {"SUCCESSTXT", "CA_SUCCESSTXT",  "CA_STRING", CA_SUCCESSTXT, 1},
     267  {"HELPHEADER", "CA_HELPHEADER",  "CA_STRING", CA_HELPHEADER, 1},
     268  {"ACKERR", "CA_ACKERR",  "CA_STRING", CA_ACKERR, 1},
     269  {"ACKOK", "CA_ACKOK",  "CA_STRING", CA_ACKOK, 1},
     270  {"ACKSIG", "CA_ACKSIG",  "CA_STRING", CA_ACKSIG, 1},
     271  {"NOTITXT", "CA_NOTITXT",  "CA_STRING", CA_NOTITXT, 1},
     272  {"NOTIMAILTXT", "CA_NOTIMAILTXT",  "CA_STRING", CA_NOTIMAILTXT, 1},
     273  {"NOTINETWORKTXT", "CA_NOTINETWORKTXT",  "CA_STRING", CA_NOTINETWORKTXT, 1},
     274  {"NHEADER", "CA_NHEADER",  "CA_STRING", CA_NHEADER, 1},
     275  {"FWHEADER", "CA_FWHEADER",  "CA_STRING", CA_FWHEADER, 1},
     276  {"FWTXT", "CA_FWTXT",  "CA_STRING", CA_FWTXT, 1},
     277  {"FWMAILTXT", "CA_FWMAILTXT",  "CA_STRING", CA_FWMAILTXT, 1},
     278  {"FWNETWORKTXT", "CA_FWNETWORKTXT",  "CA_STRING", CA_FWNETWORKTXT, 1},
     279  {"MTFWHEADER", "CA_MTFWHEADER",  "CA_STRING", CA_MTFWHEADER, 1},
     280  {"MTFWTXT", "CA_MTFWTXT",  "CA_STRING", CA_MTFWTXT, 1},
     281  {"REFERRALTIMEOUT", "CA_REFERRALTIMEOUT",  "CA_INT", CA_REFERRALTIMEOUT, 1},
     282  {"REFERRALMAXLINES", "CA_REFERRALMAXLINES",  "CA_INT", CA_REFERRALMAXLINES, 1},
     283  {"COUNTRY", "CA_COUNTRY",  "CA_STRING", CA_COUNTRY, 1},
     284  {"RIPADMIN", "CA_RIPADMIN",  "CA_ADMIN", CA_RIPADMIN, 1},
     285  {"NOTIFLOG", "CA_NOTIFLOG",  "CA_DIRLIST", CA_NOTIFLOG, 1},
     286  {"FORWLOG", "CA_FORWLOG",  "CA_DIRLIST", CA_FORWLOG, 1},
     287  {"CROSSLOG", "CA_CROSSLOG",  "CA_DIRLIST", CA_CROSSLOG, 1},
     288  {"UPDSOURCE", "CA_UPDSOURCE",  "CA_UPDSOURCE", CA_UPDSOURCE, 1},
     289  {"SVWHOIS_PORT", "CA_SVWHOIS_PORT",  "CA_INT", CA_SVWHOIS_PORT, 1},
     290  {"SVCONFIG_PORT", "CA_SVCONFIG_PORT",  "CA_INT", CA_SVCONFIG_PORT, 1},
     291  {"SVMIRROR_PORT", "CA_SVMIRROR_PORT",  "CA_INT", CA_SVMIRROR_PORT, 1},
     292  {"SOURCEFILE", "CA_SOURCEFILE",  "CA_DIRLIST", CA_SOURCEFILE, 1},
     293  {"AC_DECAY_INTERVAL", "CA_AC_DECAY_INTERVAL",  "CA_INT", CA_AC_DECAY_INTERVAL, 1},
     294  {"AC_DECAY_HALFLIFE", "CA_AC_DECAY_HALFLIFE",  "CA_INT", CA_AC_DECAY_HALFLIFE, 1},
     295  {"PW_RESP_HEADER", "CA_PW_RESP_HEADER",  "CA_STRING", CA_PW_RESP_HEADER, 1},
     296  {"PW_ERR_NOKEY", "CA_PW_ERR_NOKEY",  "CA_STRING", CA_PW_ERR_NOKEY, 1},
     297  {"PW_HELP_FILE", "CA_PW_HELP_FILE",  "CA_DIRLIST", CA_PW_HELP_FILE, 1},
     298  {"PW_K_FILTER", "CA_PW_K_FILTER",  "CA_STRING", CA_PW_K_FILTER, 1},
     299  {"PW_LIMIT_REACHED", "CA_PW_LIMIT_REACHED",  "CA_STRING", CA_PW_LIMIT_REACHED, 1},
     300  {"PW_ACL_ADDRPASS", "CA_PW_ACL_ADDRPASS",  "CA_STRING", CA_PW_ACL_ADDRPASS, 1},
     301  {"PW_ACL_PERMDENY", "CA_PW_ACL_PERMDENY",  "CA_STRING", CA_PW_ACL_PERMDENY, 1},
     302  {"PW_NOTFOUND", "CA_PW_NOTFOUND",  "CA_STRING", CA_PW_NOTFOUND, 1},
     303  {"PW_CONNCLOSED", "CA_PW_CONNCLOSED",  "CA_STRING", CA_PW_CONNCLOSED, 1},
     304  {"PW_BANNER", "CA_PW_BANNER",  "CA_STRING", CA_PW_BANNER, 1},
     305  {"QC_BADATTR", "CA_QC_BADATTR",  "CA_STRING", CA_QC_BADATTR, 1},
     306  {"QC_FMT_ATTRNOTINV", "CA_QC_FMT_ATTRNOTINV",  "CA_STRING", CA_QC_FMT_ATTRNOTINV, 1},
     307  {"QC_FMT_BADSOURCE", "CA_QC_FMT_BADSOURCE",  "CA_STRING", CA_QC_FMT_BADSOURCE, 1},
     308  {"QC_BADOBJTYPE", "CA_QC_BADOBJTYPE",  "CA_STRING", CA_QC_BADOBJTYPE, 1},
     309  {"QI_REF_TMOUT", "CA_QI_REF_TMOUT",  "CA_STRING", CA_QI_REF_TMOUT, 1},
     310  {"QI_REF_OVERMAXLIN", "CA_QI_REF_OVERMAXLIN",  "CA_STRING", CA_QI_REF_OVERMAXLIN, 1},
     311  {"QI_REF_BADHOST", "CA_QI_REF_BADHOST",  "CA_STRING", CA_QI_REF_BADHOST, 1},
     312  {"QI_REF_HOSTNOTTRESP", "CA_QI_REF_HOSTNOTTRESP",  "CA_STRING", CA_QI_REF_HOSTNOTTRESP, 1},
     313  {"QI_FMT_REFHEADER", "CA_QI_FMT_REFHEADER",  "CA_STRING", CA_QI_FMT_REFHEADER, 1},
     314  {"ER_DEF", "CA_ER_DEF",  "CA_STRING", CA_ER_DEF, 1},
     315  {"ER_MACRO", "CA_ER_MACRO",  "CA_STRING", CA_ER_MACRO, 1},
     316  {"ER_UD_DEF", "CA_ER_UD_DEF",  "CA_DIRLIST", CA_ER_UD_DEF, 1},
     317  {"QI_REFTRAILER", "CA_QI_REFTRAILER",  "CA_STRING", CA_QI_REFTRAILER, 1},
     318
     319
     320   {"", "", "", CA_NUMBEROFSYMBOLS, 1}
     321 };
     322 #endif
     323

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