comparison cli-auth.c @ 1249:c6346c63281b

refactor indentation with hard tab
author Francois Perrad <francois.perrad@gadz.org>
date Thu, 31 Dec 2015 15:59:01 +0100
parents a8f4dade70e5
children 750ec4ec4cbe
comparison
equal deleted inserted replaced
1221:f7d565054e5f 1249:c6346c63281b
330 char* getpass_or_cancel(char* prompt) 330 char* getpass_or_cancel(char* prompt)
331 { 331 {
332 char* password = NULL; 332 char* password = NULL;
333 333
334 #ifdef DROPBEAR_PASSWORD_ENV 334 #ifdef DROPBEAR_PASSWORD_ENV
335 /* Password provided in an environment var */ 335 /* Password provided in an environment var */
336 password = getenv(DROPBEAR_PASSWORD_ENV); 336 password = getenv(DROPBEAR_PASSWORD_ENV);
337 if (password) 337 if (password)
338 { 338 {
339 return password; 339 return password;
340 } 340 }
341 #endif 341 #endif
342 342
343 password = getpass(prompt); 343 password = getpass(prompt);
344 344
345 /* 0x03 is a ctrl-c character in the buffer. */ 345 /* 0x03 is a ctrl-c character in the buffer. */