mirror of
https://github.com/curl/curl.git
synced 2026-08-26 22:34:45 +03:00
lib: make SMB support opt-in
The SMB protocol has weak security and is rarely used these days. Note that SMB also requires NTLM enabled. Closes #20846
This commit is contained in:
parent
06a83340b1
commit
6393103b99
12 changed files with 31 additions and 34 deletions
|
|
@ -25,7 +25,7 @@
|
|||
#include "curl_setup.h"
|
||||
#include "urldata.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_SMB) && defined(USE_CURL_NTLM_CORE)
|
||||
#if defined(CURL_ENABLE_SMB) && defined(USE_CURL_NTLM_CORE)
|
||||
|
||||
#ifdef HAVE_ARPA_INET_H
|
||||
#include <arpa/inet.h> /* for htons() */
|
||||
|
|
@ -1228,4 +1228,4 @@ const struct Curl_protocol Curl_protocol_smb = {
|
|||
ZERO_NULL, /* follow */
|
||||
};
|
||||
|
||||
#endif /* CURL_DISABLE_SMB && USE_CURL_NTLM_CORE && SIZEOF_CURL_OFF_T > 4 */
|
||||
#endif /* CURL_ENABLE_SMB && USE_CURL_NTLM_CORE && SIZEOF_CURL_OFF_T > 4 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue