diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-12 18:31:40 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-13 09:07:03 +0300 |
commit | 9f659a60b0bf8cdc470d45719df8e9864c454982 (patch) | |
tree | 81233e1c1451976353e3df956fc9d321c9ab23f7 | |
parent | 1689be3a275dd8b4bb26c2f8501bd6050ac17e98 (diff) | |
download | libmicrohttpd-9f659a60b0bf8cdc470d45719df8e9864c454982.tar.gz libmicrohttpd-9f659a60b0bf8cdc470d45719df8e9864c454982.zip |
daemon: added reporting of the position of problem in priorities string
-rw-r--r-- | src/microhttpd/daemon.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 35405f9f..8fb64410 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -6427,16 +6427,19 @@ parse_options_va (struct MHD_Daemon *daemon, | |||
6427 | if (MHD_OPTION_HTTPS_PRIORITIES == opt) | 6427 | if (MHD_OPTION_HTTPS_PRIORITIES == opt) |
6428 | { | 6428 | { |
6429 | int init_res; | 6429 | int init_res; |
6430 | const char *err_pos; | ||
6430 | init_res = gnutls_priority_init (&daemon->priority_cache, | 6431 | init_res = gnutls_priority_init (&daemon->priority_cache, |
6431 | pstr, | 6432 | pstr, |
6432 | NULL); | 6433 | &err_pos); |
6433 | if (GNUTLS_E_SUCCESS != init_res) | 6434 | if (GNUTLS_E_SUCCESS != init_res) |
6434 | { | 6435 | { |
6435 | #ifdef HAVE_MESSAGES | 6436 | #ifdef HAVE_MESSAGES |
6436 | MHD_DLOG (daemon, | 6437 | MHD_DLOG (daemon, |
6437 | _ ("Setting priorities to `%s' failed: %s\n"), | 6438 | _ ("Setting priorities to '%s' failed: %s " \ |
6439 | "The problematic part starts at: %s\n"), | ||
6438 | pstr, | 6440 | pstr, |
6439 | gnutls_strerror (init_res)); | 6441 | gnutls_strerror (init_res), |
6442 | err_pos); | ||
6440 | #endif | 6443 | #endif |
6441 | daemon->priority_cache = NULL; | 6444 | daemon->priority_cache = NULL; |
6442 | return MHD_NO; | 6445 | return MHD_NO; |