mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-21 19:48:05 +01:00
* gpgkeys_hkp.c (main), gpgkeys_ldap.c (main): Add -V flag to output
protocol and program version.
This commit is contained in:
parent
26c1f2620b
commit
31f28dabba
@ -1,3 +1,8 @@
|
|||||||
|
2002-10-24 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* gpgkeys_hkp.c (main), gpgkeys_ldap.c (main): Add -V flag to
|
||||||
|
output protocol and program version.
|
||||||
|
|
||||||
2002-10-08 David Shaw <dshaw@jabberwocky.com>
|
2002-10-08 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* gpgkeys_ldap.c (search_key, main): Make sure LDAP values are
|
* gpgkeys_ldap.c (search_key, main): Make sure LDAP values are
|
||||||
|
@ -654,15 +654,20 @@ int main(int argc,char *argv[])
|
|||||||
fprintf(console,
|
fprintf(console,
|
||||||
"gpgkeys: WARNING: this is an *experimental* HKP interface!\n");
|
"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)
|
switch(arg)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case 'h':
|
case 'h':
|
||||||
fprintf(console,"-h\thelp\n");
|
fprintf(console,"-h\thelp\n");
|
||||||
|
fprintf(console,"-V\tversion\n");
|
||||||
fprintf(console,"-o\toutput to this file\n");
|
fprintf(console,"-o\toutput to this file\n");
|
||||||
return KEYSERVER_OK;
|
return KEYSERVER_OK;
|
||||||
|
|
||||||
|
case 'V':
|
||||||
|
fprintf(stdout,"0\n%s\n",VERSION);
|
||||||
|
return KEYSERVER_OK;
|
||||||
|
|
||||||
case 'o':
|
case 'o':
|
||||||
output=fopen(optarg,"w");
|
output=fopen(optarg,"w");
|
||||||
if(output==NULL)
|
if(output==NULL)
|
||||||
|
@ -622,15 +622,20 @@ int main(int argc,char *argv[])
|
|||||||
|
|
||||||
console=stderr;
|
console=stderr;
|
||||||
|
|
||||||
while((arg=getopt(argc,argv,"ho:"))!=-1)
|
while((arg=getopt(argc,argv,"hVo:"))!=-1)
|
||||||
switch(arg)
|
switch(arg)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case 'h':
|
case 'h':
|
||||||
fprintf(console,"-h\thelp\n");
|
fprintf(console,"-h\thelp\n");
|
||||||
|
fprintf(console,"-V\tversion\n");
|
||||||
fprintf(console,"-o\toutput to this file\n");
|
fprintf(console,"-o\toutput to this file\n");
|
||||||
return KEYSERVER_OK;
|
return KEYSERVER_OK;
|
||||||
|
|
||||||
|
case 'V':
|
||||||
|
fprintf(stdout,"0\n%s\n",VERSION);
|
||||||
|
return KEYSERVER_OK;
|
||||||
|
|
||||||
case 'o':
|
case 'o':
|
||||||
output=fopen(optarg,"w");
|
output=fopen(optarg,"w");
|
||||||
if(output==NULL)
|
if(output==NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user