summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-07-01 12:38:14 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-07-01 12:38:14 +1000
commite2ba9c2e83101eaae3c4e703d4978ff9c0f560c3 (patch)
tree2d9d88cdf1f5df5a0185529a284a5f4767841a5c /auth-pam.c
parent0a44d1ecf36455f7288a6f4349e676d922a46718 (diff)
- (dtucker) [auth-pam.c] Bug #705: Make arguments match PAM specs, fixes
warnings on compliant platforms. From paul.a.bolton at bt.com. ok djm@
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/auth-pam.c b/auth-pam.c
index cad89e14f..67f6ac0d8 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -47,7 +47,7 @@
47 47
48/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */ 48/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
49#include "includes.h" 49#include "includes.h"
50RCSID("$Id: auth-pam.c,v 1.108 2004/06/30 10:34:32 dtucker Exp $"); 50RCSID("$Id: auth-pam.c,v 1.109 2004/07/01 02:38:15 dtucker Exp $");
51 51
52#ifdef USE_PAM 52#ifdef USE_PAM
53#if defined(HAVE_SECURITY_PAM_APPL_H) 53#if defined(HAVE_SECURITY_PAM_APPL_H)
@@ -264,7 +264,7 @@ import_environments(Buffer *b)
264 * Conversation function for authentication thread. 264 * Conversation function for authentication thread.
265 */ 265 */
266static int 266static int
267sshpam_thread_conv(int n, const struct pam_message **msg, 267sshpam_thread_conv(int n, struct pam_message **msg,
268 struct pam_response **resp, void *data) 268 struct pam_response **resp, void *data)
269{ 269{
270 Buffer buffer; 270 Buffer buffer;
@@ -362,7 +362,7 @@ sshpam_thread(void *ctxtp)
362 u_int i; 362 u_int i;
363 const char *pam_user; 363 const char *pam_user;
364 364
365 pam_get_item(sshpam_handle, PAM_USER, (const void **)&pam_user); 365 pam_get_item(sshpam_handle, PAM_USER, (void **)&pam_user);
366 setproctitle("%s [pam]", pam_user); 366 setproctitle("%s [pam]", pam_user);
367 environ[0] = NULL; 367 environ[0] = NULL;
368#endif 368#endif
@@ -450,7 +450,7 @@ sshpam_thread_cleanup(void)
450} 450}
451 451
452static int 452static int
453sshpam_null_conv(int n, const struct pam_message **msg, 453sshpam_null_conv(int n, struct pam_message **msg,
454 struct pam_response **resp, void *data) 454 struct pam_response **resp, void *data)
455{ 455{
456 debug3("PAM: %s entering, %d messages", __func__, n); 456 debug3("PAM: %s entering, %d messages", __func__, n);
@@ -488,7 +488,7 @@ sshpam_init(Authctxt *authctxt)
488 if (sshpam_handle != NULL) { 488 if (sshpam_handle != NULL) {
489 /* We already have a PAM context; check if the user matches */ 489 /* We already have a PAM context; check if the user matches */
490 sshpam_err = pam_get_item(sshpam_handle, 490 sshpam_err = pam_get_item(sshpam_handle,
491 PAM_USER, (const void **)&pam_user); 491 PAM_USER, (void **)&pam_user);
492 if (sshpam_err == PAM_SUCCESS && strcmp(user, pam_user) == 0) 492 if (sshpam_err == PAM_SUCCESS && strcmp(user, pam_user) == 0)
493 return (0); 493 return (0);
494 pam_end(sshpam_handle, sshpam_err); 494 pam_end(sshpam_handle, sshpam_err);
@@ -786,7 +786,7 @@ do_pam_setcred(int init)
786} 786}
787 787
788static int 788static int
789sshpam_tty_conv(int n, const struct pam_message **msg, 789sshpam_tty_conv(int n, struct pam_message **msg,
790 struct pam_response **resp, void *data) 790 struct pam_response **resp, void *data)
791{ 791{
792 char input[PAM_MAX_MSG_SIZE]; 792 char input[PAM_MAX_MSG_SIZE];
@@ -863,7 +863,7 @@ do_pam_chauthtok(void)
863} 863}
864 864
865static int 865static int
866sshpam_store_conv(int n, const struct pam_message **msg, 866sshpam_store_conv(int n, struct pam_message **msg,
867 struct pam_response **resp, void *data) 867 struct pam_response **resp, void *data)
868{ 868{
869 struct pam_response *reply; 869 struct pam_response *reply;
@@ -978,7 +978,7 @@ free_pam_environment(char **env)
978 * display. 978 * display.
979 */ 979 */
980static int 980static int
981sshpam_passwd_conv(int n, const struct pam_message **msg, 981sshpam_passwd_conv(int n, struct pam_message **msg,
982 struct pam_response **resp, void *data) 982 struct pam_response **resp, void *data)
983{ 983{
984 struct pam_response *reply; 984 struct pam_response *reply;