aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change all quotes in strings and comments to the new GNU standard.Werner Koch2012-06-051-7/+7
| | | | | | | | | | | | | | | | | | | The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
* Add tweaks for the not anymore patented IDEA algorithm.Werner Koch2012-05-081-18/+0
| | | | | | | | | | | | | | | * g10/keygen.c (keygen_set_std_prefs): Include IDEA only in PGP2 compatibility mode. * g10/misc.c (idea_cipher_warn): Remove. Also remove all callers. * common/status.h (STATUS_RSA_OR_IDEA): Remove. Do not emit this status anymore. -- To keep the number of actually used algorithms low, we want to support IDEA only in a basically read-only way (unless --pgp2 is used during key generation). It does not make sense to suggest the use of this old 64 bit blocksize algorithm. However, there is old data available where it might be helpful to have IDEA available.
* gpg: Fix segv with RSA_S keys.Werner Koch2012-01-111-0/+8
| | | | | | | | | | | | | | | * g10/misc.c (pubkey_get_npkey, pubkey_get_nskey) (pubkey_get_nsig, pubkey_get_nenc): Map all RSA algo ids to GCRY_PK_RSA. -- The problem is that Libgcrypt has no more support for the alternate RSA ids and thus if asking for the number of parameters, they will return zero. Now, this leads to packing the key parameters into an opaque MPI but because the algorithm id is actually known to GPG, it assumes valid RSA parameters. An example key with RSA_S is 0x5434509D.
* Minor code cleanups.Werner Koch2011-03-031-7/+5
| | | | | | | * keyid.c (hash_public_key): Remove shadowing NBITS. * misc.c (pubkey_nbits): Replace GCRY_PK_ by PUBKEY_ALGO_. (get_signature_count): Remove warning.
* Relax mailbox name checking. Fixes bug#1315.Werner Koch2011-02-031-41/+40
|
* Move OpenPGP OID helpers to common/.Werner Koch2011-01-311-201/+0
| | | | | | | This is needed so that the agent will be able to export and import OpenPGP secret keys. Add test case. Removed unused function.
* Reworked the ECC changes to better fit into the Libgcrypt API.Werner Koch2011-01-311-26/+278
| | | | | See ChangeLog for details. Key generation, signing and verification works. Encryption does not yet work. Requires latest Libgcrypt changes.
* Function name cleanupsWerner Koch2011-01-261-88/+4
| | | | Also nuked some trailing spaces.
* Started with some code cleanups in ECDH.Werner Koch2011-01-251-1/+1
| | | | | | The goal is to have the ECDH code more uniform with the other algorithms. Also make error messages and variable names more similar to other places.
* Make most of the selftests work.Werner Koch2011-01-211-19/+1
| | | | | Note that there is still a problem with tests/openpgp/sigs.test while using the option --digest-algo SHA256.
* Editorial changes and allow building with old libgcrypts.Werner Koch2011-01-211-61/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | Changed order of some conditional to make to put the special case into the true branch. Indentation changes. Minor other changes to make the ECC code more similar to the rest of our code. It builds but many sefltests still fail. Need to fix that before using it with an ECDH enabled libgcrypt. [/] 2011-01-21 Werner Koch <[email protected]> * configure.ac: Need Libgcrypt 1.4.6 due to AESWRAP. (HAVE_GCRY_PK_ECDH): Add new test. [agent/] 2011-01-21 Werner Koch <[email protected]> * cvt-openpgp.c (GCRY_PK_ECDH) [!HAVE_GCRY_PK_ECDH]: New. [include/] 2011-01-21 Werner Koch <[email protected]> * cipher.h (GCRY_PK_USAGE_CERT): Remove compatibility macros because we now require libgcrypt 1.4.6. (GCRY_PK_ECDH): Add replacement.
* Integrating http://code.google.com/p/gnupg-ecc/source/detail?r=15 .Andrey Jivsov2011-01-061-5/+142
| | | | | | | | | | The following works: gpg2 --gen-key (ECC) gpg2 --list-keys gpg2 --list-packets ~/.gnupg/pubring.gpg gpg2 --list-packets <private key from http://sites.google.com/site/brainhub/pgpecckeys> ECDH doesn't work yet as the code must be re-written to adjust for gpg-agent refactoring.
* s/AES/AES128/ in diagnostics and --list-configWerner Koch2010-12-021-1/+1
|
* Smartcard related updatesWerner Koch2010-11-171-7/+6
|
* Make public key data structure easier to read.Werner Koch2010-10-201-1/+1
| | | | | Check vor v1 card while signing.
* More agent support for gpg.Werner Koch2010-10-131-4/+3
|
* Import OpenPGP keys into the agent.Werner Koch2010-08-311-0/+35
|
* ./autogen.sh --build-w32ce does now succeed.Werner Koch2010-04-141-7/+10
|
* Finished the bulk of changes to use estream in most places instead ofWerner Koch2010-03-151-18/+20
| | | | | stdio.
* Various changes to eventually support openpgp keys in pgp-agent.Werner Koch2010-02-021-23/+27
| | | | | | Comment fixes. Minor chnages in preparation of a W32CE port.
* Fix bug 1091.Werner Koch2009-07-201-1/+1
| | | | | | Doc fixes. Replace assert by error message.
* Add full Camellia support.David Shaw2009-06-051-11/+2
| | | | | | | | | | | | | | | | | | * configure.ac: Remove Camellia restriction. * gpg.c (main), misc.c (openpgp_cipher_test_algo): Remove Camellia restriction. * misc.c (map_cipher_openpgp_to_gcry), main.h: Add macros for openpgp_cipher_open, openpgp_cipher_get_algo_keylen, and openpgp_cipher_get_algo_blklen to wrap around the corresponding gcry_* functions, but pass the algorithm number through map_cipher_openpgp_to_gcry. This is needed in case the gcry algorithm number doesn't match the OpenPGP number (c.f. Camellia). * encr-data.c, pubkey-enc.c, mainproc.c, cipher.c, encode.c, seskey.c, passphrase.c, seckey-cert.c: Use new openpgp_cipher_* macros here.
* Import/export of pkcs#12 now uses the gpg-agent directly.Werner Koch2009-04-011-33/+0
| | | | | Removed duplicated code (percent unescaping).
* Add limited support for NetKey 3.0 cards.Werner Koch2009-01-081-8/+7
|
* Update spanish translation.Werner Koch2009-01-081-2/+13
| | | | | | Cleanups. Allow utf-8 in email addresses.
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-201-4/+12
|
* * main.h, mainproc.c (check_sig_and_print), keylist.cDavid Shaw2008-10-031-15/+37
| | | | | | | | | (list_keyblock_print), pkclist.c (do_edit_ownertrust), keyedit.c (menu_showphoto), photoid.c (generate_photo_id, show_photos), misc.c (pct_expando): Add %v and %V expandos so that displaying photo IDs can show the attribute validity tag (%v) and string (%V). Originally by Daniel Gillmor.
* Adjust for the changed Camellia draft.Werner Koch2008-04-181-5/+30
| | | | | | W32 gettext changes. Comment and typo fixes.
* Allow type 20 keys only with option --rfc2440.Werner Koch2007-12-121-0/+15
|
* Support DSA2.Werner Koch2007-12-121-4/+51
| | | | | | Support Camellia for testing. More audit stuff.
* Fix for bug 851.Werner Koch2007-12-101-0/+1
| | | | | | Fixed auto generation of the stub key for the card. Allow to encrypt toElgamal encryption keys of type 20.
* Started to implement the audit log feature.Werner Koch2007-11-191-1/+1
| | | | | | | | Pass PINENTRY_USER_DATA and XAUTHORITY to Pinentry. Improved support for the quality bar. Minor internal restructuring. Translation fixes.
* Ported changes from 1.4.Werner Koch2007-10-251-26/+43
| | | | | Add copyright notices.
* Updated estream.Werner Koch2007-08-221-4/+6
| | | | | More changes for Windows.
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* [w32] gpg-agent is now started automagically by gpgsm.Werner Koch2007-06-201-73/+0
|
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-141-37/+0
| | | | | See the ChangeLogs for details.
* First steps towards supporting W32.Werner Koch2007-06-061-41/+0
| | | | | | | This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
* Added LIBINTL to more Makefile targets.Werner Koch2007-01-301-0/+17
| | | | | | | | | | | | | | | | | | | | doc/ * com-certs.pem: Added the current root certifcates of D-Trust and S-Trust. g10/ * status.c (write_status_begin_signing): New. * sign.c (sign_file, sign_symencrypt_file): Call it. * textfilter.c (copy_clearsig_text): Call it. * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if required. * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a warning. * misc.c (obsolete_option): New.
* No more warnings for AMD64 (at least when cross-compiling). Thus tehre is aWerner Koch2006-11-211-2/+2
| | | | | | | good chance that gpg2 will now work. Other cleanups. Updated gettext.
* With --enable-gpg the keyservers are now build and a first test using gpg2Werner Koch2006-08-161-1/+4
| | | | | shows no prblems. Needs more testing of course.
* A couple of fixes. gpg2's key generation does now work.Werner Koch2006-06-301-4/+1
|
* Still making gpg2 work.Werner Koch2006-05-241-4/+50
| | | | | At least the keyids are now correctly computed again.
* g10/ does build again.Werner Koch2006-05-231-1/+18
|
* Merged with gpg 1.4.3 code. Werner Koch2006-04-191-330/+713
| | | | | The gpg part does not yet build.
* Fix to let it compile. This is not required but avoids complaintsWerner Koch2005-07-201-2/+1
| | | | | from folks not reading the documentation.
* gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch2005-06-161-2/+3
| | | | | | | 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.
* Mainly changes to adjust for the changed KSBA API.Werner Koch2003-11-121-0/+2
|
* Merged most of David Shaw's changes in 1.3 since 2003-06-03.Werner Koch2003-09-231-3/+26
|
* * configure.ac: Required newer versions of some libraries.V1-9-1Werner Koch2003-09-061-3/+3
| | | | | | | | | | | | | * misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed. * keygen.c (ask_passphrase): No need to allocated S2K in secure memory. * scdaemon.c (main): --pcsc-driver again defaults to pcsclite. David Corcoran was so kind to remove the GPL incompatible advertisng clause from pcsclite. * apdu.c (apdu_open_reader): Actually make pcsc-driver option work.