diff options
author | Werner Koch <wk@gnupg.org> | 2015-04-06 13:42:17 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-04-06 13:42:17 +0200 |
commit | 24a75201da6be72edf85b96dbc0c01c747d02c6a (patch) | |
tree | ded5739c5a3d8a1ad6c241732809aefdb1555f59 /agent | |
parent | Fix use of DBG_CACHE and DBG_LOOKUP (diff) | |
download | gnupg2-24a75201da6be72edf85b96dbc0c01c747d02c6a.tar.xz gnupg2-24a75201da6be72edf85b96dbc0c01c747d02c6a.zip |
Rename DBG_ASSUAN to DBG_IPC and add separate DBG_EXTPROG.
* g10/options.h (DBG_EXTPROG_VALUE): Separate from DBG_IPC_VALUE.
Diffstat (limited to 'agent')
-rw-r--r-- | agent/agent.h | 4 | ||||
-rw-r--r-- | agent/call-pinentry.c | 4 | ||||
-rw-r--r-- | agent/call-scd.c | 2 | ||||
-rw-r--r-- | agent/gpg-agent.c | 16 |
4 files changed, 13 insertions, 13 deletions
diff --git a/agent/agent.h b/agent/agent.h index d61e6346e..30d0ffb5a 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -146,7 +146,7 @@ struct #define DBG_CACHE_VALUE 64 /* debug the caching */ #define DBG_MEMSTAT_VALUE 128 /* show memory statistics */ #define DBG_HASHING_VALUE 512 /* debug hashing operations */ -#define DBG_ASSUAN_VALUE 1024 /* Enable Assuan debugging. */ +#define DBG_IPC_VALUE 1024 /* Enable Assuan debugging. */ /* Test macros for the debug option. */ #define DBG_COMMAND (opt.debug & DBG_COMMAND_VALUE) @@ -154,7 +154,7 @@ struct #define DBG_MEMORY (opt.debug & DBG_MEMORY_VALUE) #define DBG_CACHE (opt.debug & DBG_CACHE_VALUE) #define DBG_HASHING (opt.debug & DBG_HASHING_VALUE) -#define DBG_ASSUAN (opt.debug & DBG_ASSUAN_VALUE) +#define DBG_IPC (opt.debug & DBG_IPC_VALUE) /* Forward reference for local definitions in command.c. */ struct server_local_s; diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c index ef1bfa428..6db429c47 100644 --- a/agent/call-pinentry.c +++ b/agent/call-pinentry.c @@ -135,7 +135,7 @@ unlock_pinentry (int rc) if (rc) { - if (DBG_ASSUAN) + if (DBG_IPC) log_debug ("error calling pinentry: %s <%s>\n", gpg_strerror (rc), gpg_strsource (rc)); @@ -351,7 +351,7 @@ start_pinentry (ctrl_t ctrl) } entry_ctx = ctx; - if (DBG_ASSUAN) + if (DBG_IPC) log_debug ("connection to PIN entry established\n"); rc = assuan_transact (entry_ctx, diff --git a/agent/call-scd.c b/agent/call-scd.c index ade7ef1b9..6cd582546 100644 --- a/agent/call-scd.c +++ b/agent/call-scd.c @@ -366,7 +366,7 @@ start_scd (ctrl_t ctrl) { memcpy (socket_name, databuf, datalen); socket_name[datalen] = 0; - if (DBG_ASSUAN) + if (DBG_IPC) log_debug ("additional connections at '%s'\n", socket_name); } } diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index 6e1c76e20..740af7551 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -435,11 +435,11 @@ set_debug (void) else if (!strcmp (debug_level, "none") || (numok && numlvl < 1)) opt.debug = 0; else if (!strcmp (debug_level, "basic") || (numok && numlvl <= 2)) - opt.debug = DBG_ASSUAN_VALUE; + opt.debug = DBG_IPC_VALUE; else if (!strcmp (debug_level, "advanced") || (numok && numlvl <= 5)) - opt.debug = DBG_ASSUAN_VALUE|DBG_COMMAND_VALUE; + opt.debug = DBG_IPC_VALUE|DBG_COMMAND_VALUE; else if (!strcmp (debug_level, "expert") || (numok && numlvl <= 8)) - opt.debug = (DBG_ASSUAN_VALUE|DBG_COMMAND_VALUE + opt.debug = (DBG_IPC_VALUE|DBG_COMMAND_VALUE |DBG_CACHE_VALUE); else if (!strcmp (debug_level, "guru") || numok) { @@ -478,7 +478,7 @@ set_debug (void) (opt.debug & DBG_CACHE_VALUE )? " cache":"", (opt.debug & DBG_MEMSTAT_VALUE)? " memstat":"", (opt.debug & DBG_HASHING_VALUE)? " hashing":"", - (opt.debug & DBG_ASSUAN_VALUE )? " assuan":""); + (opt.debug & DBG_IPC_VALUE )? " ipc":""); } @@ -1952,7 +1952,7 @@ putty_message_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) if (!cds->cbData || mapfile[cds->cbData - 1]) return 0; /* Ignore empty and non-properly terminated strings. */ - if (DBG_ASSUAN) + if (DBG_IPC) { npth_protect (); log_debug ("ssh map file '%s'", mapfile); @@ -1960,7 +1960,7 @@ putty_message_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) } maphd = OpenFileMapping (FILE_MAP_ALL_ACCESS, FALSE, mapfile); - if (DBG_ASSUAN) + if (DBG_IPC) { npth_protect (); log_debug ("ssh map handle %p\n", maphd); @@ -1989,7 +1989,7 @@ putty_message_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) goto leave; } - if (DBG_ASSUAN) + if (DBG_IPC) { char *sidstr; @@ -2010,7 +2010,7 @@ putty_message_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) } data = MapViewOfFile (maphd, FILE_MAP_ALL_ACCESS, 0, 0, 0); - if (DBG_ASSUAN) + if (DBG_IPC) log_debug ("ssh IPC buffer at %p\n", data); if (!data) goto leave; |