diff 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
line wrap: on
line diff
--- a/svr-authpam.c	Mon Mar 16 22:10:30 2015 +0800
+++ b/svr-authpam.c	Tue Mar 17 21:58:32 2015 +0800
@@ -162,15 +162,15 @@
 }
 
 /* PAM conversation function - for now we only handle one message */
-int 
-pamConvFunc(int num_msg, 
+static int 
+dropbear_pam_conv_func(int num_msg, 
 		const struct pam_message **msgs,
 		struct pam_response **respp, 
 		void *UNUSED(appdata_ptr)) {
 
 	int ret = PAM_SYSTEM_ERR;
 
-	TRACE(("enter pamConvFunc"))
+	TRACE(("enter dropbear_pam_conv_func"))
 
 	if (ses.recursion_count != 1) {
 		dropbear_exit("PAM failure");
@@ -205,7 +205,7 @@
 void svr_auth_pam() {
 	int rc;
 	struct pam_conv pamConv = {
-		pamConvFunc,
+		dropbear_pam_conv_func,
 		NULL
 	};