comparison options.h @ 1158:ef67b57fe438

fix default build when getpass() is unavailable if the system doesn't support getpass, we still default on the options that require it which causes a build failure. instead, only default enable these when getpass is available.
author Mike Frysinger <vapier@gentoo.org>
date Wed, 21 Oct 2015 22:48:15 +0800
parents 14854ea32d2c
children f567a4152c14
comparison
equal deleted inserted replaced
1157:14854ea32d2c 1158:ef67b57fe438
218 * authorized_keys file into account */ 218 * authorized_keys file into account */
219 #ifdef ENABLE_SVR_PUBKEY_AUTH 219 #ifdef ENABLE_SVR_PUBKEY_AUTH
220 #define ENABLE_SVR_PUBKEY_OPTIONS 220 #define ENABLE_SVR_PUBKEY_OPTIONS
221 #endif 221 #endif
222 222
223 /* This requires getpass. */
224 #ifdef HAVE_GETPASS
223 #define ENABLE_CLI_PASSWORD_AUTH 225 #define ENABLE_CLI_PASSWORD_AUTH
226 #define ENABLE_CLI_INTERACT_AUTH
227 #endif
224 #define ENABLE_CLI_PUBKEY_AUTH 228 #define ENABLE_CLI_PUBKEY_AUTH
225 #define ENABLE_CLI_INTERACT_AUTH
226 229
227 /* A default argument for dbclient -i <privatekey>. 230 /* A default argument for dbclient -i <privatekey>.
228 Homedir is prepended unless path begins with / */ 231 Homedir is prepended unless path begins with / */
229 #define DROPBEAR_DEFAULT_CLI_AUTHKEY ".ssh/id_dropbear" 232 #define DROPBEAR_DEFAULT_CLI_AUTHKEY ".ssh/id_dropbear"
230 233