diff cli-auth.c @ 1173:d734fe76b72f coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Mon, 23 Nov 2015 23:04:48 +0800
parents a8f4dade70e5
children c6346c63281b
line wrap: on
line diff
--- a/cli-auth.c	Fri Aug 07 21:26:03 2015 +0800
+++ b/cli-auth.c	Mon Nov 23 23:04:48 2015 +0800
@@ -324,6 +324,7 @@
 	return DROPBEAR_FAILURE;
 }
 
+#if defined(ENABLE_CLI_PASSWORD_AUTH) || defined(ENABLE_CLI_INTERACT_AUTH)
 /* A helper for getpass() that exits if the user cancels. The returned
  * password is statically allocated by getpass() */
 char* getpass_or_cancel(char* prompt)
@@ -347,3 +348,4 @@
 	}
 	return password;
 }
+#endif