Mercurial > dropbear
comparison cli-auth.c @ 1459:06d52bcb8094
Pointer parameter could be declared as pointing to const
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Sat, 19 Aug 2017 17:16:13 +0200 |
parents | 6959c88c8f13 |
children | 2d450c1056e3 |
comparison
equal
deleted
inserted
replaced
1458:bdd3802c8ac6 | 1459:06d52bcb8094 |
---|---|
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 */ |