diff options
author | Werner Koch <[email protected]> | 2015-02-13 10:37:17 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-02-13 10:37:17 +0000 |
commit | cb2ee2dc50ae2f15022db38214bd820dbea93aaa (patch) | |
tree | 87c1f2671d844e5131c50fde8733c4d23ff05982 | |
parent | Use inline functions to convert buffer data to scalars. (diff) | |
download | gnupg-cb2ee2dc50ae2f15022db38214bd820dbea93aaa.tar.gz gnupg-cb2ee2dc50ae2f15022db38214bd820dbea93aaa.zip |
keyserver: Show log prefix when not build with cURL.
* keyserver/ksutil.c (init_ks_options) [!HAVE_LIBCURL]: Set logging
prefix.
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | keyserver/ksutil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/keyserver/ksutil.c b/keyserver/ksutil.c index 7231d0a0a..0ba09cd12 100644 --- a/keyserver/ksutil.c +++ b/keyserver/ksutil.c @@ -112,6 +112,12 @@ init_ks_options(void) { struct ks_options *opt; +#ifndef HAVE_LIBCURL + /* Without cURL we use our own HTTP module which uses our logging + subsystem. Thus we need to init that. */ + log_set_prefix ("gpgkeys", JNLIB_LOG_WITH_PREFIX); +#endif /*!HAVE_LIBCURL*/ + opt=calloc(1,sizeof(struct ks_options)); if(opt) |