nuttx-apps/netutils/dropbear/patch/0003-allow-localoptions-to-override-tracking-malloc.patch
Felipe Moura fee2ddbf54 netutils/dropbear: add Dropbear SSH server port for NuttX
Integrated SSH daemon authenticating against FSUTILS_PASSWD, with an
ECDSA P-256 host key and an NSH session over a PTY per connection. Built
from the upstream Dropbear tarball (pinned commit) and patched for
NuttX, using Dropbear's bundled libtomcrypt for all crypto. setsid()
(apache/nuttx#19184) and link() now come from NuttX, not local stubs.

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
2026-06-27 08:42:00 -03:00

24 lines
718 B
Diff

--- a/src/sysoptions.h
+++ b/src/sysoptions.h
@@ -183,7 +183,9 @@ defined(__has_feature)
#define LTC_ECC521
#endif
-#define DROPBEAR_LTC_PRNG (DROPBEAR_ECC)
+#ifndef DROPBEAR_LTC_PRNG
+#define DROPBEAR_LTC_PRNG (DROPBEAR_ECC)
+#endif
/* RSA can be vulnerable to timing attacks which use the time required for
* signing to guess the private key. Blinding avoids this attack, though makes
@@ -436,7 +438,9 @@ defined(__has_feature)
#define DROPBEAR_CLIENT_TCP_FAST_OPEN 0
#endif
-#define DROPBEAR_TRACKING_MALLOC (DROPBEAR_FUZZ)
+#ifndef DROPBEAR_TRACKING_MALLOC
+#define DROPBEAR_TRACKING_MALLOC (DROPBEAR_FUZZ)
+#endif
/* Used to work around Memory Sanitizer false positives */
#if defined(__has_feature)