Source File modules/ca/ca_testing.c

    1    | /* A test program to test the get and set functions. */
    2    |
    3    | #include <stdio.h>
    4    | #include <glib.h>
    5    | #include <string.h>
    6    | #include <stdlib.h>
    7    | #include "ca_libs.h"
    8    | #include "ca_dictSyms.h"
    9    | #include "ca_macros.h"
    10   |
    11   | #define DEBUG	/* Debug this file. */
    12   |
    13   | int main ()
    14   | {
    15   | FILE *cfPtr;
    16   | int port;
    17   | char help[80];
    18   | char reply[80];
    19   |
    20   | ca_getDictionary(dictionary, VARS);
    21   |
    22   | ca_getDatabase(ripe);
    23   | ca_getDatabase(arin);
    24   | ca_getDatabase(radb);
    25   |
    26   | ca_getSource(ripeComponent);
    27   | ca_getSource(arinComponent);
    28   | ca_getSource(radbComponent);
    29   |
    30   | sourceList = g_slist_append(sourceList, &ripeComponent);
    31   | sourceList = g_slist_append(sourceList, &arinComponent);
    32   | sourceList = g_slist_append(sourceList, &radbComponent);
    33   |
    34   | ca_getAllSources(sourceList);
    35   |
    36   | ca_get_bindport;
    37   | ca_set_bindport;
    38   | ca_get_bindport;
    39   |
    40   | ca_get_help;
    41   | ca_set_help;
    42   | ca_get_help;
    43   |
    44   | ca_get_replybanner;
    45   | ca_set_replybanner;
    46   | ca_get_replybanner;
    47   |
    48   | /*
    49   |  * ca_get_source;
    50   |  * ca_set_source;
    51   |  * ca_get_source;
    52   |  */
    53   |
    54   | ca_get_testmode;
    55   | ca_set_testmode;
    56   | ca_get_testmode;
    57   |
    58   | ca_get_overridecryptedpw;
    59   | ca_set_overridecryptedpw;
    60   | ca_get_overridecryptedpw;
    61   |
    62   | ca_get_whoishelp;
    63   | ca_set_whoishelp;
    64   | ca_get_whoishelp;
    65   |
    66   | ca_get_autodbmhelp;
    67   | ca_set_autodbmhelp;
    68   | ca_get_autodbmhelp;
    69   |
    70   | ca_get_attdesc;
    71   | ca_set_attdesc;
    72   | ca_get_attdesc;
    73   |
    74   | /*
    75   |  * ca_get_deflook;
    76   |  * ca_set_deflook;
    77   |  * ca_get_deflook;
    78   |  */
    79   |
    80   | ca_get_dbfile;
    81   | ca_set_dbfile;
    82   | ca_get_dbfile;
    83   |
    84   | /*
    85   |  * ca_get_canupd;
    86   |  * ca_set_canupd;
    87   |  * ca_get_canupd;
    88   |  *
    89   |  * ca_get_crossnotifysources;
    90   |  * ca_set_crossnotifysources;
    91   |  * ca_get_crossnotifysources;
    92   |  */
    93   |
    94   | ca_get_uid;
    95   | ca_set_uid;
    96   | ca_get_uid;
    97   |
    98   | ca_get_qrylog;
    99   | ca_set_qrylog;
    100  | ca_get_qrylog;
    101  |
    102  | ca_get_qry2log;
    103  | ca_set_qry2log;
    104  | ca_get_qry2log;
    105  |
    106  | ca_get_errlog;
    107  | ca_set_errlog;
    108  | ca_get_errlog;
    109  |
    110  | ca_get_auditlog;
    111  | ca_set_auditlog;
    112  | ca_get_auditlog;
    113  |
    114  | ca_get_updlog;
    115  | ca_set_updlog;
    116  | ca_get_updlog;
    117  |
    118  | ca_get_acklog;
    119  | ca_set_acklog;
    120  | ca_get_acklog;
    121  |
    122  | ca_get_lockdir;
    123  | ca_set_lockdir;
    124  | ca_get_lockdir;
    125  |
    126  | ca_get_pidfile;
    127  | ca_set_pidfile;
    128  | ca_get_pidfile;
    129  |
    130  | ca_get_updatelock;
    131  | ca_set_updatelock;
    132  | ca_get_updatelock;
    133  |
    134  | ca_get_cleanlock;
    135  | ca_set_cleanlock;
    136  | ca_get_cleanlock;
    137  |
    138  | ca_get_serialdir;
    139  | ca_set_serialdir;
    140  | ca_get_serialdir;
    141  |
    142  | ca_get_oldserialdir;
    143  | ca_set_oldserialdir;
    144  | ca_get_oldserialdir;
    145  |
    146  | ca_get_serialincomingdir;
    147  | ca_set_serialincomingdir;
    148  | ca_get_serialincomingdir;
    149  |
    150  | ca_get_keepopen;
    151  | ca_set_keepopen;
    152  | ca_get_keepopen;
    153  |
    154  | ca_get_allocmnt;
    155  | ca_set_allocmnt;
    156  | ca_get_allocmnt;
    157  |
    158  | ca_get_getupdatesfrom;
    159  | ca_set_getupdatesfrom;
    160  | ca_get_getupdatesfrom;
    161  |
    162  | ca_get_whoisupdfrom;
    163  | ca_set_whoisupdfrom;
    164  | ca_get_whoisupdfrom;
    165  |
    166  | ca_get_denywhoisaccess;
    167  | ca_set_denywhoisaccess;
    168  | ca_get_denywhoisaccess;
    169  |
    170  | ca_get_tmpdir;
    171  | ca_set_tmpdir;
    172  | ca_get_tmpdir;
    173  |
    174  | ca_get_pgpv;
    175  | ca_set_pgpv;
    176  | ca_get_pgpv;
    177  |
    178  | ca_get_pgpk;
    179  | ca_set_pgpk;
    180  | ca_get_pgpk;
    181  |
    182  | ca_get_pgppath;
    183  | ca_set_pgppath;
    184  | ca_get_pgppath;
    185  |
    186  | ca_get_mailcmd;
    187  | ca_set_mailcmd;
    188  | ca_get_mailcmd;
    189  |
    190  | ca_get_overflowsize;
    191  | ca_set_overflowsize;
    192  | ca_get_overflowsize;
    193  |
    194  | ca_get_dbcachesize;
    195  | ca_set_dbcachesize;
    196  | ca_get_dbcachesize;
    197  |
    198  | ca_get_nrofnames;
    199  | ca_set_nrofnames;
    200  | ca_get_nrofnames;
    201  |
    202  | ca_get_defmail;
    203  | ca_set_defmail;
    204  | ca_get_defmail;
    205  |
    206  | ca_get_humailbox;
    207  | ca_set_humailbox;
    208  | ca_get_humailbox;
    209  |
    210  | ca_get_autobox;
    211  | ca_set_autobox;
    212  | ca_get_autobox;
    213  |
    214  | ca_get_duplicatepersoncheck;
    215  | ca_set_duplicatepersoncheck;
    216  | ca_get_duplicatepersoncheck;
    217  |
    218  | ca_get_replybanner;
    219  | ca_set_replybanner;
    220  | ca_get_replybanner;
    221  |
    222  | ca_get_nomatch;
    223  | ca_set_nomatch;
    224  | ca_get_nomatch;
    225  |
    226  | ca_get_cn_subject_add;
    227  | ca_set_cn_subject_add;
    228  | ca_get_cn_subject_add;
    229  |
    230  | ca_get_cn_subject_del;
    231  | ca_set_cn_subject_del;
    232  | ca_get_cn_subject_del;
    233  |
    234  | ca_get_cn_explain_add;
    235  | ca_set_cn_explain_add;
    236  | ca_get_cn_explain_add;
    237  |
    238  | ca_get_cn_explain_del;
    239  | ca_set_cn_explain_del;
    240  | ca_get_cn_explain_del;
    241  |
    242  | ca_get_cn_overlap_add;
    243  | ca_set_cn_overlap_add;
    244  | ca_get_cn_overlap_add;
    245  |
    246  | ca_get_cn_overlap_del;
    247  | ca_set_cn_overlap_del;
    248  | ca_get_cn_overlap_del;
    249  |
    250  | ca_get_cno_subject_add;
    251  | ca_set_cno_subject_add;
    252  | ca_get_cno_subject_add;
    253  |
    254  | ca_get_cno_subject_del;
    255  | ca_set_cno_subject_del;
    256  | ca_get_cno_subject_del;
    257  |
    258  | ca_get_cno_explain_add;
    259  | ca_set_cno_explain_add;
    260  | ca_get_cno_explain_add;
    261  |
    262  | ca_get_cno_explain_del;
    263  | ca_set_cno_explain_del;
    264  | ca_get_cno_explain_del;
    265  |
    266  | ca_get_cno_overlap_add;
    267  | ca_set_cno_overlap_add;
    268  | ca_get_cno_overlap_add;
    269  |
    270  | ca_get_cno_overlap_del;
    271  | ca_set_cno_overlap_del;
    272  | ca_get_cno_overlap_del;
    273  |
    274  | ca_get_mailtxt;
    275  | ca_set_mailtxt;
    276  | ca_get_mailtxt;
    277  |
    278  | ca_get_mheader;
    279  | ca_set_mheader;
    280  | ca_get_mheader;
    281  |
    282  | ca_get_failuretxt;
    283  | ca_set_failuretxt;
    284  | ca_get_failuretxt;
    285  |
    286  | ca_get_successtxt;
    287  | ca_set_successtxt;
    288  | ca_get_successtxt;
    289  |
    290  | ca_get_helpheader;
    291  | ca_set_helpheader;
    292  | ca_get_helpheader;
    293  |
    294  | ca_get_ackerr;
    295  | ca_set_ackerr;
    296  | ca_get_ackerr;
    297  |
    298  | ca_get_ackok;
    299  | ca_set_ackok;
    300  | ca_get_ackok;
    301  |
    302  | ca_get_acksig;
    303  | ca_set_acksig;
    304  | ca_get_acksig;
    305  |
    306  | ca_get_notitxt;
    307  | ca_set_notitxt;
    308  | ca_get_notitxt;
    309  |
    310  | ca_get_notimailtxt;
    311  | ca_set_notimailtxt;
    312  | ca_get_notimailtxt;
    313  |
    314  | ca_get_notinetworktxt;
    315  | ca_set_notinetworktxt;
    316  | ca_get_notinetworktxt;
    317  |
    318  | ca_get_nheader;
    319  | ca_set_nheader;
    320  | ca_get_nheader;
    321  |
    322  | ca_get_fwheader;
    323  | ca_set_fwheader;
    324  | ca_get_fwheader;
    325  |
    326  | ca_get_fwtxt;
    327  | ca_set_fwtxt;
    328  | ca_get_fwtxt;
    329  |
    330  | ca_get_fwmailtxt;
    331  | ca_set_fwmailtxt;
    332  | ca_get_fwmailtxt;
    333  |
    334  | ca_get_fwnetworktxt;
    335  | ca_set_fwnetworktxt;
    336  | ca_get_fwnetworktxt;
    337  |
    338  | ca_get_mtfwheader;
    339  | ca_set_mtfwheader;
    340  | ca_get_mtfwheader;
    341  |
    342  | ca_get_mtfwtxt;
    343  | ca_set_mtfwtxt;
    344  | ca_get_mtfwtxt;
    345  |
    346  | ca_get_denyaccesstxt;
    347  | ca_set_denyaccesstxt;
    348  | ca_get_denyaccesstxt;
    349  |
    350  | ca_get_referraltxt;
    351  | ca_set_referraltxt;
    352  | ca_get_referraltxt;
    353  |
    354  | ca_get_referralerrortxt;
    355  | ca_set_referralerrortxt;
    356  | ca_get_referralerrortxt;
    357  |
    358  | ca_get_referrallooperrortxt;
    359  | ca_set_referrallooperrortxt;
    360  | ca_get_referrallooperrortxt;
    361  |
    362  | ca_get_referraltimeouttxt;
    363  | ca_set_referraltimeouttxt;
    364  | ca_get_referraltimeouttxt;
    365  |
    366  | ca_get_referraltrunctxt;
    367  | ca_set_referraltrunctxt;
    368  | ca_get_referraltrunctxt;
    369  |
    370  | ca_get_referralendtxt;
    371  | ca_set_referralendtxt;
    372  | ca_get_referralendtxt;
    373  |
    374  | ca_get_referraltimeout;
    375  | ca_set_referraltimeout;
    376  | ca_get_referraltimeout;
    377  |
    378  | ca_get_referralmaxlines;
    379  | ca_set_referralmaxlines;
    380  | ca_get_referralmaxlines;
    381  |
    382  | ca_get_rights;
    383  | ca_set_rights;
    384  | ca_get_rights;
    385  |
    386  | ca_get_country;
    387  | ca_set_country;
    388  | ca_get_country;
    389  |
    390  |
    391  | return (0);
    392  | }