mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-03 15:43:12 +00:00
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>
24 lines
718 B
Diff
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)
|