comparison svr-authpam.c @ 1071:696205e3dc99 pam

Remove ATTRIB_NORETURN from session_loop() since it returns. The stack breaks pretty badly.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 17 Mar 2015 21:58:32 +0800
parents bae0b34bc059
children
comparison
equal deleted inserted replaced
1070:16379795f80b 1071:696205e3dc99
160 160
161 encrypt_packet(); 161 encrypt_packet();
162 } 162 }
163 163
164 /* PAM conversation function - for now we only handle one message */ 164 /* PAM conversation function - for now we only handle one message */
165 int 165 static int
166 pamConvFunc(int num_msg, 166 dropbear_pam_conv_func(int num_msg,
167 const struct pam_message **msgs, 167 const struct pam_message **msgs,
168 struct pam_response **respp, 168 struct pam_response **respp,
169 void *UNUSED(appdata_ptr)) { 169 void *UNUSED(appdata_ptr)) {
170 170
171 int ret = PAM_SYSTEM_ERR; 171 int ret = PAM_SYSTEM_ERR;
172 172
173 TRACE(("enter pamConvFunc")) 173 TRACE(("enter dropbear_pam_conv_func"))
174 174
175 if (ses.recursion_count != 1) { 175 if (ses.recursion_count != 1) {
176 dropbear_exit("PAM failure"); 176 dropbear_exit("PAM failure");
177 } 177 }
178 178
203 } 203 }
204 204
205 void svr_auth_pam() { 205 void svr_auth_pam() {
206 int rc; 206 int rc;
207 struct pam_conv pamConv = { 207 struct pam_conv pamConv = {
208 pamConvFunc, 208 dropbear_pam_conv_func,
209 NULL 209 NULL
210 }; 210 };
211 211
212 pam_handle_t* pamHandlep = NULL; 212 pam_handle_t* pamHandlep = NULL;
213 213