comparison cli-authpasswd.c @ 165:0cfba3034be5

Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place
author Matt Johnston <matt@ucc.asn.au>
date Sun, 02 Jan 2005 20:25:56 +0000
parents e3adf4cf5465
children 257f09a63dab
comparison
equal deleted inserted replaced
161:b9d3f725e00b 165:0cfba3034be5
31 31
32 #ifdef ENABLE_CLI_PASSWORD_AUTH 32 #ifdef ENABLE_CLI_PASSWORD_AUTH
33 int cli_auth_password() { 33 int cli_auth_password() {
34 34
35 char* password = NULL; 35 char* password = NULL;
36 TRACE(("enter cli_auth_password")); 36 TRACE(("enter cli_auth_password"))
37 37
38 CHECKCLEARTOWRITE(); 38 CHECKCLEARTOWRITE();
39 password = getpass("Password: "); 39 password = getpass("Password: ");
40 40
41 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST); 41 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST);
54 buf_putstring(ses.writepayload, password, strlen(password)); 54 buf_putstring(ses.writepayload, password, strlen(password));
55 55
56 encrypt_packet(); 56 encrypt_packet();
57 m_burn(password, strlen(password)); 57 m_burn(password, strlen(password));
58 58
59 TRACE(("leave cli_auth_password")); 59 TRACE(("leave cli_auth_password"))
60 return 1; /* Password auth can always be tried */ 60 return 1; /* Password auth can always be tried */
61 61
62 } 62 }
63 #endif 63 #endif