/* A planck box's dropbear started per connection by PID 1 (::listen:22 ... dropbear -i), ed25519 keys only: * build-dropbear.mjs --force --localoptions localoptions-inetd-ed25519.h [--localoptions /dropbear-localoptions.h] * Every line removes code such a box cannot reach. The clients are OpenSSH on the workstations. Used by the svn box * and the log box; a box adds only what is its own (the svn box: the svn user's PATH). */ /* PID 1 holds port 22 and starts `dropbear -i` per connection: no listener, no fork per client, no re-exec. */ #undef NON_INETD_MODE #define NON_INETD_MODE 0 #undef DROPBEAR_REEXEC #define DROPBEAR_REEXEC 0 /* Keys: every key on this box is ed25519 (the host key, authorized_keys of root and svn). No RSA, no ECDSA, no * FIDO keys: with them goes the big-number arithmetic. A person with an RSA key gets an ed25519 one. */ #undef DROPBEAR_RSA #define DROPBEAR_RSA 0 #undef DROPBEAR_ECDSA #define DROPBEAR_ECDSA 0 #undef DROPBEAR_SK_KEYS #define DROPBEAR_SK_KEYS 0 /* Key exchange: curve25519 only (every OpenSSH since 6.5). No finite-field DH, no NIST ECDH, no post-quantum hybrids. */ #undef DROPBEAR_DH_GROUP14_SHA256 #define DROPBEAR_DH_GROUP14_SHA256 0 #undef DROPBEAR_ECDH #define DROPBEAR_ECDH 0 #undef DROPBEAR_SNTRUP761 #define DROPBEAR_SNTRUP761 0 #undef DROPBEAR_MLKEM768 #define DROPBEAR_MLKEM768 0 /* Cipher: chacha20-poly1305 only (it carries its own MAC). No AES, so no CTR mode. */ #undef DROPBEAR_AES128 #define DROPBEAR_AES128 0 #undef DROPBEAR_AES256 #define DROPBEAR_AES256 0 #undef DROPBEAR_ENABLE_CTR_MODE #define DROPBEAR_ENABLE_CTR_MODE 0 /* No sftp subsystem (there is no sftp-server on the box). */ #undef DROPBEAR_SFTPSERVER #define DROPBEAR_SFTPSERVER 0 /* The applets come from busybox itself (its standalone shell runs them without links); a command typed by its bare * name that is not an applet is looked up in root's bin. A box with a login user adds its DEFAULT_PATH. */ #undef DEFAULT_ROOT_PATH #define DEFAULT_ROOT_PATH "/root/bin"