*** empty log message ***
[gnutls.git] / src / cli.gaa
blob7a291579dcf55d7cdcad581e178a9f0e1ceb9fcf
1 helpnode "gnutls-cli help\nUsage: gnutls-cli [options] hostname"
3 #int resume;
4 option (r, resume) { $resume = 1 } "Connect, establish a session. Connect again and resume this session."
6 #int crlf;
7 option (crlf) { $crlf = 1 } "Send CR LF instead of LF."
9 #int fmtder;
10 option (x509fmtder) { $fmtder = 1 } "Use DER format for certificates"
12 #int fingerprint;
13 option (f, fingerprint) { $fingerprint = 1 } "Send the openpgp fingerprint, instead of the key."
15 #int port;
16 option (p, port) INT "integer" { $port = $1 } "The port to connect to."
18 #int record_size;
19 option (recordsize) INT "integer" { $record_size = $1 } "The maximum record size to advertize."
22 #int nciphers;
23 #char **ciphers;
24 option (ciphers) *STR "cipher1 cipher2..." { $ciphers = $1; $nciphers = @1 } "Ciphers to enable."
26 #int nproto;
27 #char **proto;
28 option (protocols) *STR "protocol1 protocol2..." { $proto = $1; $nproto = @1 } "Protocols to enable."
30 #int ncomp;
31 #char **comp;
32 option (comp) *STR "comp1 comp2..." { $comp = $1; $ncomp = @1 } "Compression methods to enable."
34 #int nmacs;
35 #char **macs;
36 option (macs) *STR "mac1 mac2..." { $macs = $1; $nmacs = @1 } "MACs to enable."
38 #int nkx;
39 #char **kx;
40 option (kx) *STR "kx1 kx2..." { $kx = $1; $nkx = @1 } "Key exchange methods to enable."
42 #int nctype;
43 #char **ctype;
44 option (ctypes) *STR "certType1 certType2..." { $ctype = $1; $nctype = @1 } "Certificate types to enable."
46 #char *x509_cafile;
47 option (x509cafile) STR "FILE" { $x509_cafile = $1 } "Certificate file to use."
49 #char *pgp_keyfile;
50 option (pgpkeyfile) STR "FILE" { $pgp_keyfile = $1 } "PGP Key file to use."
52 #char *pgp_keyring;
53 option (pgpkeyring) STR "FILE" { $pgp_keyring = $1 } "PGP Key ring file to use."
55 #char *pgp_trustdb;
56 option (pgptrustdb) STR "FILE" { $pgp_keyring = $1 } "PGP trustdb file to use."
58 #char *pgp_certfile;
59 option (pgpcertfile) STR "FILE" { $pgp_certfile = $1 } "PGP Public Key (certificate) file to use."
61 #char *x509_keyfile;
62 option (x509keyfile) STR "FILE" { $x509_keyfile = $1 } "X.509 key file to use."
64 #char *x509_certfile;
65 option (x509certfile) STR "FILE" { $x509_certfile = $1 } "X.509 Certificate file to use."
67 #char *srp_username;
68 option (srpusername) STR "NAME" { $srp_username = $1 } "SRP username to use."
70 #char *srp_passwd;
71 option (srppasswd) STR "PASSWD" { $srp_passwd = $1 } "SRP password to use."
74 option (l, list) { print_list(); exit(0); } "Print a list of the supported algorithms  and modes."
75 option (h, help) { gaa_help(); exit(0); } "prints this help"
77 #int nrest_args;
78 #char **rest_args;
79 rest *STR "hostname" { $rest_args = $1; $nrest_args = @1 }
81 init { $resume=0; $port=443; $rest_args=NULL; $nrest_args=0; $ciphers=NULL;
82         $kx=NULL; $comp=NULL; $macs=NULL; $ctype=NULL; $nciphers=0;
83         $nkx=0; $ncomp=0; $nmacs=0; $nctype = 0; $record_size=0; 
84         $fingerprint=0; $pgp_trustdb=NULL; $pgp_keyring=NULL;
85         $x509_cafile = NULL; $pgp_keyfile=NULL; $pgp_certfile=NULL;
86         $x509_keyfile=NULL; $x509_certfile=NULL; $crlf = 0;
87         $srp_username=NULL; $srp_passwd=NULL; $fmtder = 0; }
92 /* C declarations */
94 #include <common.h>