diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-02-18 00:29:17 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-02-18 00:29:17 +0800 |
commit | c2f2f2b8170465103ed582cfe317ea91824c2107 (patch) | |
tree | 2cbef71ce39913345d93806d338eb343b4c843d1 /cli-auth.c | |
parent | c8d852caf646d060babd4be9d074caee51c5aead (diff) |
rename some options and move some to sysoptions.h
Diffstat (limited to 'cli-auth.c')
-rw-r--r-- | cli-auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |