aboutsummaryrefslogtreecommitdiffstats
path: root/include (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-07-25Prepare for a forthcoming new algorithm id.Werner Koch1-0/+1
* include/cipher.h (PUBKEY_ALGO_ECC): New. * g10/keyid.c (pubkey_letter): Add letter 'C'. -- ID 22 will be used for generic ECC, i.e. one which can be used for ECDSA and ECDH. The only support in 1.4 will pretty printing the algorithm id.
2013-07-12gpg: signal handling fixNIIBE Yutaka1-2/+3
* include/dotlock.h (dotlock_remove_lockfiles_reclaim): New. (dotlock_destroy, dotlock_remove_lockfiles): Add a flag to reclaim memory or not. * util/dotlock.c (dotlock_create): Use dotlock_remove_lockfiles_reclaim for atexit. (dotlock_destroy_unix, dotlock_destroy) (dotlock_remove_lockfiles): Add a reclaim flag. (dotlock_remove_lockfiles_reclaim): New. * g10/signal.c (got_fatal_signal): Disable flag of reclaim memory to avoid non-async-face call. * g10/keydb.c (maybe_create_keyring): Follow the API change. * g10/gpgv.c: Follow the API change. -- signal handler got_fatal_signal should not call non-async-signal-safe functions. When malloc is interrupted by a signal, it screws up. This issue is reported: https://bugs.g10code.com/gnupg/issue1515 http://bugs.debian.org/399904
2012-12-19Remove trailing white space from some filesWerner Koch1-1/+1
--
2012-12-19Fix issue 1446: honor ports given in SRV responses.David Shaw1-3/+10
* common/http.c (send_request, connect_server, http_open): Use a struct srv instead of a single srvtag so we can pass the chosen host and port back to the caller. (connect_server): Use the proper port in the HAVE_GETADDRINFO case. * keyserver/curl-shim.c (curl_easy_perform): Use struct srv and log chosen host and port. * keyserver/gpgkeys_hkp.c (main): Properly take the port given by SRV. Backported from ba9e974f1fd85b3dbbfb5e26d7a14f71d07c7cf2
2012-12-18Add meta option ignore-invalid-option.Werner Koch1-0/+1
* util/argparse.c (iio_item_def_s, IIO_ITEM_DEF): New. (initialize): Init field IIO_LIST. (ignore_invalid_option_p): New. (ignore_invalid_option_add): New. (ignore_invalid_option_clear): New. (optfile_parse): Implement meta option. -- This option is currently of no use. However, as soon as it has been deployed in all stable versions of GnuPG, it will allow the use of the same configuration file with an old and a new version of GnuPG. For example: If a new version implements the option "foobar", and a user uses it in gpg.conf, an old version of gpg would bail out with the error "invalid option". To avoid that the following line can be put above that option in gpg.conf ignore-invalid-option foobar This meta option may be given several times or several option names may be given as arguments (space delimited). Note that this option is not available on the command line. (backported from commit 41d564333d35c923f473aa90625d91f8fe18cd0b)
2012-12-15Fix potential heap corruption in "gpg -v --version"Werner Koch1-0/+1
* g10/gpg.c (build_list): Rewrite to cope with buffer overflow in certain locales. * util/membuf.c (put_membuf_str): New. (get_membuf): Make LEN optional. -- This fixes an obvious bug in locales where the translated string is longer than the original. The bug could be exhibited by using LANG=ru_RU.utf8 gpg -v --version. En passant we also removed the trailing white space on continued lines. Reported-by: Dmitry V. Levin" <ldv at altlinux.org>
2012-11-06Handle systems which have uint64_t but not the UINT64_C macro.Thomas Klausner1-2/+7
* include/types.h (U64_C) [!UINT64_C]: Add simple replacement. -- This could happen with UNIX98-type systems, such as the code on the netbsd-1-5 branch, and would prevent this package from building on such systems.
2012-11-06Indent nested cpp directives for better readability.Werner Koch1-44/+43
--
2012-01-11Distribute dotlock.hDavid Shaw1-0/+1
2012-01-10Replace file locking by the new portable dotlock code.Werner Koch2-13/+117
* include/dotlock.h: New. From current gnupg master. * util/dotlock.c: Ditto. Include util.h. The major changes done in master are: Factor Unix and W32 specific code out into specific functions. Define HAVE_POSIX_SYSTEM. Rearrange some functions. (disable_dotlock): Rename to dotlock_disable. (create_dotlock): Rename to dotlock_create and add a dummy arg. (destroy_dotlock): Rename to dotlock_destroy. (make_dotlock): Rename to dotlock_take. (release_dotlock): Rename to dotlock_release. (remove_lockfiles): Rename to dotlock_remove_lockfiles.
2011-12-02Generate the ChangeLog from commit logs.Werner Koch1-2/+0
* scripts/gitlog-to-changelog: New script. Taken from gnulib. * scripts/git-log-fix: New file. * scripts/git-log-footer: New file. * scripts/git-hooks/commit-msg: New script. * autogen.sh: Install commit-msg hook for git. * doc/HACKING: Describe the ChangeLog policy. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog.
2011-12-02Rename all ChangeLog files to ChangeLog-2011.Werner Koch1-6/+13
* ChangeLog: New file.
2011-07-01Add pubkey letters e and E for ECC.Werner Koch1-1/+4
This does not mean we have any kind of ECC support now. It is merely to avoid printing a question mark for the algorithm. Trailing white space changes as usual.
2010-09-28Minor changes to help the VMS portWerner Koch2-0/+9
2009-09-03Fix a W32 problemWerner Koch2-2/+5
2009-08-25Restructured the compat functions and changed its license.Werner Koch2-0/+11
New fucntion xstrconcat for future use.
2009-08-12Try and detect mis-coded Latin1 and convert it to UTF8. Whether theDavid Shaw2-1/+5
heuristics succeed or not, the resulting string must be valid UTF8 as LDAP requires that. This is bug 1055.
2009-07-21First set of changes to backport the new card code from 2.0.Werner Koch6-5/+148
For compatibility reasons a few new files had to be added. Also added estream-printf as this is now used in app-openpgp.c and provides a better and generic asprintf implementation than the hack we used for the W32 code in ttyio.c. Card code is not yet finished.
2009-05-26Avoid caches to get the most recent copy of the key. This is bugDavid Shaw2-2/+7
#1061
2009-05-22Fixed bug1058.Werner Koch1-0/+1
2009-05-05Backport of Creation-Date parameter for unattended key generation.Werner Koch1-0/+1
2009-04-06Distribute srv.hDavid Shaw1-0/+1
2009-04-06* srv.h: Move to include/srv.h.David Shaw2-0/+53
* http.c (send_request): Pass in srvtag... (http_open): ...from here.
2009-04-03* curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): AddDavid Shaw2-6/+12
a CURLOPT_SRVTAG_GPG_HACK (passed through the the http engine). * http.h: Allow passing srvtag to http_open and http_open_document. * http.c (http_open, http_open_document): Allow passing srvtag to http_open and http_open_document.
2008-04-17Add Camellia-192.David Shaw2-3/+8
2007-11-29Add 128-bit variant of Camellia.David Shaw2-1/+6
2007-10-23Switched to GPLv3.Werner Koch17-64/+38
Updated gettext.
2007-08-24Improved detection of ketrings specified several times.Werner Koch2-0/+5
2007-06-13Add Camellia. Do not enable this if you are not doing interopDavid Shaw2-2/+8
testing. It is not (yet) legal OpenPGP, is not interop tested yet (obviously), and it's a great way to lose your data. Just don't do it.
2007-04-16Move some ascii_foo functions to libcompatDavid Shaw3-4/+9
2006-12-11Removed the use of g10defs.h.Werner Koch2-34/+17
This required some code cleanups and the introduction of a few accessor ducntions in mpi.
2006-12-06Preparing a releasegnupg-1.4.6Werner Koch2-0/+5
2006-09-28Add compat.h to distfilesDavid Shaw1-0/+1
2006-09-28Move strsep() and ascii_isspace() to libcompat.David Shaw3-7/+11
2006-09-28Put in the basic wiring (just hextobyte for now) for a libcompat.a thatDavid Shaw3-2/+13
can contain replacement files that can be linked to keyserver helpers without bringing in the whole libutil.a. libutil.a contains a complete copy of libcompat.a so we only need to link to one of them.
2006-07-26Fixed memory allocation bug and typos.Werner Koch1-3/+3
2006-04-20The plumbing necessary to create DSA keys with variable sized q.David Shaw2-0/+6
Not yet used (q==160).
2006-04-20Add SHA-224 supportDavid Shaw2-2/+7
2006-03-16* cert.c (get_cert): Handle the fixed IPGP type with fingerprint.David Shaw2-3/+8
2006-02-14Fixed a wrong return code with gpg --verifyWerner Koch2-0/+5
2005-12-23New code to do DNS CERT queries.David Shaw2-1/+6
2005-10-05Renamed g10.c to gpg.cWerner Koch1-1/+1
Filelength fixes for W32.
2005-07-28Implemented PKA trust modelWerner Koch1-0/+4
2005-07-27Converted all m_free to xfree etc.Werner Koch3-25/+28
2005-06-23* http.h: Fix prototypes for http_open_document and http_open again,David Shaw2-7/+12
to handle the new different auth for regular files and proxies.
2005-06-22* http.h: Fix prototypes for http_open_document and http_open to passDavid Shaw2-4/+11
in auth and proxyauth.
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch16-16/+31
2005-05-21* cardglue.c (send_status_info): Make CTRL optional.Werner Koch2-1/+24
(agent_scd_writekey, inq_writekey_parms): New. (agent_openpgp_storekey): Removed. * cardglue.h: Add a few more error code mappings. * keygen.c (copy_mpi): Removed. (save_unprotected_key_to_card): Changed to use agent_scd_writekey. * app-common.h, app-openpgp.c, tlv.c, tlv.h: Updated from newer version in gnupg 1.9 CVS.
2005-05-05Remove add_days_to_timestamp (unused)David Shaw2-1/+4
2005-04-22* distfiles: Add assuan.h.David Shaw2-0/+5