Fix license.
[gnutls.git] / src / serv.gaa
blobc216e0000e7beaa020187e55d6666789ff0939de
1 #{
3 #include <config.h>
4 #include <common.h>
6 void serv_version(void);
8 #}
10 helpnode "GNU TLS test server\nUsage: gnutls-serv [options]\n\n"
12 #int debug;
13 option (d, debug) INT "integer" { $debug = $1 } "Enable debugging" 
15 #int generate;
16 option (g, generate) { $generate = 1 } "Generate Diffie-Hellman Parameters."
18 #int port;
19 option (p, port) INT "integer" { $port = $1 } "The port to connect to."
21 #int quiet;
22 option (q, quiet) { $quiet = 1 } "Suppress some messages."
24 #int nodb;
25 option (nodb) { $nodb = 1 } "Does not use the resume database."
27 #int noticket;
28 option (noticket) { $noticket = 1 } "Does not issue session tickets."
30 #int http;
31 option (http) { $http = 1 } "Act as an HTTP Server."
32 option (echo) { $http = 0 } "Act as an Echo Server."
34 #char *dh_params_file;
35 option (dhparams) STR "FILE" { $dh_params_file = $1 } "DH params file to use."
37 #int fmtder;
38 option (x509fmtder) { $fmtder = 1 } "Use DER format for certificates"
40 #char *x509_cafile;
41 option (x509cafile) STR "FILE" { $x509_cafile = $1 } "Certificate file to use."
43 #char *x509_crlfile;
44 option (x509crlfile) STR "FILE" { $x509_crlfile = $1 } "CRL file to use."
46 #char *pgp_keyring;
47 option (pgpkeyring) STR "FILE" { $pgp_keyring = $1 } "PGP Key ring file to use."
49 #char *pgp_keyfile;
50 option (pgpkeyfile) STR "FILE" { $pgp_keyfile = $1 } "PGP Key file to use."
52 #char *pgp_certfile;
53 option (pgpcertfile) STR "FILE" { $pgp_certfile = $1 } "PGP Public Key (certificate) file to use."
55 #char *pgp_subkey;
56 option (pgpsubkey) STR "HEX|auto" { $pgp_subkey = $1 } "PGP subkey to use."
58 #char *x509_keyfile;
59 option (x509keyfile) STR "FILE" { $x509_keyfile = $1 } "X.509 key file to use."
61 #char *x509_certfile;
62 option (x509certfile) STR "FILE" { $x509_certfile = $1 } "X.509 Certificate file to use."
64 #char *x509_dsakeyfile;
65 option (x509dsakeyfile) STR "FILE" { $x509_dsakeyfile = $1 } "Alternative X.509 key file to use."
67 #char *x509_dsacertfile;
68 option (x509dsacertfile) STR "FILE" { $x509_dsacertfile = $1 } "Alternative X.509 certificate file to use."
70 #int require_cert;
71 option (r, require-cert) { $require_cert = 1 } "Require a valid certificate."
73 #int disable_client_cert;
74 option (a, disable-client-cert) { $disable_client_cert = 1 } "Disable request for a client certificate."
76 #char *psk_passwd;
77 option (pskpasswd) STR "FILE" { $psk_passwd = $1 } "PSK password file to use."
79 #char *psk_hint;
80 option (pskhint) STR "HINT" { $psk_hint = $1 } "PSK identity hint to use."
82 #char *srp_passwd;
83 option (srppasswd) STR "FILE" { $srp_passwd = $1 } "SRP password file to use."
85 #char *srp_passwd_conf;
86 option (srppasswdconf) STR "FILE" { $srp_passwd_conf = $1 } "SRP password conf file to use."
88 #char *opaque_prf_input;
89 option (opaque-prf-input) STR "DATA" { $opaque_prf_input = $1 } "Use Opaque PRF Input DATA."
91 #int nciphers;
92 #char **ciphers;
93 option (ciphers) *STR "cipher1 cipher2..." { $ciphers = $1; $nciphers = @1 } "Ciphers to enable."
95 #int nproto;
96 #char **proto;
97 option (protocols) *STR "protocol1 protocol2..." { $proto = $1; $nproto = @1 } "Protocols to enable."
99 #int ncomp;
100 #char **comp;
101 option (comp) *STR "comp1 comp2..." { $comp = $1; $ncomp = @1 } "Compression methods to enable."
103 #int nmacs;
104 #char **macs;
105 option (macs) *STR "mac1 mac2..." { $macs = $1; $nmacs = @1 } "MACs to enable."
107 #int nkx;
108 #char **kx;
109 option (kx) *STR "kx1 kx2..." { $kx = $1; $nkx = @1 } "Key exchange methods to enable."
111 #int nctype;
112 #char **ctype;
113 option (ctypes) *STR "certType1 certType2..." { $ctype = $1; $nctype = @1 } "Certificate types to enable."
115 #char *priorities;
116 option (priority) STR "PRIORITY STRING" { $priorities = $1 } "Priorities string."
118 option (l, list) { print_list(0); exit(0); } "Print a list of the supported algorithms  and modes."
119 option (h, help) { gaa_help(); exit(0); } "prints this help"
121 option (v, version) { serv_version(); exit(0); } "prints the program's version number"
123 INCOMP ra
125 init { $generate=0; $port=5556; $http=0; $ciphers=NULL;
126         $kx=NULL; $comp=NULL; $macs=NULL; $ctype=NULL; $nciphers=0;
127         $nkx=0; $ncomp=0; $nmacs=0; $nctype = 0; $nodb = 0; $noticket = 0;
128         $x509_cafile = NULL; $pgp_keyfile=NULL; $pgp_certfile=NULL;
129         $x509_keyfile=NULL; $x509_certfile=NULL; $x509_crlfile = NULL;
130         $x509_dsakeyfile=NULL; $x509_dsacertfile=NULL; 
131         $srp_passwd=NULL; $srp_passwd_conf=NULL; $quiet = 0;
132         $pgp_keyring=NULL; $fmtder = 0;
133         $disable_client_cert = 0; $priorities = NULL;
134         $dh_params_file=NULL; $debug=0; $require_cert = 0; $psk_passwd = 0;
135         $opaque_prf_input=NULL; $pgp_subkey = NULL;}