aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-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.
2012-05-08Add tweaks for the not anymore patented IDEA algorithm.Werner Koch1-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.
2012-01-11gpg: Fix segv with RSA_S keys.Werner Koch1-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.
2011-03-03Minor code cleanups.Werner Koch1-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.
2011-02-03Relax mailbox name checking. Fixes bug#1315.Werner Koch1-41/+40
2011-01-31Move OpenPGP OID helpers to common/.Werner Koch1-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.
2011-01-31Reworked the ECC changes to better fit into the Libgcrypt API.Werner Koch1-26/+278
See ChangeLog for details. Key generation, signing and verification works. Encryption does not yet work. Requires latest Libgcrypt changes.
2011-01-26Function name cleanupsWerner Koch1-88/+4
Also nuked some trailing spaces.
2011-01-25Started with some code cleanups in ECDH.Werner Koch1-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.
2011-01-21Make most of the selftests work.Werner Koch1-19/+1
Note that there is still a problem with tests/openpgp/sigs.test while using the option --digest-algo SHA256.
2011-01-21Editorial changes and allow building with old libgcrypts.Werner Koch1-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.
2011-01-06Integrating http://code.google.com/p/gnupg-ecc/source/detail?r=15 .Andrey Jivsov1-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.
2010-12-02s/AES/AES128/ in diagnostics and --list-configWerner Koch1-1/+1
2010-11-17Smartcard related updatesWerner Koch1-7/+6
2010-10-20Make public key data structure easier to read.Werner Koch1-1/+1
Check vor v1 card while signing.
2010-10-13More agent support for gpg.Werner Koch1-4/+3
2010-08-31Import OpenPGP keys into the agent.Werner Koch1-0/+35
2010-04-14./autogen.sh --build-w32ce does now succeed.Werner Koch1-7/+10
2010-03-15Finished the bulk of changes to use estream in most places instead ofWerner Koch1-18/+20
stdio.
2010-02-02Various changes to eventually support openpgp keys in pgp-agent.Werner Koch1-23/+27
Comment fixes. Minor chnages in preparation of a W32CE port.
2009-07-20Fix bug 1091.Werner Koch1-1/+1
Doc fixes. Replace assert by error message.
2009-06-05Add full Camellia support.David Shaw1-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.
2009-04-01Import/export of pkcs#12 now uses the gpg-agent directly.Werner Koch1-33/+0
Removed duplicated code (percent unescaping).
2009-01-08Add limited support for NetKey 3.0 cards.Werner Koch1-8/+7
2009-01-08Update spanish translation.Werner Koch1-2/+13
Cleanups. Allow utf-8 in email addresses.
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-4/+12
2008-10-03* main.h, mainproc.c (check_sig_and_print), keylist.cDavid Shaw1-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.
2008-04-18Adjust for the changed Camellia draft.Werner Koch1-5/+30
W32 gettext changes. Comment and typo fixes.
2007-12-12Allow type 20 keys only with option --rfc2440.Werner Koch1-0/+15
2007-12-12Support DSA2.Werner Koch1-4/+51
Support Camellia for testing. More audit stuff.
2007-12-10Fix for bug 851.Werner Koch1-0/+1
Fixed auto generation of the stub key for the card. Allow to encrypt toElgamal encryption keys of type 20.
2007-11-19Started to implement the audit log feature.Werner Koch1-1/+1
Pass PINENTRY_USER_DATA and XAUTHORITY to Pinentry. Improved support for the quality bar. Minor internal restructuring. Translation fixes.
2007-10-25Ported changes from 1.4.Werner Koch1-26/+43
Add copyright notices.
2007-08-22Updated estream.Werner Koch1-4/+6
More changes for Windows.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-20[w32] gpg-agent is now started automagically by gpgsm.Werner Koch1-73/+0
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-37/+0
See the ChangeLogs for details.
2007-06-06First steps towards supporting W32.Werner Koch1-41/+0
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-01-30Added LIBINTL to more Makefile targets.Werner Koch1-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.
2006-11-21No more warnings for AMD64 (at least when cross-compiling). Thus tehre is aWerner Koch1-2/+2
good chance that gpg2 will now work. Other cleanups. Updated gettext.
2006-08-16With --enable-gpg the keyservers are now build and a first test using gpg2Werner Koch1-1/+4
shows no prblems. Needs more testing of course.
2006-06-30A couple of fixes. gpg2's key generation does now work.Werner Koch1-4/+1
2006-05-24Still making gpg2 work.Werner Koch1-4/+50
At least the keyids are now correctly computed again.
2006-05-23g10/ does build again.Werner Koch1-1/+18
2006-04-19Merged with gpg 1.4.3 code. Werner Koch1-330/+713
The gpg part does not yet build.
2006-03-22Changed URLsWerner Koch1-2/+2
2006-03-01* getkey.c (parse_auto_key_locate): Error if the user selects "cert" orDavid Shaw1-5/+2
"pka" when those features are disabled. * misc.c (has_invalid_email_chars): Fix some C syntax that broke the compilers on SGI IRIX MIPS and Compaq/DEC OSF/1 Alpha. Noted by Nelson H. F. Beebe.
2006-01-22* keyserver.c (keyserver_spawn): Include the EXEEXT so we can findDavid Shaw1-1/+9
keyserver helpers on systems that use extensions. * misc.c (path_access) [HAVE_DRIVE_LETTERS]: Do the right thing with drive letter systems.
2005-10-14* keyedit.c (keyedit_menu, menu_backsign): New "backsign" command toDavid Shaw1-1/+1
add 0x19 backsigs to old keys that don't have them. * misc.c (parse_options): Fix build warning. * main.h, keygen.c (make_backsig): Make public.
2005-09-14* main.h, misc.c (parse_options): Add the ability to have helpDavid Shaw1-3/+12
strings in xxx-options commands. * keyserver.c (keyserver_opts), import.c (parse_import_options), export.c (parse_export_options), g10.c (parse_list_options, main): Add help strings to xxx-options.