aboutsummaryrefslogtreecommitdiffstats
path: root/common/logging.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-2/+2
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.
2011-09-30Change JNLIB license to LGPLv3+ or GPLv2+.Werner Koch1-7/+18
This is to allow the use of this code with code under GPLv2(only).
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-28/+27
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-02Add logging to GPG2: [W32CE].Werner Koch1-3/+41
2010-11-08A merged changesWerner Koch1-1/+1
2010-10-26Re-implemented GPG's --passwd command and improved it.Werner Koch1-4/+4
2010-10-01Exporting secret keys via gpg-agent is now basically supported.Werner Koch1-0/+3
A couple of forward ported changes. Doc updates.
2010-08-18Fix regression in logging.Werner Koch1-5/+22
Add a registry key to enable catch-all remote debugging for W32. Replace more stdio stuff by estream.
2010-08-09Support logging via TCPWerner Koch1-35/+181
2010-06-09Merged Dirmngr with GnuPG.Werner Koch1-6/+9
A few code changes to support dirmngr.
2010-06-07Add unfinished gpgtar.Werner Koch1-1/+5
Collected changes and ports of bug fixes from stable.
2010-04-20common/Marcus Brinkmann1-9/+15
2010-04-20 Marcus Brinkmann <[email protected]> * logging.c (do_log_ignore_arg): New helper function. (log_string): Use it to remove ugly volatile hack that causes gcc warning. (log_flush): Likewise. * sysutils.c (gnupg_unsetenv) [!HAVE_W32CE_SYSTEM]: Return something. (gnupg_setenv) [!HAVE_W32CE_SYSTEM]: Likewise. * pka.c (get_pka_info): Solve strict aliasing rule violation. * t-exechelp.c (test_close_all_fds): Use dummy variables to silence gcc warning. kbx/ 2010-04-20 Marcus Brinkmann <[email protected]> * keybox-update.c [!HAVE_DOSISH_SYSTEM]: Include ../common/sysutils.h even then to silence gcc warning about missing declaration of gnupg_remove. tools/ 2010-04-20 Marcus Brinkmann <[email protected]> * gpgconf-comp.c (option_check_validity): Use dummy variables to silence gcc warning.
2010-03-22More chnages to use estream. Add a way to replace the standardWerner Koch1-15/+22
descriptors.
2010-03-15Builds again for W32.Werner Koch1-3/+15
2010-03-15Finished the bulk of changes to use estream in most places instead ofWerner Koch1-26/+11
stdio.
2010-03-11Use a custom log handler for libassuan.Werner Koch1-49/+66
2010-03-10Change logging to use estream. The makes logging to a socket alsoWerner Koch1-105/+80
work on Solaris etc. Further changes required.. This is just a first step.
2010-03-10Merged jnlib into common.Werner Koch1-0/+0
2009-07-07Minor bug fixes.Werner Koch1-0/+3
Enhanced function docs.
2009-05-19Fix possible system freeze on Mac OS X.Werner Koch1-2/+2
2009-05-19Remove testing cruft.Werner Koch1-2/+2
Typo fixes.
2009-03-25log file fixes.Werner Koch1-12/+12
2009-02-25Fixed a nasty bug in scdaemon which led to a card reset if the card wasWerner Koch1-2/+16
inserted during scdaemon startup and a connection was made before the ticker had a chance to run. Add some stuff for better debugging.
2008-10-15Made scdaemon more robust on Windows.Werner Koch1-0/+4
2008-03-20Fix a bug in the ambigious name detection.Werner Koch1-3/+5
Minor cleanups.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2006-11-20Made some PIN pads work.Werner Koch1-1/+8
Some cleanups for 64 bit CPUs.
2006-10-02Fix for bug 537Werner Koch1-15/+15
2006-08-29See ChangeLogsWerner Koch1-2/+10
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-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.
2005-02-03Forgot to commit the recent fixed to scd and logging - doing it nowWerner Koch1-28/+13
2004-12-15A whole bunch of changes to allow building for W32.Werner Koch1-5/+2
2004-12-02First take on a W32 portWerner Koch1-1/+3
2004-11-23* b64enc.c: Include stdio.h and string.hWerner Koch1-3/+7
* gpgsm.c: New option --prefer-system-dirmngr. * call-dirmngr.c (start_dirmngr): Implement this option. * gpgconf-comp.c <dirmngr>: Add the proxy options. <gpgsm>: Add --prefer-system-daemon.
2004-10-22* logging.c (do_logv): Use set_log_stream to setup a default.Werner Koch1-119/+185
(log_set_file): Factored code out to .. (set_file_fd): .. New function to allow using a file descriptor. (log_set_fd): Make use of new fucntion. (fun_writer): Reworked.
2004-06-21(log_set_file): Do not close an old logstream if itWerner Koch1-6/+7
used to be stderr or stdout.
2004-05-05(log_set_file): Oops, don't close if LOGSTREAM is NULL.Werner Koch1-1/+1
2004-04-30* gpg-agent.c (parse_rereadable_options): New arg REREAD. AllowWerner Koch1-1/+8
changing oLogFile. (current_logfile): New. * logging.c (log_set_file): Make sure the log stream will be closed even if the stderr fileno will be assigned to a new socket.
2004-04-16* gpg-agent.c (main): Tell the logging code taht we are runnignWerner Koch1-23/+54
detached. * logging.h (JNLIB_LOG_WITH_PREFIX): Add constants for the flag values. * logging.c (log_set_prefix): New flag DETACHED. (fun_writer): Take care of this flag. (log_test_fd): New.
2003-12-16(writen, fun_writer, fun_closer): New.Werner Koch1-6/+13
(log_set_file): Add feature to log to a socket. (log_set_file, do_logv): Force printing with prefix and pid.
2003-12-16* configure.ac: Check for funopen and fopencookie as part of theWerner Koch1-13/+168
jnlib checks. * logging.c (writen, fun_writer, fun_closer): New. (log_set_file): Add feature to log to a socket.
2003-06-18Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch1-3/+14
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-01-09Updated from NewPGWerner Koch1-0/+347
2002-06-29Removed files for CVS reorganizationDavid Shaw1-241/+0
2000-01-24Add files to new directory.Werner Koch1-0/+241
This is mainly stuff moved from ../util to here.