summaryrefslogtreecommitdiff
path: root/src/passphrase.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2012-10-19 11:23:39 +0200
committerWerner Koch <wk@gnupg.org>2012-10-19 11:23:39 +0200
commitbd24feaa86f8154e550107990392ac9ac05e60d4 (patch)
tree6774aa2c1148896839045d2f34e753d0def5d050 /src/passphrase.c
parent14a8fd4eec126cad282a85c5aa336a6b55229b52 (diff)
downloadgpgme-bd24feaa86f8154e550107990392ac9ac05e60d4.tar.gz
Trace the use of GPG_ERR_INV_ENGINE.
* src/debug.h: Include "gpgme.h" (_gpgme_trace_gpgme_error): New. (trace_gpg_error): New macro. Use it in all files where we return GPG_ERR_INV_ENGINE; also "include debug.h" as needed. -- This is a pretty common error code but often it is hard to figure out the actual cause. With debug level 4 we now print the file name and line number where this error code is generated by gpgme. Along with the git revision printed in the first log lines, this should give us an easier way to track down the problems related to this error code.
Diffstat (limited to 'src/passphrase.c')
-rw-r--r--src/passphrase.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passphrase.c b/src/passphrase.c
index 17f14436..7e5508eb 100644
--- a/src/passphrase.c
+++ b/src/passphrase.c
@@ -32,6 +32,7 @@
#include "context.h"
#include "ops.h"
#include "util.h"
+#include "debug.h"
typedef struct