Mercurial > dropbear
comparison auth.h @ 478:d4f32c3443ac dbclient-netcat-alike
propagate from branch 'au.asn.ucc.matt.dropbear' (head f21045c791002d81fc6b8dde6537ea481e513eb2)
to branch 'au.asn.ucc.matt.dropbear.dbclient-netcat-alike' (head d1f69334581dc4c35f9ca16aa5355074c9dd315d)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 14 Sep 2008 06:47:51 +0000 |
parents | 4317be8b7cf9 |
children | 52a644e7b8e1 |
comparison
equal
deleted
inserted
replaced
296:6b41e2cbf071 | 478:d4f32c3443ac |
---|---|
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 char* getpass_or_cancel(char* prompt); |
56 | 56 |
57 | 57 |
58 #define MAX_USERNAME_LEN 25 /* arbitrary for the moment */ | 58 #define MAX_USERNAME_LEN 25 /* arbitrary for the moment */ |
59 | 59 |
60 #define AUTH_TYPE_NONE 1 | 60 #define AUTH_TYPE_NONE 1 |
89 unsigned perm_warn : 1; /* Server only, set if bad permissions on | 89 unsigned perm_warn : 1; /* Server only, set if bad permissions on |
90 ~/.ssh/authorized_keys have already been | 90 ~/.ssh/authorized_keys have already been |
91 logged. */ | 91 logged. */ |
92 | 92 |
93 /* These are only used for the server */ | 93 /* These are only used for the server */ |
94 char *printableuser; /* stripped of control chars, used for logs etc */ | 94 uid_t pw_uid; |
95 struct passwd * pw; | 95 gid_t pw_gid; |
96 | 96 char *pw_dir; |
97 char *pw_shell; | |
98 char *pw_name; | |
99 char *pw_passwd; | |
97 }; | 100 }; |
98 | 101 |
99 struct SignKeyList; | 102 struct SignKeyList; |
100 /* A singly linked list of signing keys */ | 103 /* A singly linked list of signing keys */ |
101 struct SignKeyList { | 104 struct SignKeyList { |