diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index a96ec9ae..a75dd0c0 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -2317,8 +2317,10 @@ psk_gnutls_adapter (gnutls_session_t session, | |||
2317 | { | 2317 | { |
2318 | struct MHD_Connection *connection; | 2318 | struct MHD_Connection *connection; |
2319 | struct MHD_Daemon *daemon; | 2319 | struct MHD_Daemon *daemon; |
2320 | #if GNUTLS_VERSION_MAJOR >= 3 | ||
2320 | void *app_psk; | 2321 | void *app_psk; |
2321 | size_t app_psk_size; | 2322 | size_t app_psk_size; |
2323 | #endif /* GNUTLS_VERSION_MAJOR >= 3 */ | ||
2322 | 2324 | ||
2323 | connection = gnutls_session_get_ptr (session); | 2325 | connection = gnutls_session_get_ptr (session); |
2324 | if (NULL == connection) | 2326 | if (NULL == connection) |
@@ -2371,6 +2373,7 @@ psk_gnutls_adapter (gnutls_session_t session, | |||
2371 | free (app_psk); | 2373 | free (app_psk); |
2372 | return 0; | 2374 | return 0; |
2373 | #else | 2375 | #else |
2376 | (void) username; (void) key; /* Mute compiler warning */ | ||
2374 | #ifdef HAVE_MESSAGES | 2377 | #ifdef HAVE_MESSAGES |
2375 | MHD_DLOG (daemon, | 2378 | MHD_DLOG (daemon, |
2376 | _ ("PSK not supported by this server.\n")); | 2379 | _ ("PSK not supported by this server.\n")); |