diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-03-01 13:10:39 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-03-01 13:10:39 +0000 |
commit | d792019ada0e64d4cb24b2f43c7404c51fed0550 (patch) | |
tree | 7c1a62d0fc5370bba58be7f14d9f84c7c51b799d /src/cli.gaa | |
parent | 76699d66c0020076ecb62f4b43e59bd538ede730 (diff) | |
download | gnutls-d792019ada0e64d4cb24b2f43c7404c51fed0550.tar.gz |
Updated cli and server to read certificate and keys from command line
parameters. client, client-debug and server are now being installed.
Diffstat (limited to 'src/cli.gaa')
-rw-r--r-- | src/cli.gaa | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/src/cli.gaa b/src/cli.gaa index f27ab67914..8718f61d71 100644 --- a/src/cli.gaa +++ b/src/cli.gaa @@ -1,4 +1,4 @@ -helpnode "cli help\nUsage: cli [options] hostname" +helpnode "gnutls-cli help\nUsage: gnutls-cli [options] hostname" #int resume; option (r, resume) { $resume = 1 } "Connect, establish a session. Connect again and resume this session." @@ -37,6 +37,33 @@ option (kx) *STR "kx1 kx2..." { $kx = $1; $nkx = @1 } "Key exchange methods to e #char **ctype; option (ctypes) *STR "certType1 certType2..." { $ctype = $1; $nctype = @1 } "Certificate types to enable." +#char *x509_cafile; +option (cafile) STR "FILE" { $x509_cafile = $1 } "Certificate file to use." + +#char *pgp_keyfile; +option (pgpkeyfile) STR "FILE" { $pgp_keyfile = $1 } "PGP Key file to use." + +#char *pgp_keyring; +option (pgpkeyring) STR "FILE" { $pgp_keyring = $1 } "PGP Key ring file to use." + +#char *pgp_trustdb; +option (pgptrustdb) STR "FILE" { $pgp_keyring = $1 } "PGP trustdb file to use." + +#char *pgp_certfile; +option (pgpcertfile) STR "FILE" { $pgp_certfile = $1 } "PGP Public Key (certificate) file to use." + +#char *x509_keyfile; +option (x509keyfile) STR "FILE" { $x509_keyfile = $1 } "X.509 key file to use." + +#char *x509_certfile; +option (x509certfile) STR "FILE" { $x509_certfile = $1 } "X.509 Certificate file to use." + +#char *srp_username; +option (srpusername) STR "NAME" { $srp_username = $1 } "SRP username to use." + +#char *srp_passwd; +option (srppasswd) STR "PASSWD" { $srp_passwd = $1 } "SRP password to use." + option (l, list) { print_list(); exit(0); } "Print a list of the supported algorithms and modes." option (h, help) { gaa_help(); exit(0); } "prints this help" @@ -48,7 +75,11 @@ rest *STR "hostname" { $rest_args = $1; $nrest_args = @1 } init { $resume=0; $port=443; $rest_args=NULL; $nrest_args=0; $ciphers=NULL; $kx=NULL; $comp=NULL; $macs=NULL; $ctype=NULL; $nciphers=0; $nkx=0; $ncomp=0; $nmacs=0; $nctype = 0; $record_size=0; - $fingerprint=0; } + $fingerprint=0; $pgp_trustdb=NULL; $pgp_keyring=NULL; + $x509_cafile = NULL; $pgp_keyfile=NULL; $pgp_certfile=NULL; + $x509_keyfile=NULL; $x509_certfile=NULL; + $srp_username=NULL; $srp_passwd=NULL; } + ## |