Mercurial > dropbear
comparison auth.h @ 925:bae0b34bc059 pam
Better PAM through recursion
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 12 Mar 2014 23:40:02 +0800 |
parents | 8fe36617bf4e |
children | 73ea0dce9a57 |
comparison
equal
deleted
inserted
replaced
923:25b7ed9fe854 | 925:bae0b34bc059 |
---|---|
38 void send_msg_userauth_success(); | 38 void send_msg_userauth_success(); |
39 void send_msg_userauth_banner(buffer *msg); | 39 void send_msg_userauth_banner(buffer *msg); |
40 void svr_auth_password(); | 40 void svr_auth_password(); |
41 void svr_auth_pubkey(); | 41 void svr_auth_pubkey(); |
42 void svr_auth_pam(); | 42 void svr_auth_pam(); |
43 /* For PAM/interactive auth */ | |
44 void recv_msg_userauth_info_response(); | |
43 | 45 |
44 #ifdef ENABLE_SVR_PUBKEY_OPTIONS | 46 #ifdef ENABLE_SVR_PUBKEY_OPTIONS |
45 int svr_pubkey_allows_agentfwd(); | 47 int svr_pubkey_allows_agentfwd(); |
46 int svr_pubkey_allows_tcpfwd(); | 48 int svr_pubkey_allows_tcpfwd(); |
47 int svr_pubkey_allows_x11fwd(); | 49 int svr_pubkey_allows_x11fwd(); |
120 char *pw_name; | 122 char *pw_name; |
121 char *pw_passwd; | 123 char *pw_passwd; |
122 #ifdef ENABLE_SVR_PUBKEY_OPTIONS | 124 #ifdef ENABLE_SVR_PUBKEY_OPTIONS |
123 struct PubKeyOptions* pubkey_options; | 125 struct PubKeyOptions* pubkey_options; |
124 #endif | 126 #endif |
127 | |
128 #ifdef ENABLE_SVR_PAM_AUTH | |
129 int pam_status; | |
130 unsigned int pam_num_response; | |
131 struct pam_response ** pam_response; | |
132 #endif | |
125 }; | 133 }; |
126 | 134 |
127 #ifdef ENABLE_SVR_PUBKEY_OPTIONS | |
128 struct PubKeyOptions; | 135 struct PubKeyOptions; |
129 struct PubKeyOptions { | 136 struct PubKeyOptions { |
130 /* Flags */ | 137 /* Flags */ |
131 int no_port_forwarding_flag; | 138 int no_port_forwarding_flag; |
132 int no_agent_forwarding_flag; | 139 int no_agent_forwarding_flag; |
133 int no_x11_forwarding_flag; | 140 int no_x11_forwarding_flag; |
134 int no_pty_flag; | 141 int no_pty_flag; |
135 /* "command=" option. */ | 142 /* "command=" option. */ |
136 unsigned char * forced_command; | 143 unsigned char * forced_command; |
137 }; | 144 }; |
138 #endif | |
139 | 145 |
140 #endif /* _AUTH_H_ */ | 146 #endif /* _AUTH_H_ */ |