aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/crlcache.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-10-28dirmngr: Fix NULL-deref while loading a CRL.Werner Koch1-1/+2
* dirmngr/crlcache.c (crl_parse_insert): Set error before leaping to failure. -- GnuPG-bug-id: 2082 Signed-off-by: Werner Koch <[email protected]>
2015-10-14cleanup: Fix confusion between gpg_error_t and gpg_err_code_t.NIIBE Yutaka1-1/+1
* dirmngr/crlcache.c (hash_dbfile): Use gpg_error_t for ERR. * kbx/keybox-update.c (keybox_set_flags): Call gpg_err_code_from_syserror.
2015-06-18dirmngr: Fix the cleanup zombies fix (685b782).Werner Koch1-7/+6
* dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Do not close the stdout reader after EOF from read_log_data. * dirmngr/crlcache.c (crl_cache_reload_crl): Close the reader before the next iteration. -- I assumed that the log_fd also has a reader object but that reader object is used for stdout and needs to be closed by the consumer. The real bug with the non-released ldap_wrapper control objects was that when looping over distribution points we did not closed the used reader object before the next iteration. Now, the test case had more than one DP and thus we lost one reader object. Signed-off-by: Werner Koch <[email protected]>
2015-06-09dirmngr: Avoid crash due to an empty crls.d/DIR.txt.Werner Koch1-1/+3
* dirmngr/crlcache.c (check_dir_version): Avoid segv. -- GnuPG-bug-id: 1842 Debian-bug-id: 776611
2014-08-26Switch to the libgpg-error provided estream.Werner Koch1-5/+4
* configure.ac (NEED_GPG_ERROR_VERSION): Reguire 1.14. (GPGRT_ENABLE_ES_MACROS): Define. (estream_INIT): Remove. * m4/estream.m4: Remove. * common/estream-printf.c, common/estream-printf.h: Remove. * common/estream.c, common/estream.h: Remove. * common/init.c (_init_common_subsystems): Call gpgrt initialization.
2012-08-24Fix typos spotted during translationsDavid Prévot1-1/+1
* agent/genkey.c: s/to to/to/ * sm/*.c: s/failed to allocated/failed to allocate/ * sm/certlist.c, ./dirmngr/validate.c: s/should have not/should not have/ * g10/seskey.c: missing closing parenthesis * dirmngr/crlcache.c: s/may has/may have/ Consistency fix: * g10/gpg.c, kbx/kbxutil.c, sm/gpgsm.c: uppercase after Syntax * dirmngr/dirmngr_ldap: no period in Syntax * dirmngr/dirmngr-client.c: infinitive for option description: s/certificates are expected/expect certificates/
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-48/+48
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-04-26avoid buffer strncpy-induced buffer overrunJim Meyering1-2/+8
* dirmngr/crlcache.c (open_dir): Ensure that both this_update and next_update member strings are NUL-terminated.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-123/+122
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.
2010-12-14Tweaks for gpgconf.Werner Koch1-3/+28
Fixed dirmngr bug 1010.
2010-12-14Change --dameon home directory to /gnupg under WinceWerner Koch1-1/+1
2010-10-18Fix a signing problem with the cardWerner Koch1-1/+13
2010-08-12Fix dirmngr problems on CE.Werner Koch1-3/+3
Add new dirmngr commands. Minor other fixes.
2010-08-06More work on the dirmngr. It now builds for W32 and W32CE and quickWerner Koch1-8/+2
tests show that it works on W32.
2010-07-23Some work on the dirmngrWerner Koch1-1/+1
2010-07-16Some work on porting dirmngr (unfinished)Werner Koch1-118/+119
Ported gpgtar to W32.
2010-06-09Merged Dirmngr with GnuPG.Werner Koch1-0/+2544
A few code changes to support dirmngr.