mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-02 04:39:01 +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>
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
--- a/src/dbutil.c
|
|
+++ b/src/dbutil.c
|
|
@@ -66,6 +66,10 @@
|
|
#include "session.h"
|
|
#include "atomicio.h"
|
|
|
|
+#ifdef DROPBEAR_NUTTX
|
|
+int execv(const char *path, char * const argv[]);
|
|
+#endif
|
|
+
|
|
#define MAX_FMT 100
|
|
|
|
static void generic_dropbear_exit(int exitcode, const char* format,
|
|
--- a/src/signkey.h
|
|
+++ b/src/signkey.h
|
|
@@ -150,9 +150,9 @@
|
|
void buf_put_sign(buffer* buf, sign_key *key, enum signature_type sigtype, const buffer *data_buf);
|
|
#if DROPBEAR_SIGNKEY_VERIFY
|
|
int buf_verify(buffer * buf, sign_key *key, enum signature_type expect_sigtype, const buffer *data_buf);
|
|
int sk_buf_verify(buffer * buf, sign_key *key, enum signature_type expect_sigtype, const buffer *data_buf, char* app, unsigned int applen);
|
|
-char * sign_key_fingerprint(const unsigned char* keyblob, unsigned int keybloblen);
|
|
#endif
|
|
+char * sign_key_fingerprint(const unsigned char* keyblob, unsigned int keybloblen);
|
|
int cmp_base64_key(const unsigned char* keyblob, unsigned int keybloblen,
|
|
const unsigned char* algoname, unsigned int algolen,
|
|
const buffer * line, char ** fingerprint);
|