nuttx-apps/netutils/dropbear/port/dropbear_utils.h
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

31 lines
1.1 KiB
C

/****************************************************************************
* apps/netutils/dropbear/port/dropbear_utils.h
*
* SPDX-License-Identifier: Apache-2.0
****************************************************************************/
#ifndef __APPS_NETUTILS_DROPBEAR_PORT_DROPBEAR_UTILS_H
#define __APPS_NETUTILS_DROPBEAR_PORT_DROPBEAR_UTILS_H
/****************************************************************************
* Included Files
****************************************************************************/
#include "config.h"
#include <stddef.h>
#include <stdint.h>
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
void dropbear_hex_encode(FAR char *dst, FAR const uint8_t *src,
size_t srclen);
int dropbear_hex_decode(FAR const char *src, size_t srclen,
FAR uint8_t *dst, size_t dstlen);
int dropbear_try_prepare_parent(FAR const char *path);
#endif /* __APPS_NETUTILS_DROPBEAR_PORT_DROPBEAR_UTILS_H */