summaryrefslogtreecommitdiff
path: root/cli-auth.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-02-18 00:29:17 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-02-18 00:29:17 +0800
commitbd8edf377810b02b77077f06ed8733943d771a1d (patch)
tree28e74472f5ff66a45c2d1f3af7a8ac61ff38ff1e /cli-auth.c
parent3b433447f9714eaae3010381cd2ff0b153d36818 (diff)
downloaddropbear-bd8edf377810b02b77077f06ed8733943d771a1d.tar.gz
rename some options and move some to sysoptions.h
Diffstat (limited to 'cli-auth.c')
-rw-r--r--cli-auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli-auth.c b/cli-auth.c
index bcc7281..2e509e5 100644
--- a/cli-auth.c
+++ b/cli-auth.c
@@ -60,7 +60,7 @@ void cli_auth_getmethods() {
*/
if (ses.keys->trans.algo_comp != DROPBEAR_COMP_ZLIB_DELAY) {
ses.authstate.authtypes = AUTH_TYPE_PUBKEY;
-#if DROPBEAR_USE_DROPBEAR_PASSWORD
+#if DROPBEAR_USE_PASSWORD_ENV
if (getenv(DROPBEAR_PASSWORD_ENV)) {
ses.authstate.authtypes |= AUTH_TYPE_PASSWORD | AUTH_TYPE_INTERACT;
}
@@ -337,7 +337,7 @@ char* getpass_or_cancel(const char* prompt)
{
char* password = NULL;
-#if DROPBEAR_USE_DROPBEAR_PASSWORD
+#if DROPBEAR_USE_PASSWORD_ENV
/* Password provided in an environment var */
password = getenv(DROPBEAR_PASSWORD_ENV);
if (password)