comparison auth.h @ 268:475a818dd6e7

Cancel a dbclient password prompt if the user presses ctrl-c. Enter still has to be pressed since glibc blocks ctrl-c in getpass()
author Matt Johnston <matt@ucc.asn.au>
date Sun, 15 Jan 2006 06:43:24 +0000
parents efbaf6b03837
children 79bf1023cf11 8f3ec7c104d9
comparison
equal deleted inserted replaced
267:7ce577234a10 268:475a818dd6e7
50 void recv_msg_userauth_banner(); 50 void recv_msg_userauth_banner();
51 void cli_pubkeyfail(); 51 void cli_pubkeyfail();
52 void cli_auth_password(); 52 void cli_auth_password();
53 int cli_auth_pubkey(); 53 int cli_auth_pubkey();
54 void cli_auth_interactive(); 54 void cli_auth_interactive();
55 char* getpass_or_cancel();
55 56
56 57
57 #define MAX_USERNAME_LEN 25 /* arbitrary for the moment */ 58 #define MAX_USERNAME_LEN 25 /* arbitrary for the moment */
58 59
59 #define AUTH_TYPE_NONE 1 60 #define AUTH_TYPE_NONE 1