diff options
author | David Shaw <[email protected]> | 2003-05-03 04:07:45 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-05-03 04:07:45 +0000 |
commit | 3afe991bb88fe31c8f24d5c5ddd7621a6bbe258e (patch) | |
tree | 149bbd7006bf90c57de089f6aea8b200f9bcd866 /g10/parse-packet.c | |
parent | * cipher.h: Add constants for compression algorithms. (diff) | |
download | gnupg-3afe991bb88fe31c8f24d5c5ddd7621a6bbe258e.tar.gz gnupg-3afe991bb88fe31c8f24d5c5ddd7621a6bbe258e.zip |
* packet.h, build-packet.c (build_sig_subpkt), export.c
(do_export_stream), import.c (remove_bad_stuff, import), parse-packet.c
(dump_sig_subpkt, parse_one_sig_subpkt): Remove vestigal code for the old
sig cache subpacket. This wasn't completely harmless as it caused
subpacket 101 to disappear on import and export.
* options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c, sign.c,
encode.c, getkey.c, revoke.c: The current flags for different levels of
PGP-ness are massively complex. This is step one in simplifying them. No
functional change yet, just use a macro to check for compliance level.
* sign.c (sign_file): Fix bug that causes spurious compression preference
warning.
* sign.c (clearsign_file): Fix bug that prevents proper warning message
from appearing when clearsigning in --pgp2 mode with a non-v3 RSA key.
* main.h, misc.c (compliance_option_string, compliance_string,
compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
clearsign_file), encode.c (encode_crypt, write_pubkey_enc_from_list): New
functions to put the "this message may not be usable...." warning in one
place.
* options.h, g10.c (main): Part two of the simplification. Use a single
enum to indicate what we are compliant to (1991, 2440, PGPx, etc.)
* g10.c (main): Show errors for failure in export, send-keys, recv-keys,
and refresh-keys.
* options.h, g10.c (main): Give algorithm warnings for algorithms chosen
against the --pgpX and --openpgp rules.
* keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in --openpgp
mode.
* sign.c (sign_file), pkclist.c (algo_available): Allow passing a hint of
0.
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 7b502067a..b9afb75ff 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -899,10 +899,12 @@ dump_sig_subpkt( int hashed, int type, int critical, for( i=0; i < length; i++ ) printf(" %02x", buffer[i] ); break; - case SIGSUBPKT_PRIV_VERIFY_CACHE: - p = "obsolete verification cache"; + default: + if(type>=100 && type<=110) + p="experimental / private subpacket"; + else + p = "?"; break; - default: p = "?"; break; } printf("%s)\n", p? p: ""); @@ -962,19 +964,6 @@ parse_one_sig_subpkt( const byte *buffer, size_t n, int type ) if ( n != 2 ) break; return 0; - case SIGSUBPKT_PRIV_VERIFY_CACHE: - /* We used this in gpg 1.0.5 and 1.0.6 to cache signature - * verification results - it is no longer used. - * "GPG" 0x00 <mode> <stat> - * where mode == 1: valid data, stat == 0: invalid signature - * stat == 1: valid signature - * (because we use private data, we check our marker) */ - if( n < 6 ) - break; - if( buffer[0] != 'G' || buffer[1] != 'P' - || buffer[2] != 'G' || buffer[3] ) - return -2; - return 4; default: return -1; } return -3; |