aboutsummaryrefslogtreecommitdiffstats
path: root/g10/armor.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-03-03Fix faulty gcc warningsWerner Koch1-6/+5
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-14/+14
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2011-01-21Editorial changes and allow building with old libgcrypts.Werner Koch1-1/+1
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-1/+1
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-06-07Add unfinished gpgtar.Werner Koch1-2/+3
Collected changes and ports of bug fixes from stable.
2010-03-15Finished the bulk of changes to use estream in most places instead ofWerner Koch1-12/+13
stdio.
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-9/+38
Add copyright notices.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2006-12-06Fixes for CVE-2006-6235Werner Koch1-1/+50
2006-10-02Fix for bug 537Werner Koch1-1/+1
2006-05-23g10/ does build again.Werner Koch1-1/+1
2006-04-28Merged recent changes from 1.4Werner Koch1-9/+15
2006-04-20* gpg.c (print_mds), armor.c (armor_filter, parse_hash_header): AddDavid Shaw1-7/+11
SHA-224. * sign.c (write_plaintext_packet), encode.c (encode_simple): Factor common literal packet setup code from here, to... * main.h, plaintext.c (setup_plaintext_name): Here. New. Make sure the literal packet filename field is UTF-8 encoded. * options.h, gpg.c (main): Make sure --set-filename is UTF-8 encoded and note when filenames are already UTF-8.
2006-04-19Merged with gpg 1.4.3 code. Werner Koch1-140/+221
The gpg part does not yet build.
2006-04-09* getkey.c (parse_auto_key_locate): Fix dupe-removal code.David Shaw1-2/+4
* keyedit.c (menu_backsign): Allow backsigning even if the secret subkey doesn't have a binding signature. * armor.c (radix64_read): Don't report EOF when reading only a pad (=) character. The EOF actually starts after the pad. * gpg.c (main): Make --export, --send-keys, --recv-keys, --refresh-keys, and --fetch-keys follow their arguments from left to right. Suggested by Peter Palfrader.
2005-11-13* armor.c (parse_header_line): A fussy bit of 2440: header lines areDavid Shaw1-4/+18
delimited with a colon-space pair. Therefore a line such as "Comment: " is actually legal, albeit not particularly useful.
2005-07-27Converted all m_free to xfree etc.Werner Koch1-4/+4
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch1-4/+5
2005-01-06* filter.h, armor.c (armor_filter): Use the eol string from the armorDavid Shaw1-26/+41
filter context instead of hardcoding '\n' or '\r\n'. If no eol string is provided, default to '\n' or '\r\n' as appropriate. (is_armor_header): Trim tabs in armor header lines as well. * keyserver.c (keyserver_spawn): Use it here to force '\n' line endings since the keyserver output file gets a LF->CRLF expansion on win32.
2005-01-06* g10.c (main): Typo.David Shaw1-9/+16
* armor.c (is_armor_header): Allow CR and LF (not just actual spaces) in an armor header line (-----BEGIN etc). This is needed due to CRLF issues on win32. As before, --openpgp makes it strict.
2004-10-14* keylist.c (list_keyblock_print): Show the fingerprint after the key, notDavid Shaw1-37/+58
after the first user ID. * keyedit.c (show_key_with_all_names): Don't show validity if we're just printing user IDs for signing. * armor.c (fake_packet): Properly handle the case where the line is dash-space (i.e. a blank line that was quoted). Give a warning for bad dash escaping.
2004-10-13* armor.c (fake_packet): Allow arbitrary dash-escaped lines as perDavid Shaw1-20/+19
2440bis-10. This is bug #158.
2004-09-24* main.h: Create S2K_DIGEST_ALGO macro so we do not need to always setDavid Shaw1-6/+6
opt.s2k_digest_algo. This helps fix a problem with PGP 2.x encrypted symmetric messages. Change all callers (encode.c, g10.c, keyedit.c, keygen.c, passphrase.c, sign.c). * armor.c, cardglue.c, getkey.c, import.c, keygen.c: Be consistent in some more quoted strings. Always use 'user ID', not 'user id', "quotes" for user IDs, etc.
2004-08-05* armor.c (radix64_read): No armor CRC is legal according to the spec (theDavid Shaw1-1/+5
CRC is a MAY).
2004-07-16* keylist.c (list_keyblock_print): Always use the new listing format whereDavid Shaw1-6/+5
uids are always on a line for themselves. Mark expired secret keys as expired. * options.h, g10.c (main): Rename list show-validity to show-uid-validity as it only shows for uids. * armor.c (armor_filter): Do not use padding to get us to 8 bytes of header. Rather, use 2+4 as two different chunks. This avoids a fake filename of "is".
2004-03-04* armor.c (fake_packet, armor_filter): Use the 2440 partial lengthDavid Shaw1-25/+48
encoding for the faked plaintext packet.
2003-09-23Merged most of David Shaw's changes in 1.3 since 2003-06-03.Werner Koch1-21/+18
2003-09-23* g10.c (main): Deprecate --default-comment in favor of --no-comments.David Shaw1-10/+12
* options.h, g10.c (main), armor.c (armor_filter): Allow using --comment multiple times to get multiple Comment: header lines. --no-comments resets list.
2003-09-04* armor.c (parse_hash_header, armor_filter), g10.c (print_hex, print_mds),David Shaw1-11/+5
pkclist.c (algo_available): Drop TIGER/192 support.
2003-06-18Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch1-15/+16
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-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+1336
'GNUPG-1-9-BRANCH'.
2003-05-24* armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c, build-packet.c,David Shaw1-10/+10
getkey.c, keydb.c, openfile.c, plaintext.c, status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h, encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
2003-05-03* packet.h, build-packet.c (build_sig_subpkt), export.cDavid Shaw1-3/+1
(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.
2003-02-04* armor.c (parse_hash_header, armor_filter): Accept the new SHAs in theDavid Shaw1-6/+18
armor Hash: header. * g10.c (print_hex): Print long hash strings a little neater. (print_mds): Add the new SHAs to the hash list.
2003-01-11* armor.c (armor_filter): Comment about PGP's end of line tab problem.David Shaw1-1/+5
* trustdb.h, trustdb.c (trust_letter): Make static. (get_ownertrust_info, get_validity_info): Don't mask the trust level twice. * trustdb.h, gpgv.c, trustdb.c (get_validity, get_validity_info), keylist.c (list_keyblock_colon), keyedit.c (show_key_with_all_names_colon, menu_revuid): Pass a user ID in rather than a namehash, so we only have to do the hashing in one place. * packet.h, pkclist.c (build_pk_list), free-packet.c (release_public_key_parts): Remove unused namehash element for public keys.
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-1322/+0
'GNUPG-1-9-BRANCH'.
2002-06-29Update head to match stable 1.0David Shaw1-68/+310
2000-07-14See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch1-18/+45
2000-01-27See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch1-8/+8
2000-01-24See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch1-3/+3
1999-12-31See ChangeLog: Fri Dec 31 12:48:31 CET 1999 Werner KochWerner Koch1-18/+18
1999-12-08See ChangeLog: Wed Dec 8 21:58:32 CET 1999 Werner KochWerner Koch1-4/+4
1999-11-19See ChangeLog: Fri Nov 19 17:15:20 CET 1999 Werner KochWerner Koch1-0/+6
1999-05-20See ChangeLog: Thu May 20 14:04:08 CEST 1999 Werner KochWerner Koch1-4/+8
1999-04-05./BUGSWerner Koch1-1/+0
1999-03-20See ChangeLog: Sat Mar 20 13:59:47 CET 1999 Werner KochV0-9-5Werner Koch1-6/+11
1999-03-17See ChangeLog: Wed Mar 17 13:09:03 CET 1999 Werner KochWerner Koch1-1/+3
1999-03-02See ChangeLog: Tue Mar 2 10:38:42 CET 1999 Werner KochWerner Koch1-1/+1
1999-02-26See ChangeLog: Fri Feb 26 17:55:41 CET 1999 Werner KochWerner Koch1-0/+27