added openpgp authentication test, and unknown cipher suites test
[gnutls.git] / src / cli.gaa
blob8c16f350028b1e0d2378362725dfd4b816b104a7
1 helpnode "cli help\nUsage: cli [options] hostname"
3 #int resume;
4 option (r, resume) { $resume = 1 } "Connect, establish a session. Connect again and resume this session."
6 #int fingerprint;
7 option (f, fingerprint) { $fingerprint = 1 } "Send the openpgp fingerprint, instead of the key."
9 #int port;
10 option (p, port) INT "integer" { $port = $1 } "The port to connect to."
12 #int record_size;
13 option (recordsize) INT "integer" { $record_size = $1 } "The maximum record size to advertize."
16 #int nciphers;
17 #char **ciphers;
18 option (ciphers) *STR "cipher1 cipher2..." { $ciphers = $1; $nciphers = @1 } "Ciphers to enable."
20 #int nproto;
21 #char **proto;
22 option (protocols) *STR "protocol1 protocol2..." { $proto = $1; $nproto = @1 } "Protocols to enable."
24 #int ncomp;
25 #char **comp;
26 option (comp) *STR "comp1 comp2..." { $comp = $1; $ncomp = @1 } "Compression methods to enable."
28 #int nmacs;
29 #char **macs;
30 option (macs) *STR "mac1 mac2..." { $macs = $1; $nmacs = @1 } "MACs to enable."
32 #int nkx;
33 #char **kx;
34 option (kx) *STR "kx1 kx2..." { $kx = $1; $nkx = @1 } "Key exchange methods to enable."
36 #int nctype;
37 #char **ctype;
38 option (ctypes) *STR "certType1 certType2..." { $ctype = $1; $nctype = @1 } "Certificate types to enable."
41 option (l, list) { print_list(); exit(0); } "Print a list of the supported algorithms  and modes."
42 option (h, help) { gaa_help(); exit(0); } "prints this help"
44 #int nrest_args;
45 #char **rest_args;
46 rest optional *STR "hostname" { $rest_args = $1; $nrest_args = @1 }
48 init { $resume=0; $port=5556; $rest_args=NULL; $nrest_args=0; $ciphers=NULL;
49         $kx=NULL; $comp=NULL; $macs=NULL; $ctype=NULL; $nciphers=0;
50         $nkx=0; $ncomp=0; $nmacs=0; $nctype = 0; $record_size=0; 
51         $fingerprint=0; }
55 /* C declarations */
57 #include <common.h>