mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
* mainproc.c (check_sig_and_print): Use two different preferred keyserver
displays - one if the key is not present (to tell the user where to get the key), the other if it is present (to tell the user where the key can be refreshed). * packet.h, parse-packet.c (parse_signature): Set flag if a preferred keyserver is present. * keylist.c (list_keyblock_print): Show keyserver url in listings with list-option show-keyserver-url.
This commit is contained in:
parent
002972f63d
commit
68aa60e79c
@ -1,3 +1,16 @@
|
|||||||
|
2003-08-25 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* mainproc.c (check_sig_and_print): Use two different preferred
|
||||||
|
keyserver displays - one if the key is not present (to tell the
|
||||||
|
user where to get the key), the other if it is present (to tell
|
||||||
|
the user where the key can be refreshed).
|
||||||
|
|
||||||
|
* packet.h, parse-packet.c (parse_signature): Set flag if a
|
||||||
|
preferred keyserver is present.
|
||||||
|
|
||||||
|
* keylist.c (list_keyblock_print): Show keyserver url in listings
|
||||||
|
with list-option show-keyserver-url.
|
||||||
|
|
||||||
2003-08-24 David Shaw <dshaw@jabberwocky.com>
|
2003-08-24 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* Makefile.am: Use NETLIBS instead of EGDLIBS.
|
* Makefile.am: Use NETLIBS instead of EGDLIBS.
|
||||||
|
@ -845,6 +845,9 @@ list_keyblock_print ( KBNODE keyblock, int secret, int fpr, void *opaque )
|
|||||||
if(sig->flags.notation && (opt.list_options&LIST_SHOW_NOTATION))
|
if(sig->flags.notation && (opt.list_options&LIST_SHOW_NOTATION))
|
||||||
show_notation(sig,3,0);
|
show_notation(sig,3,0);
|
||||||
|
|
||||||
|
if(sig->flags.pref_ks && (opt.list_options&LIST_SHOW_KEYSERVER))
|
||||||
|
show_keyserver_url(sig,3,0);
|
||||||
|
|
||||||
/* fixme: check or list other sigs here */
|
/* fixme: check or list other sigs here */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1287,7 +1287,7 @@ check_sig_and_print( CTX c, KBNODE node )
|
|||||||
/* If the key still isn't found, try to inform the user where it
|
/* If the key still isn't found, try to inform the user where it
|
||||||
can be found. */
|
can be found. */
|
||||||
|
|
||||||
if(rc==G10ERR_NO_PUBKEY && opt.verify_options&VERIFY_SHOW_KEYSERVER)
|
if(rc==G10ERR_NO_PUBKEY && sig->flags.pref_ks)
|
||||||
{
|
{
|
||||||
const byte *p;
|
const byte *p;
|
||||||
int seq=0;
|
int seq=0;
|
||||||
@ -1457,6 +1457,11 @@ check_sig_and_print( CTX c, KBNODE node )
|
|||||||
else
|
else
|
||||||
show_policy_url(sig,0,2);
|
show_policy_url(sig,0,2);
|
||||||
|
|
||||||
|
if(opt.verify_options&VERIFY_SHOW_KEYSERVER)
|
||||||
|
show_keyserver_url(sig,0,1);
|
||||||
|
else
|
||||||
|
show_keyserver_url(sig,0,2);
|
||||||
|
|
||||||
if(opt.verify_options&VERIFY_SHOW_NOTATION)
|
if(opt.verify_options&VERIFY_SHOW_NOTATION)
|
||||||
show_notation(sig,0,1);
|
show_notation(sig,0,1);
|
||||||
else
|
else
|
||||||
|
@ -129,8 +129,9 @@ typedef struct {
|
|||||||
unsigned unknown_critical:1;
|
unsigned unknown_critical:1;
|
||||||
unsigned exportable:1;
|
unsigned exportable:1;
|
||||||
unsigned revocable:1;
|
unsigned revocable:1;
|
||||||
unsigned policy_url:1; /* Policy URL is present */
|
unsigned policy_url:1; /* At least one policy URL is present */
|
||||||
unsigned notation:1; /* At least one notation is present */
|
unsigned notation:1; /* At least one notation is present */
|
||||||
|
unsigned pref_ks:1; /* At least one preferred keyserver is present */
|
||||||
unsigned expired:1;
|
unsigned expired:1;
|
||||||
} flags;
|
} flags;
|
||||||
u32 keyid[2]; /* 64 bit keyid */
|
u32 keyid[2]; /* 64 bit keyid */
|
||||||
|
@ -1305,6 +1305,10 @@ parse_signature( IOBUF inp, int pkttype, unsigned long pktlen,
|
|||||||
if(p)
|
if(p)
|
||||||
sig->flags.policy_url=1;
|
sig->flags.policy_url=1;
|
||||||
|
|
||||||
|
p=parse_sig_subpkt(sig->hashed,SIGSUBPKT_PREF_KS,NULL);
|
||||||
|
if(p)
|
||||||
|
sig->flags.pref_ks=1;
|
||||||
|
|
||||||
p=parse_sig_subpkt(sig->hashed,SIGSUBPKT_NOTATION,NULL);
|
p=parse_sig_subpkt(sig->hashed,SIGSUBPKT_NOTATION,NULL);
|
||||||
if(p)
|
if(p)
|
||||||
sig->flags.notation=1;
|
sig->flags.notation=1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user