aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-10-24 18:29:11 +0000
committerDavid Shaw <[email protected]>2002-10-24 18:29:11 +0000
commit31f28dabbaad9da3e4f8ac3e5eed062909811287 (patch)
tree08047a974711ea1a3484cbb099b8a65c80df131c
parent* mk-w32-dist: Include gpgkeys_ldap. (diff)
downloadgnupg-31f28dabbaad9da3e4f8ac3e5eed062909811287.tar.gz
gnupg-31f28dabbaad9da3e4f8ac3e5eed062909811287.zip
* gpgkeys_hkp.c (main), gpgkeys_ldap.c (main): Add -V flag to output
protocol and program version.
-rw-r--r--keyserver/ChangeLog5
-rw-r--r--keyserver/gpgkeys_hkp.c7
-rw-r--r--keyserver/gpgkeys_ldap.c7
3 files changed, 17 insertions, 2 deletions
diff --git a/keyserver/ChangeLog b/keyserver/ChangeLog
index 6cf84e78d..50166ea4b 100644
--- a/keyserver/ChangeLog
+++ b/keyserver/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-24 David Shaw <[email protected]>
+
+ * gpgkeys_hkp.c (main), gpgkeys_ldap.c (main): Add -V flag to
+ output protocol and program version.
+
2002-10-08 David Shaw <[email protected]>
* gpgkeys_ldap.c (search_key, main): Make sure LDAP values are
diff --git a/keyserver/gpgkeys_hkp.c b/keyserver/gpgkeys_hkp.c
index 3194d1cc8..8dee66ff4 100644
--- a/keyserver/gpgkeys_hkp.c
+++ b/keyserver/gpgkeys_hkp.c
@@ -654,15 +654,20 @@ int main(int argc,char *argv[])
fprintf(console,
"gpgkeys: WARNING: this is an *experimental* HKP interface!\n");
- while((arg=getopt(argc,argv,"ho:"))!=-1)
+ while((arg=getopt(argc,argv,"hVo:"))!=-1)
switch(arg)
{
default:
case 'h':
fprintf(console,"-h\thelp\n");
+ fprintf(console,"-V\tversion\n");
fprintf(console,"-o\toutput to this file\n");
return KEYSERVER_OK;
+ case 'V':
+ fprintf(stdout,"0\n%s\n",VERSION);
+ return KEYSERVER_OK;
+
case 'o':
output=fopen(optarg,"w");
if(output==NULL)
diff --git a/keyserver/gpgkeys_ldap.c b/keyserver/gpgkeys_ldap.c
index 654c7a2c3..1920da7b5 100644
--- a/keyserver/gpgkeys_ldap.c
+++ b/keyserver/gpgkeys_ldap.c
@@ -622,15 +622,20 @@ int main(int argc,char *argv[])
console=stderr;
- while((arg=getopt(argc,argv,"ho:"))!=-1)
+ while((arg=getopt(argc,argv,"hVo:"))!=-1)
switch(arg)
{
default:
case 'h':
fprintf(console,"-h\thelp\n");
+ fprintf(console,"-V\tversion\n");
fprintf(console,"-o\toutput to this file\n");
return KEYSERVER_OK;
+ case 'V':
+ fprintf(stdout,"0\n%s\n",VERSION);
+ return KEYSERVER_OK;
+
case 'o':
output=fopen(optarg,"w");
if(output==NULL)