summaryrefslogtreecommitdiff
path: root/src/serv.gaa
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-03-01 13:10:39 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-03-01 13:10:39 +0000
commitd792019ada0e64d4cb24b2f43c7404c51fed0550 (patch)
tree7c1a62d0fc5370bba58be7f14d9f84c7c51b799d /src/serv.gaa
parent76699d66c0020076ecb62f4b43e59bd538ede730 (diff)
downloadgnutls-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/serv.gaa')
-rw-r--r--src/serv.gaa39
1 files changed, 37 insertions, 2 deletions
diff --git a/src/serv.gaa b/src/serv.gaa
index d6afdb6788..35212faedf 100644
--- a/src/serv.gaa
+++ b/src/serv.gaa
@@ -1,4 +1,4 @@
-helpnode "serv help\nUsage: serv [options]"
+helpnode "gnutls-serv help\nUsage: gnutls-serv [options]"
#int generate;
option (g, generate) { $generate = 1 } "Generate Diffie Hellman Parameters."
@@ -9,6 +9,37 @@ option (p, port) INT "integer" { $port = $1 } "The port to connect to."
#int http;
option (http) { $http = 1 } "Act as an HTTP Server."
+#char *x509_cafile;
+option (cafile) STR "FILE" { $x509_cafile = $1 } "Certificate 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_keyfile;
+option (pgpkeyfile) STR "FILE" { $pgp_keyfile = $1 } "PGP Key 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 *pgp_keyserver;
+option (pgpkeyserver) STR "FILE" { $pgp_keyserver = $1 } "PGP Keyserver to use."
+
+#char *srp_passwd;
+option (srppasswd) STR "FILE" { $srp_passwd = $1 } "SRP password file to use."
+
+#char *srp_passwd_conf;
+option (srppasswdconf) STR "FILE" { $srp_passwd_conf = $1 } "SRP password conf file to use."
+
+
#int nciphers;
#char **ciphers;
option (ciphers) *STR "cipher1 cipher2..." { $ciphers = $1; $nciphers = @1 } "Ciphers to enable."
@@ -39,7 +70,11 @@ option (h, help) { gaa_help(); exit(0); } "prints this help"
init { $generate=0; $port=5556; $http=0; $ciphers=NULL;
$kx=NULL; $comp=NULL; $macs=NULL; $ctype=NULL; $nciphers=0;
- $nkx=0; $ncomp=0; $nmacs=0; $nctype = 0; }
+ $nkx=0; $ncomp=0; $nmacs=0; $nctype = 0;
+ $x509_cafile = NULL; $pgp_keyfile=NULL; $pgp_certfile=NULL;
+ $x509_keyfile=NULL; $x509_certfile=NULL; $pgp_keyserver=NULL;
+ $srp_passwd=NULL; $srp_passwd_conf=NULL;
+ $pgp_trustdb=NULL; $pgp_keyring=NULL; }
##