diff 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
line wrap: on
line diff
--- a/auth.h	Sat Mar 08 21:00:57 2014 +0800
+++ b/auth.h	Wed Mar 12 23:40:02 2014 +0800
@@ -40,6 +40,8 @@
 void svr_auth_password();
 void svr_auth_pubkey();
 void svr_auth_pam();
+/* For PAM/interactive auth */
+void recv_msg_userauth_info_response();
 
 #ifdef ENABLE_SVR_PUBKEY_OPTIONS
 int svr_pubkey_allows_agentfwd();
@@ -122,9 +124,14 @@
 #ifdef ENABLE_SVR_PUBKEY_OPTIONS
 	struct PubKeyOptions* pubkey_options;
 #endif
+
+#ifdef ENABLE_SVR_PAM_AUTH
+	int pam_status;
+	unsigned int pam_num_response;
+	struct pam_response ** pam_response;
+#endif
 };
 
-#ifdef ENABLE_SVR_PUBKEY_OPTIONS
 struct PubKeyOptions;
 struct PubKeyOptions {
 	/* Flags */
@@ -135,6 +142,5 @@
 	/* "command=" option. */
 	unsigned char * forced_command;
 };
-#endif
 
 #endif /* _AUTH_H_ */