diff options
author | David Shaw <[email protected]> | 2003-06-05 02:06:12 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-06-05 02:06:12 +0000 |
commit | 4d3fecee56365d70c6ca99739ee82ea43a08c27c (patch) | |
tree | 2da58d00b4ea9902c3992839da5a2ff739315e44 /g10/parse-packet.c | |
parent | Update error handling to match gpg-error in CVS. (diff) | |
download | gnupg-4d3fecee56365d70c6ca99739ee82ea43a08c27c.tar.gz gnupg-4d3fecee56365d70c6ca99739ee82ea43a08c27c.zip |
* options.skel: Use new hkp://subkeys.pgp.net as sample keyserver since
they at least handle subkeys correctly.
* options.h, g10.c (main), main.h, keylist.c (show_keyserver_url),
mainproc.c (check_sig_and_print), parse-packet.c (dump_sig_subpkt,
parse_one_sig_subpkt, can_handle_critical): Add read-only support for
preferred keyserver subpackets. They're basically policy URLs with a
different name. Add a verify-option "show-preferred-keyserver" to turn
them on and off (on by default, as per stable branch).
* g10.c (main): Add "--set-notation" as alias to "--notation-data" this is
to make things consistent with --set-policy-url meaning both sigs and
certs.
Diffstat (limited to '')
-rw-r--r-- | g10/parse-packet.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index a881840b2..dddff86a2 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -861,7 +861,8 @@ dump_sig_subpkt( int hashed, int type, int critical, printf(" %02X", buffer[i]); break; case SIGSUBPKT_PREF_KS: - p = "preferred key server"; + fputs("preferred key server: ", stdout ); + print_string( stdout, buffer, length, ')' ); break; case SIGSUBPKT_PRIMARY_UID: p = "primary user ID"; @@ -937,6 +938,7 @@ parse_one_sig_subpkt( const byte *buffer, size_t n, int type ) case SIGSUBPKT_PREF_HASH: case SIGSUBPKT_PREF_COMPR: case SIGSUBPKT_POLICY: + case SIGSUBPKT_PREF_KS: case SIGSUBPKT_FEATURES: case SIGSUBPKT_REGEXP: return 0; @@ -993,9 +995,11 @@ can_handle_critical( const byte *buffer, size_t n, int type ) case SIGSUBPKT_KEY_FLAGS: case SIGSUBPKT_PRIMARY_UID: case SIGSUBPKT_FEATURES: - case SIGSUBPKT_POLICY: /* Is it enough to show the policy? */ case SIGSUBPKT_TRUST: case SIGSUBPKT_REGEXP: + /* Is it enough to show the policy or keyserver? */ + case SIGSUBPKT_POLICY: + case SIGSUBPKT_PREF_KS: return 1; default: |