Add gnutls-serv --pskhint.
[gnutls.git] / src / serv.gaa
blobed0137b6d6839a3cb78cf7a5c630ac2f12b0b530
1 #{
3 #include <common.h>
5 void print_serv_license(void);
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 http;
28 option (http) { $http = 1 } "Act as an HTTP Server."
29 option (echo) { $http = 0 } "Act as an Echo Server."
31 #char *dh_params_file;
32 option (dhparams) STR "FILE" { $dh_params_file = $1 } "DH params file to use."
34 #int fmtder;
35 option (x509fmtder) { $fmtder = 1 } "Use DER format for certificates"
37 #char *x509_cafile;
38 option (x509cafile) STR "FILE" { $x509_cafile = $1 } "Certificate file to use."
40 #char *x509_crlfile;
41 option (x509crlfile) STR "FILE" { $x509_crlfile = $1 } "CRL file to use."
43 #char *pgp_keyring;
44 option (pgpkeyring) STR "FILE" { $pgp_keyring = $1 } "PGP Key ring file to use."
46 #char *pgp_keyfile;
47 option (pgpkeyfile) STR "FILE" { $pgp_keyfile = $1 } "PGP Key file to use."
49 #char *pgp_certfile;
50 option (pgpcertfile) STR "FILE" { $pgp_certfile = $1 } "PGP Public Key (certificate) file to use."
52 #char *pgp_subkey;
53 option (pgpsubkey) STR "HEX|auto" { $pgp_subkey = $1 } "PGP subkey to use."
55 #char *x509_keyfile;
56 option (x509keyfile) STR "FILE" { $x509_keyfile = $1 } "X.509 key file to use."
58 #char *x509_certfile;
59 option (x509certfile) STR "FILE" { $x509_certfile = $1 } "X.509 Certificate file to use."
61 #char *x509_dsakeyfile;
62 option (x509dsakeyfile) STR "FILE" { $x509_dsakeyfile = $1 } "Alternative X.509 key file to use."
64 #char *x509_dsacertfile;
65 option (x509dsacertfile) STR "FILE" { $x509_dsacertfile = $1 } "Alternative X.509 certificate file to use."
67 #int require_cert;
68 option (r, require-cert) { $require_cert = 1 } "Require a valid certificate."
70 #int disable_client_cert;
71 option (a, disable-client-cert) { $disable_client_cert = 1 } "Disable request for a client certificate."
73 #char *psk_passwd;
74 option (pskpasswd) STR "FILE" { $psk_passwd = $1 } "PSK password file to use."
76 #char *psk_hint;
77 option (pskhint) STR "HINT" { $psk_hint = $1 } "PSK identity hint to use."
79 #char *srp_passwd;
80 option (srppasswd) STR "FILE" { $srp_passwd = $1 } "SRP password file to use."
82 #char *srp_passwd_conf;
83 option (srppasswdconf) STR "FILE" { $srp_passwd_conf = $1 } "SRP password conf file to use."
85 #char *opaque_prf_input;
86 option (opaque-prf-input) STR "DATA" { $opaque_prf_input = $1 } "Use Opaque PRF Input DATA."
88 #int nciphers;
89 #char **ciphers;
90 option (ciphers) *STR "cipher1 cipher2..." { $ciphers = $1; $nciphers = @1 } "Ciphers to enable."
92 #int nproto;
93 #char **proto;
94 option (protocols) *STR "protocol1 protocol2..." { $proto = $1; $nproto = @1 } "Protocols to enable."
96 #int ncomp;
97 #char **comp;
98 option (comp) *STR "comp1 comp2..." { $comp = $1; $ncomp = @1 } "Compression methods to enable."
100 #int nmacs;
101 #char **macs;
102 option (macs) *STR "mac1 mac2..." { $macs = $1; $nmacs = @1 } "MACs to enable."
104 #int nkx;
105 #char **kx;
106 option (kx) *STR "kx1 kx2..." { $kx = $1; $nkx = @1 } "Key exchange methods to enable."
108 #int nctype;
109 #char **ctype;
110 option (ctypes) *STR "certType1 certType2..." { $ctype = $1; $nctype = @1 } "Certificate types to enable."
112 #char *priorities;
113 option (priority) STR "PRIORITY STRING" { $priorities = $1 } "Priorities string."
115 option (l, list) { print_list(0); exit(0); } "Print a list of the supported algorithms  and modes."
116 option (h, help) { gaa_help(); exit(0); } "prints this help"
118 option (v, version) { serv_version(); exit(0); } "prints the program's version number"
119 option ( copyright) { print_serv_license(); exit(0); } "prints the program's license"
121 INCOMP ra
123 init { $generate=0; $port=5556; $http=0; $ciphers=NULL;
124         $kx=NULL; $comp=NULL; $macs=NULL; $ctype=NULL; $nciphers=0;
125         $nkx=0; $ncomp=0; $nmacs=0; $nctype = 0; $nodb = 0;
126         $x509_cafile = NULL; $pgp_keyfile=NULL; $pgp_certfile=NULL;
127         $x509_keyfile=NULL; $x509_certfile=NULL; $x509_crlfile = NULL;
128         $x509_dsakeyfile=NULL; $x509_dsacertfile=NULL; 
129         $srp_passwd=NULL; $srp_passwd_conf=NULL; $quiet = 0;
130         $pgp_keyring=NULL; $fmtder = 0;
131         $disable_client_cert = 0; $priorities = NULL;
132         $dh_params_file=NULL; $debug=0; $require_cert = 0; $psk_passwd = 0;
133         $opaque_prf_input=NULL; $pgp_subkey = NULL;}