comparison cli-auth.c @ 1252:3f4af834314d

Merge branch 'fperrad-20151231_indent'
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Mar 2016 21:41:22 +0800
parents c6346c63281b
children 750ec4ec4cbe
comparison
equal deleted inserted replaced
1248:739b3909c499 1252:3f4af834314d
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. */