mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Rename DBG_ASSUAN to DBG_IPC and add separate DBG_EXTPROG.
* g10/options.h (DBG_EXTPROG_VALUE): Separate from DBG_IPC_VALUE.
This commit is contained in:
parent
2f099eb62a
commit
24a75201da
19 changed files with 47 additions and 53 deletions
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue