summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBegley Brothers Inc <begleybrothers@gmail.com>2020-07-09 17:51:07 +1000
committerBegley Brothers Inc <begleybrothers@gmail.com>2020-07-09 17:51:07 +1000
commit12f6b153afffb2abc955496958e5ae51cf428d85 (patch)
tree90e3843f7aac574e1111becb627aec5f943b60fb
parent8fc548ade2b33db631d11177d23f81d12e18b443 (diff)
downloaddropbear-12f6b153afffb2abc955496958e5ae51cf428d85.tar.gz
Default options comments, ignore localoptions.h
Also trim whitespaces. Signed-off-by: Begley Brothers Inc <begleybrothers@gmail.com>
-rw-r--r--.gitignore3
-rw-r--r--common-runopts.c11
-rw-r--r--default_options.h22
3 files changed, 20 insertions, 16 deletions
diff --git a/.gitignore b/.gitignore
index aac68b7..65b8e15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,9 +19,10 @@
/fuzzer-*.options
/scp
/scp-progress
-Makefile
config.h
default_options_guard.h
+localoptions.h
+Makefile
tags
.pytest*
*.pyc
diff --git a/common-runopts.c b/common-runopts.c
index 8473856..37f153c 100644
--- a/common-runopts.c
+++ b/common-runopts.c
@@ -1,19 +1,19 @@
/*
* Dropbear - a SSH2 server
- *
+ *
* Copyright (c) 2002,2003 Matt Johnston
* All rights reserved.
- *
+ *
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
- *
+ *
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -35,7 +35,7 @@ runopts opts; /* GLOBAL */
/* returns success or failure, and the keytype in *type. If we want
* to restrict the type, type can contain a type to return */
-int readhostkey(const char * filename, sign_key * hostkey,
+int readhostkey(const char * filename, sign_key * hostkey,
enum signkey_type *type) {
int ret = DROPBEAR_FAILURE;
@@ -116,4 +116,3 @@ void parse_recv_window(const char* recv_window_arg) {
}
}
-
diff --git a/default_options.h b/default_options.h
index b01c159..c577d57 100644
--- a/default_options.h
+++ b/default_options.h
@@ -6,7 +6,7 @@
default_options.h documents compile-time options, and provides default values.
Local customisation should be added to localoptions.h which is
-used if it exists in the build directory. Options defined there will override
+used if it exists in the build directory. Options defined there will override
any options in this file.
Options can also be defined with -DDROPBEAR_XXX=[0,1] in Makefile CFLAGS
@@ -78,7 +78,7 @@ IMPORTANT: Some options will require "make clean" after changes */
/* Note: Both DROPBEAR_CLI_PROXYCMD and DROPBEAR_CLI_NETCAT must be set to
* allow multihop dbclient connections */
-/* Allow using -J <proxycommand> to run the connection through a
+/* Allow using -J <proxycommand> to run the connection through a
pipe to a program, rather the normal TCP connection */
#define DROPBEAR_CLI_PROXYCMD 1
@@ -92,7 +92,7 @@ IMPORTANT: Some options will require "make clean" after changes */
/* Encryption - at least one required.
* AES128 should be enabled, some very old implementations might only
* support 3DES.
- * Including both AES keysize variants (128 and 256) will result in
+ * Including both AES keysize variants (128 and 256) will result in
* a minimal size increase */
#define DROPBEAR_AES128 1
#define DROPBEAR_AES256 1
@@ -127,17 +127,20 @@ IMPORTANT: Some options will require "make clean" after changes */
/* Hostkey/public key algorithms - at least one required, these are used
* for hostkey as well as for verifying signatures with pubkey auth.
* Removing either of these won't save very much space.
- * RSA is recommended
+ * RSA is recommended.
* DSS may be necessary to connect to some systems though
- is not recommended for new keys */
+ * is not recommended for new keys.
+ * See: RSA_PRIV_FILENAME and DSS_PRIV_FILENAME */
#define DROPBEAR_RSA 1
#define DROPBEAR_DSS 1
/* ECDSA is significantly faster than RSA or DSS. Compiling in ECC
* code (either ECDSA or ECDH) increases binary size - around 30kB
- * on x86-64 */
+ * on x86-64.
+ * See: ECDSA_PRIV_FILENAME */
#define DROPBEAR_ECDSA 1
/* Ed25519 is faster than ECDSA. Compiling in Ed25519 code increases
- binary size - around 7,5kB on x86-64 */
+ * binary size - around 7,5kB on x86-64.
+ * See: ED25519_PRIV_FILENAME */
#define DROPBEAR_ED25519 1
/* SK_ECDSA/SK_ED25519 allows u2f security keys for public key auth.
* This is currently server-only. */
@@ -217,7 +220,8 @@ group1 in Dropbear server too */
* You can't enable both PASSWORD and PAM. */
#define DROPBEAR_SVR_PAM_AUTH 0
-/* ~/.ssh/authorized_keys authentication */
+/* ~/.ssh/authorized_keys authentication.
+ * You must define DROPBEAR_SVR_PUBKEY_AUTH in order to use plugins. */
#define DROPBEAR_SVR_PUBKEY_AUTH 1
/* Whether to take public key options in
@@ -289,7 +293,7 @@ group1 in Dropbear server too */
/* If you want to enable running an sftp server (such as the one included with
- * OpenSSH), set the path below and set DROPBEAR_SFTPSERVER.
+ * OpenSSH), set the path below and set DROPBEAR_SFTPSERVER.
* The sftp-server program is not provided by Dropbear itself.
* Homedir is prepended if path begins with ~
*/