comparison cli-auth.c @ 1461:fb90a5ba84e0

Merge pull request #49 from fperrad/20170812_lint Some linting, const parameters
author Matt Johnston <matt@ucc.asn.au>
date Thu, 25 Jan 2018 21:55:25 +0800
parents 06d52bcb8094
children 2d450c1056e3
comparison
equal deleted inserted replaced
1454:ef310db5ccec 1461:fb90a5ba84e0
329 } 329 }
330 330
331 #if DROPBEAR_CLI_PASSWORD_AUTH || DROPBEAR_CLI_INTERACT_AUTH 331 #if DROPBEAR_CLI_PASSWORD_AUTH || DROPBEAR_CLI_INTERACT_AUTH
332 /* A helper for getpass() that exits if the user cancels. The returned 332 /* A helper for getpass() that exits if the user cancels. The returned
333 * password is statically allocated by getpass() */ 333 * password is statically allocated by getpass() */
334 char* getpass_or_cancel(char* prompt) 334 char* getpass_or_cancel(const char* prompt)
335 { 335 {
336 char* password = NULL; 336 char* password = NULL;
337 337
338 #ifdef DROPBEAR_PASSWORD_ENV 338 #ifdef DROPBEAR_PASSWORD_ENV
339 /* Password provided in an environment var */ 339 /* Password provided in an environment var */