aboutsummaryrefslogtreecommitdiffstats
path: root/g10 (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * options.h, g10.c (main), encode.c (write_pubkey_enc_from_list),David Shaw2002-12-037-35/+63
| | | | | | | | | pkclist.c (algo_available), revoke.c (gen_revoke): Add --pgp8 mode. This is basically identical to --pgp7 in all ways except that signing subkeys, v4 data sigs (including expiration), and SK comments are allowed. * getkey.c (finish_lookup): Comment.
* * main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu): ReorderDavid Shaw2002-12-036-5/+24
| | | | | | | | | | | user ID display in the --edit-key menu to match that of the --list-keys display. * tdbio.c (tdbio_read_record, tdbio_write_record): Comments to reserve a byte for trust model in the devel version. * g10.c (add_notation_data): Fix initialization.
* * keyedit.c (menu_expire): Don't lose key flags when changing theDavid Shaw2002-12-015-20/+71
| | | | | | | | | | | | | | expiration date of a subkey. This is not the most optimal solution, but it is minimal change on the stable branch. * main.h, keygen.c (do_copy_key_flags): New function to copy key flags, if any, from one sig to another. (do_add_key_expire): New function to add key expiration to a sig. (keygen_copy_flags_add_expire): New version of keygen_add_key_expire that also copies key flags. (keygen_add_key_flags_and_expire): Use do_add_key_expire. * import.c (fix_hkp_corruption): Comment.
* * g10.c (add_notation_data): Disallow notation names that do not contain aDavid Shaw2002-11-244-8/+48
| | | | | | | | | | | | | | '@', unless --expert is set. This is to help prevent people from polluting the (as yet unused) IETF namespace. * main.h: Comments about default algorithms. * photoid.c (image_type_to_string): Comments about 3-letter file extensions. * g10.c (main): Add --strict and --no-strict as no-ops to smooth transition when the devel GnuPG becomes the stable one.
* fixed type incompatibilityStefan Bellon2002-11-132-1/+6
|
* * keyedit.c (show_key_with_all_names_colon): Make --with-colons --editDavid Shaw2002-11-134-20/+65
| | | | | | | | | | display match the validity and trust of --with-colons --list-keys. * passphrase.c (agent_send_all_options): Fix compile warning. * keylist.c (list_keyblock_colon): Validity for subkeys should match that of the primary key, and not that of the last user ID.
* * getkey.c (merge_selfsigs): Revoked/expired/invalid primary keys carryDavid Shaw2002-11-132-21/+27
| | | | | | | | these facts onto all their subkeys, but only after the subkey has a chance to be marked valid. This is to fix an incorrect "invalid public key" error verifying a signature made by a revoked signing subkey, with a valid unrevoked primary key.
* * passphrase.c (agent_send_all_options): Use tty_get_ttyname toWerner Koch2002-11-092-2/+27
| | | | | get the default ttyname.
* * keyedit.c (show_key_with_all_names_colon): Don't stick nulls into theDavid Shaw2002-11-052-1/+6
| | | | | --with-colons listing.
* * g10.c (main): Add a mostly noop --trust-model option to smoothDavid Shaw2002-11-052-0/+15
| | | | | transition to 1.4.
* * build-packet.c (do_plaintext), encode.c (encode_sesskey, encode_simple,David Shaw2002-10-314-5/+12
| | | | | | | encode_crypt), sign.c (write_plaintext_packet): Use wipememory() instead of memset() to wipe sensitive memory as the memset() might be optimized away.
* * getkey.c (get_pubkey_direct): Renamed to...Werner Koch2002-10-305-28/+86
| | | | | | | | | | | | | | (get_pubkey_fast): this and made extern. (get_pubkey_byfprint_fast): New. * import.c (import_one): Use get_pubkey_fast instead of get_pubkey. We don't need a merged key and actually this might lead to recursions. --> There is still a problem, though. (revocation_present): Likewise for search by fingerprint. * g10.c (main): Try to create the trustdb even for non-colon-mode list-key operations. This is required because getkey needs to know whether a a key is ultimately trusted.
* reverted filetype patchStefan Bellon2002-10-283-65/+7
|
* filetype support for RISC OSStefan Bellon2002-10-284-8/+66
|
* * pubkey-enc.c (get_it): Fix segv, test for revoked only when PKWerner Koch2002-10-232-1/+6
| | | | | has been assigned.
* * exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;Werner Koch2002-10-216-17/+27
| | | | | | | | | | we don't need it here as it behaves more like a Posix system. * passphrase.c (agent_get_passphrase): Ditto. * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin. * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from the registry.
* * pkclist.c (do_edit_ownertrust): Show all user IDs. This shouldWerner Koch2002-10-172-0/+36
| | | | | | be enhanced to also show the current trust level. Suggested by Florian Weimer.
* * keygen.c (print_status_key_created): New.Werner Koch2002-10-122-2/+36
| | | | | | (do_generate_keypair): Use it to print the fingerprint. (generate_subkeypair): Likewise.
* * keyedit.c (menu_addrevoker): Properly back out if the signature fails.David Shaw2002-10-112-0/+6
|
* * mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.David Shaw2002-10-072-1/+4
|
* * keylist.c (print_capabilities): Properly indicate per-key capabilitiesDavid Shaw2002-10-072-7/+18
| | | | | | of sign&encrypt primary keys that have secret-parts-missing (i.e. no capabilities at all).
* * getkey.c (get_pubkey_direct): Don't cache keys retrieved via thisDavid Shaw2002-10-043-5/+15
| | | | | | | | | function as they may not have all their fields filled in. * sig-check.c (signature_check2): Use new is_primary flag to check rather than comparing main_keyid with keyid as this still works in the case of a not fully filled in pk.
* * passphrase.c (agent_get_passphrase): Fixed signed/unsigned charWerner Koch2002-10-042-10/+16
| | | | | problem in %-escaping. Noted by Ingo Kl�cker.
* * keylist.c (print_capabilities): Secret-parts-missing keys should showDavid Shaw2002-10-032-6/+9
| | | | | that fact in the capabilities.
* * packet.h, parse_packet (parse_key): Add is_primary flag for public keysDavid Shaw2002-10-034-3/+23
| | | | | | | | (it already exists for secret keys). * keylist.c (print_capabilities): Only primary signing keys can certify other keys.
* * import.c (import_secret_one): Check for an illegal (>110) protectionDavid Shaw2002-10-026-14/+37
| | | | | | | | | | | | | | | cipher when importing a secret key. * keylist.c (list_keyblock_print): Show a '#' for a secret-parts-missing key. * parse_packet.c (parse_key): Some comments. * revoke.c (gen_revoke): Remove some debugging code. * trustdb.c (verify_own_keys): Make trusted-key a non-deprecated option again.
* * seckey-cert.c (do_check): Don't give the IDEA warning unless the cipherDavid Shaw2002-10-012-1/+5
| | | | | in question is in fact IDEA.
* * import.c (import_one): Make sure that a newly imported key starts with aDavid Shaw2002-10-012-1/+24
| | | | | | clean ownertrust. (import_revoke_cert): Remove ultimate trust when revoking an ultimately trusted key.
* * getkey.c (get_pubkey_direct): New.Werner Koch2002-10-012-1/+62
| | | | | | | (merge_selfsigs_main): Use it here to look for an ultimately trusted key. Using the full get_pubkey might lead to a infinitive recursion.
* * g10.c (main): Disable --textmode when encrypting (symmetric or pk) inDavid Shaw2002-09-302-0/+17
| | | | | | --pgp2 mode as PGP 2 can't handle the unknown length literal packet. Reported by Michael Richardson.
* * keyserver.c (parse_keyserver_uri): Force the keyserver URI scheme toDavid Shaw2002-09-302-0/+13
| | | | | lowercase to be case-insensitive.
* * sig-check.c (check_key_signature2): Properly handle a non-designatedDavid Shaw2002-09-282-2/+10
| | | | | revocation import.
* * g10.c (set_homedir): New. Changed all direct assignments to useWerner Koch2002-09-263-15/+40
| | | | | | this. * gpgv.c (set_homedir): Ditto.
* * keylist.c (list_keyblock_colon): Show 1F direct key signatures inDavid Shaw2002-09-194-16/+30
| | | | | | | | | | | --with-colons listing. * keyserver.c (keyserver_spawn): Properly handle line truncation. Don't leak memory (~10-20 bytes) on searches. (keyserver_search_prompt): Cleanup. * hkp.c (hkp_search): Properly handle line truncation.
* * keyedit.c (menu_addrevoker): The direct key signature for revocationDavid Shaw2002-09-172-3/+39
| | | | | | keys must be at least v4 to carry the revocation key subpacket. Add a PGP 2.x warning for revocation keys.
* * g10.c (check permissions): Back out previous change - some translationsDavid Shaw2002-09-152-48/+23
| | | | | already done for 1.2.
* * g10.c (check_permissions): Rearrange strings to make translating easierDavid Shaw2002-09-154-23/+63
| | | | | | | | | (don't incorporate string parts). * keyedit.c (sign_uids): Make strings translatable. * sig-check.c (check_key_signature2): Make string translatable.
* * getkey.c (check_revocation_keys): Move....David Shaw2002-09-134-70/+95
| | | | | | | | | | | * main.h, sig-check.c (check_revocation_keys): to here. Also return the signature_check error code rather than 0/1 and cache the sig result. * sig-check.c (check_key_signature2): Divert to check_revocation_keys if a revocation sig is made by someone other than the pk owner. * getkey.c (merge_selfsigs_main): Tidy.
* * g10.c (main) [__MINGW32__]: Activate oLoadExtension.Werner Koch2002-09-132-1/+5
|
* * keyserver.c (keyserver_spawn): Remove whitespace after keyserverDavid Shaw2002-09-122-5/+11
| | | | | commands.
* * g10.c, options.h: Removed option --emulate-checksum-bug.Werner Koch2002-09-1110-126/+152
| | | | | | | | | | | | | | | * misc.c (checksum_u16_nobug): Removed. (checksum_u16): Removed the bug emulation. (checksum_mpi): Ditto. (checksum_mpi_counted_nbits): Removed and replaced all calls with checksum_mpi. * parse-packet.c (read_protected_v3_mpi): New. (parse_key): Use it here to store it as an opaque MPI. * seckey-cert.c (do_check): Changed the v3 unprotection to the new why to store these keys. (protect_secret_key): Likewise. * build-packet.c (do_secret_key): And changed the writing.
* * exec.c (expand_args): Remove loop left over from earlier implementation.David Shaw2002-09-102-4/+13
| | | | | (exec_write): Missed one tick.
* Cleanups and minor fixes.Werner Koch2002-09-1017-64/+121
|
* * g10.c (add_group): Use '=' to separate group name from group members.David Shaw2002-09-093-3/+10
| | | | | | | Use a better error message for when no = is found. * hkp.c (hkp_export): Use CRLF in headers.
* * mainproc.c (print_pkenc_list): Don't increment the error counter whenDavid Shaw2002-09-042-1/+9
| | | | | | | printing the list of keys a message was encrypted to. This would make gpg give a non-zero exit code even for completely valid messages if the message was encrypted to more than one key that the user owned.
* * g10.c (main): Try to set a default character set. Print theWerner Koch2002-09-026-2/+55
| | | | | | | | | used one in verbosity level 3. * gpgv.c (main): Try to set a default character set. * status.c, status.h (STATUS_IMPORT_OK): New. * import.c (import_one,import_secret_one): Print new status.
* * pkclist.c (build_pk_list): Add new status code to indicate an untrustedDavid Shaw2002-08-302-1/+7
| | | | | | user. This (or a disabled key) fail with "unavailable pubkey" (G10ERR_UNU_PUBKEY).
* * pkclist.c (build_pk_list): Fail if any recipient keys are unusable.David Shaw2002-08-304-3/+26
| | | | | | | | | * options.skel: The PGP LDAP keyserver is back. Use MIT keyserver as a sample rather than cryptnet as cryptnet does not support searching yet. * keyedit.c (show_key_with_all_names): Fix error message (preferences are userid/selfsig and not key specific).
* * pkclist.c (do_we_trust_pre): Changed the wording of a warning.Werner Koch2002-08-307-59/+82
| | | | | | | | | | | | | | | | * encode.c (encode_simple,encode_crypt): Use new style CTB for compressssed packets when using MDC. We need to do this so that concatenated messages are properly decrypted. Old style compression assumes that it is the last packet; given that we can't determine the length in advance, the uncompressor does not know where to start. Actually we should use the new CTB always but this would break PGP 2 compatibility. * parse-packet.c (parse): Special treatment for new style CTB compressed packets. * build-packet.c (do_mdc): Removed. Was not used. (do_encrypted_mdc): Count the version number and the MDC packet.
* * sig-check.c (do_check_messages, do_check): Show keyid in error messages.David Shaw2002-08-283-16/+27
| | | | | | * keyserver.c (print_keyinfo): More readable key listings for --search-keys responses.