aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/dropbear/patches/901-bundled-libs-cflags.patch
blob: 2432b4ef72eae73f55575014284bdeae6562f18b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--- a/libtomcrypt/makefile_include.mk
+++ b/libtomcrypt/makefile_include.mk
@@ -94,6 +94,13 @@ endif
 
 LTC_CFLAGS += -Wno-type-limits
 
+ifdef OPENWRT_BUILD
+  ifeq (-Os,$(filter -Os,$(CFLAGS)))
+    LTC_CFLAGS += -DLTC_SMALL_CODE
+  endif
+else
+  ### ! OPENWRT_BUILD
+
 ifdef LTC_DEBUG
 $(info Debug build)
 # compile for DEBUGGING (required for ccmalloc checking!!!)
@@ -121,6 +128,9 @@ endif
 endif # COMPILE_SMALL
 endif # COMPILE_DEBUG
 
+  ### ! OPENWRT_BUILD
+endif
+
 
 ifneq ($(findstring clang,$(CC)),)
 LTC_CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare -Wno-builtin-requires-header -Wno-missing-field-initializers
--- a/libtommath/makefile_include.mk
+++ b/libtommath/makefile_include.mk
@@ -70,6 +70,9 @@ else
 LTM_CFLAGS += -Wsystem-headers
 endif
 
+ifndef OPENWRT_BUILD
+  ### ! OPENWRT_BUILD
+
 ifdef COMPILE_DEBUG
 #debug
 LTM_CFLAGS += -g3
@@ -90,6 +93,9 @@ endif
 
 endif # COMPILE_SIZE
 
+  ### ! OPENWRT_BUILD
+endif
+
 ifneq ($(findstring clang,$(CC)),)
 LTM_CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare -Wno-builtin-requires-header
 endif
c | 2 +- source3/lib/util_cmdline.c | 3 +++ source3/libsmb/clidfs.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) --- a/libgpo/gpo_fetch.c +++ b/libgpo/gpo_fetch.c @@ -151,7 +151,7 @@ static NTSTATUS gpo_connect_server(ADS_S ads->auth.password, CLI_FULL_CONNECTION_USE_KERBEROS | CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS, - Undefined); + Required); if (!NT_STATUS_IS_OK(result)) { DEBUG(10,("check_refresh_gpo: " "failed to connect: %s\n", --- a/source3/lib/util_cmdline.c +++ b/source3/lib/util_cmdline.c @@ -122,6 +122,9 @@ bool set_cmdline_auth_info_signing_state int get_cmdline_auth_info_signing_state(const struct user_auth_info *auth_info) { + if (auth_info->smb_encrypt) { + return Required; + } return auth_info->signing_state; } --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -202,7 +202,9 @@ static struct cli_state *do_connect(TALL /* If a password was not supplied then * try again with a null username. */ if (password[0] || !username[0] || + force_encrypt || client_is_signing_mandatory(c) || get_cmdline_auth_info_use_kerberos(auth_info) || + get_cmdline_auth_info_use_ccache(auth_info) || !NT_STATUS_IS_OK(cli_session_setup(c, "", "", 0, "", 0,