gnupg/sm
Werner Koch b56dfdfc18
Use the gpgrt log functions if possible.
* common/logging.c: Do not build any code if we can use the gpgrt_log
functions.
(log_logv_with_prefix): Rename to log_logv_prefix and change order of
args so that this function matches its printf like counterpart
gpgrt_logv_prefix.  Change all callers.
(log_debug_with_string): Rename to log_debug_string. Change all
callers.
(log_printhex): Move first arg to end so that this function matches
its printf like counterpart gpgrt_log_printhex.  Change all callers.
* common/logging.h: Divert to gpgrt/libgpg-error if we can use the
gpgrt_log functions.
(bug_at): Add inline versions if we can use the gpgrt_log functions.
* configure.ac (GPGRT_ENABLE_LOG_MACROS): Add to AH_BOTTOM.
(mycflags): Add -Wno-format-zero-length.
--

This patch enables the use of the log function from libgpgrt (aka
libgpg-error).  Instead of checking a version number, we enable them
depending on macros set by recent gpg-error versions.  Eventually the
whole divert stuff can be removed.

The -Wno-format-zero-length is required because log_printhex can be
called with an empty format string.  Note that this is fully specified
standard C behaviour.

Signed-off-by: Werner Koch <wk@gnupg.org>
2017-11-27 15:00:25 +01:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am Remove -I option to common. 2017-03-07 20:25:54 +09:00
call-agent.c Explain the "server is older than xxx warning". 2017-07-31 11:20:47 +02:00
call-dirmngr.c sm: Do not expect X.509 keyids to be unique 2017-10-24 17:29:04 +02:00
certchain.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
certcheck.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
certdump.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
certlist.c sm: Do not expect X.509 keyids to be unique 2017-10-24 17:29:04 +02:00
certreqgen-ui.c gpgsm: default to 3072-bit keys. 2017-09-08 11:37:42 -04:00
certreqgen.c gpgsm: default to 3072-bit keys. 2017-09-08 11:37:42 -04:00
decrypt.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
delete.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
encrypt.c gpg,sm: String changes for compliance diagnostics. 2017-07-28 17:46:43 +02:00
export.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
fingerprint.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
gpgsm-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgsm.c Merge branch 'STABLE-BRANCH-2-2' into master 2017-10-27 13:56:15 +02:00
gpgsm.h Merge branch 'STABLE-BRANCH-2-2' into master 2017-10-27 13:56:15 +02:00
import.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
keydb.c sm, w32: Fix initial keybox creation 2017-11-14 12:26:29 +01:00
keydb.h gpg,sm: Add STATUS_ERROR keydb_search and keydb_add-resource. 2016-11-10 17:07:28 +01:00
keylist.c sm: Fix colon listing of fields > 12 in crt records. 2017-10-19 14:59:34 +02:00
minip12.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
minip12.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
misc.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
passphrase.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
passphrase.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
qualified.c sm: Move qualified.txt from datadir into sysconfdir 2017-09-11 12:42:53 +02:00
server.c sm: Do not expect X.509 keyids to be unique 2017-10-24 17:29:04 +02:00
sign.c gpg,sm: String changes for compliance diagnostics. 2017-07-28 17:46:43 +02:00
verify.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00