mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
mhd_tls_funcs: fixed wrong return value type
This commit is contained in:
@@ -40,10 +40,14 @@ mhd_tls_is_backend_available (struct DaemonOptions *s)
|
||||
mhd_assert (MHD_TLS_BACKEND_NONE != s->tls);
|
||||
if (MHD_TLS_BACKEND_ANY == s->tls)
|
||||
return mhd_tls_gnu_is_inited_fine ()
|
||||
/* || mhd_tls_other_is_inited_fine() */;
|
||||
/* || mhd_tls_other_is_inited_fine() */ ?
|
||||
mhd_TLS_BACKEND_AVAIL_OK :
|
||||
mhd_TLS_BACKEND_AVAIL_NOT_AVAILABLE;
|
||||
#ifdef MHD_USE_GNUTLS
|
||||
if (MHD_TLS_BACKEND_GNUTLS == s->tls)
|
||||
return mhd_tls_gnu_is_inited_fine ();
|
||||
return mhd_tls_gnu_is_inited_fine () ?
|
||||
mhd_TLS_BACKEND_AVAIL_OK :
|
||||
mhd_TLS_BACKEND_AVAIL_NOT_AVAILABLE;
|
||||
#endif
|
||||
return false;
|
||||
return mhd_TLS_BACKEND_AVAIL_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user