aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2006-07-27Preparing a new releasegnupg-1.9.22Werner Koch1-7/+1
2006-06-27Ported patches from 1.4.x Werner Koch1-1/+88
2006-06-20Updated FSF's address.Werner Koch1-0/+9
2006-05-24Still making gpg2 work.Werner Koch1-6/+6
At least the keyids are now correctly computed again.
2006-05-23g10/ does build again.Werner Koch1-10/+17
2006-04-28Merged recent changes from 1.4Werner Koch1-6/+35
2006-04-19Merged with gpg 1.4.3 code. Werner Koch1-750/+1446
The gpg part does not yet build.
2006-04-05RenamedWerner Koch1-0/+0
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-2/+2
char * vs. unsigned char * warnings. The GNU coding standards used to say that these mismatches are okay and better than a bunch of casts. Obviously this has changed now.
2004-12-22Minor tweaksV1-9-14Werner Koch1-7/+7
2004-12-21* gpg-agent.c (main): Use default_homedir().Werner Koch1-9/+2
* protect-tool.c (main): Ditto. * signal.c (got_fatal_signal, got_usr_signal) (got_fatal_signal) [DOSISH]: Don't build. * simple-gettext.c: Include sysutils.h * homedir.c: New. * Makefile.am (libcommon_a_SOURCES): Add it. (EXTRA_DIST): Removed mkerror and mkerrtok. * gpgv.c, g10.c (main): Use default_hoemdir (). * scdaemon.c (main): Use default_homedir(). * gpgsm.c (main): Use default_homedir().
2004-10-22Compile fixes.Werner Koch1-2/+6
2004-04-30(main) <gpgconf>: Use gpg.conf and not /dev/null asWerner Koch1-2/+4
default filename.
2004-04-06* configure.ac: Require libgcrypt 1.1.94.Werner Koch1-3/+3
Introduce PACKAGE_GT and set it to gnupg2. * gpg-agent.c (main): Use new libgcrypt thread library register scheme. * Makevars (DOMAIN): Init from PACKAGE_GT
2004-03-23Make it workWerner Koch1-0/+1
2004-03-23* configure.ac: Define SAFE_VERSION_DASH and SAFE_VERSION_DOT>Werner Koch1-17/+117
* g10.c: New options --gpgconf-list, --debug-level and --log-file (set_debug): Add arg DEBUG_LEVEL. (main): Look at less and less version specific config files. From gnupg 1.3.
2004-02-12* gpgv.c: Removed g10defs.h.Werner Koch1-1/+1
* Makefile.am: Include cmacros.am for common flags.
2003-10-21* card-util.c (card_edit): New command "passwd". Add logic toWerner Koch1-1/+1
check the PIN in advance. (card_status): Add new args to return the serial number. Changed all callers. * call-agent.c (agent_scd_checkpin): New.
2003-10-08* call-agent.c (agent_scd_getattr): Don't clear the passed infoWerner Koch1-2/+2
structure, so that it can indeed be updated. * card-util.c (fpr_is_zero): New. (generate_card_keys): New. (card_edit): New command "generate". * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call to check_smartcard. (check_smartcard,show_smartcard): Removed. (show_sha1_fpr,fpr_is_zero): Removed. * app-openpgp.c (do_getattr): Support SERIALNO and AID.
2003-09-23Merged most of David Shaw's changes in 1.3 since 2003-06-03.Werner Koch1-117/+196
2003-09-18* g10.c: New command --card-edit.Werner Koch1-0/+17
* card-util.c (card_status): Use tty_fprintf for all output. (print_sha1_fpr, print_isoname): Ditto. (get_one_name,change_name, change_url, change_login,change_lang) (change_sex): New; taken from keygen.c. * keygen.c (smartcard_get_one_name, smartcard_change_name) (smartcard_change_url, smartcard_change_login_data) (smartcard_change_lang, smartcard_change_sex): Removed. (check_smartcard): Removed most menu items.
2003-08-05Cleanups, fixes and PC/SC supportWerner Koch1-93/+14
2003-07-29* gpgsm.c (main): Add secmem features and set the random seed file.Werner Koch1-24/+16
(gpgsm_exit): Update the random seed file and enable debug output. * g10.c (main): Add secmem features and set the random seed file. (g10_exit): Update the random seed file. * parse-packet.c (parse_signature,read_protected_v3_mpi) (parse_key): Fixed use of mpi_set_opaque. * keygen.c (gen_card_key): Ditto.
2003-07-24* g10.c: New command --card-status.Werner Koch1-0/+10
* card-util.c (card_status): New. * call-agent.c (learn_status_cb): Parse more information. * keylist.c (print_pubkey_info): Add FP arg for optinal printing to a stream. Changed all callers.
2003-07-23* keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.Werner Koch1-0/+15
(do_generate_keypair): Abd generate the authkey. (check_smartcard): Changed menu accordingly.
2003-07-03* options.h (DBG_CIPHER): Reintroduced it.Werner Koch1-0/+4
* seskey.c (encode_session_key): Debug output of the session key. * pubkey-enc.c (get_it): Handle card case. * call-agent.c (agent_scd_pkdecrypt): New. * pkglue.c (pk_encrypt): Add RSA support. * g10.c (main): Default to --use-agent. * keygen.c (show_smartcard): Print info about the public key. (check_smartcard): Check for existing key here. (gen_card_key): And not anymore here. (fpr_is_zero): New. (generate_keypair): Generate both keys for a card. (smartcard_change_url): Nw.
2003-06-27Key generation and signing using the OpenPGP card does rudimentary work.Werner Koch1-2/+11
2003-06-18Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch1-182/+259
to libgcrypt functions, using shared error codes from libgpg-error, replacing the old functions we used to have in ../util by those in ../jnlib and ../common, renaming the malloc functions and a couple of types. Note, that not all changes are listed below becuause they are too similar and done at far too many places. As of today the code builds using the current libgcrypt from CVS but it is very unlikely that it actually works.
2003-06-05A small step for GnuPG but a huge leap for error codes.Werner Koch1-0/+3
(Sorry, it does not build currently - I need to check it in to avoid duplicate work.)
2003-06-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+3137
'GNUPG-1-9-BRANCH'.
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-2816/+0
'GNUPG-1-9-BRANCH'.
2002-10-17* g10.c (main): Handle --strict and --no-strict from the command lineDavid Shaw1-0/+10
before the options file is loaded.
2002-10-15* g10.c (main): Disable --textmode when encrypting (symmetric or pk) inDavid Shaw1-0/+11
--pgp2 mode as PGP 2 can't handle the unknown length literal packet. Reported by Michael Richardson.
2002-10-03* options.h, g10.c (main): Add --strict and --no-strict to switch theDavid Shaw1-0/+6
log_warning severity level from info to error.
2002-09-282002-09-28 David Shaw <[email protected]>David Shaw1-8/+18
* export.c (do_export_stream): Comment. * sig-check.c (check_key_signature2): Properly handle a non-designated revocation import. 2002-09-26 Werner Koch <[email protected]> * g10.c (set_homedir): New. Changed all direct assignments to use this. * gpgv.c (set_homedir): Ditto.
2002-09-23added fast-import to import-optionsStefan Bellon1-2/+2
2002-09-17From stable branchDavid Shaw1-18/+48
* keyedit.c (menu_addrevoker): The direct key signature for revocation 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): Rearrange strings to make translating easier (don't incorporate string parts). * keyedit.c (sign_uids): Make strings translatable. * sig-check.c (check_key_signature2): Make string translatable.
2002-09-13Import from stable branch.David Shaw1-1/+1
2002-09-13 David Shaw <[email protected]> * getkey.c (check_revocation_keys): Move.... * 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. 2002-09-13 Werner Koch <[email protected]> * g10.c (main) [__MINGW32__]: Activate oLoadExtension.
2002-09-11* g10.c, options.h: Removed option --emulate-checksum-bug.Werner Koch1-1/+0
* 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.
2002-09-10Cleanups and minor fixes.Werner Koch1-7/+4
2002-09-09* g10.c (add_group): Use '=' to separate group name from group members.David Shaw1-2/+2
Use a better error message for when no = is found. * hkp.c (hkp_export): Use CRLF in headers.
2002-09-02* g10.c (main): Try to set a default character set. Print theWerner Koch1-1/+6
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.
2002-08-22* import.c (clean_subkeys, chk_self_sigs): Merge clean_subkeys intoDavid Shaw1-0/+1
chk_self_sigs. This improves efficiency as the same signatures are not checked multiple times. Clarify when a subkey is revoked (any revocation signature, even if it is dated before the binding signature). * getkey.c (merge_selfsigs_subkey): Subkey revocation comments. * keylist.c (list_one): Stats are only for public key listings. * g10.c (main), options.skel: Default should be include-revoked for keyserver operations.
2002-08-182002-08-16 Timo Schulz <[email protected]>Timo Schulz1-1/+1
* g10.c (main): enable opt.interactive. * import.c (import_one): Ask the user if the key shall be imported when the interactive mode is used. Useful to extract selected keys from a file.
2002-08-13* encode.c (encode_simple): Fix problem with using compression algo 2 andDavid Shaw1-1/+4
symmetric compressed files. * encode.c (encode_simple, encode_crypt): If we are not using a MDC, compress even if a file is already compressed. This is to help against the chosen ciphertext attack. * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug so the request succeeds even if the requested algorithm is not the first found. * cipher.c (write_header), encode.c (use_mdc, encode_simple, encode_crypt, encrypt_filter), g10.c (main): Be more eager to use a MDC. We use a MDC if the keys directly support it, if the keys list AES (any) or TWOFISH anywhere in the prefs, or if the cipher chosen does not have a 64 bit blocksize.
2002-08-07* keyedit.c (menu_revsig): Properly show a uid is revoked withoutDavid Shaw1-32/+192
restarting gpg. This is Debian bug 124219, though their supplied patch will not do the right thing. * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed check_permissions), keydb.c (keydb_add_resource), g10.c (main, check_permissions): Significant reworking of the permission check mechanism. The new behavior is to check everything in the homedir by checking the homedir itself. If the user wants to put (possibly shared) keyrings outside the homedir, they are not checked. The options file and any extension files are checked wherever they are, as well as their enclosing directories. This is Debian bug 147760.
2002-08-06use of EXTSEP_SStefan Bellon1-1/+1
2002-08-06* options.h, g10.c (main), mainproc.c (proc_encrypted): --ignore-mdc-errorDavid Shaw1-0/+3
option to turn a MDC check error into a warning.
2002-08-06* encode.c (encode_crypt), g10.c (main), sign.c (sign_file,David Shaw1-3/+4
clearsign_file): Use the same --pgpX warning string everywhere to ease translations. * encode.c (write_pubkey_enc_from_list): Warn when using --throw-keyid with --pgpX. Noted by Vedaal Nistar.
2002-08-06* g10.c (main): Try to use "gpg.conf" as default option file.Werner Koch1-2/+15
* openfile.c (copy_options_file): Changed name of created file.