head	1.2;
access;
symbols
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2001.07.24.17.14.44;	author nectar;	state dead;
branches;
next	1.1;

1.1
date	2000.11.06.19.01.43;	author nectar;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Update pam_krb5 1.0 -> 1.0.1.
Change MASTER_SITES.

NB: This  versioning is  bogus.  Unfortunately,  there is  no official
release of  pam_krb5 yet,  but it has  substantially changed.   I made
this release based on what is in CVS.
@
text
@--- pam_krb5_acct.c.orig	Tue Jan  4 19:08:51 2000
+++ pam_krb5_acct.c	Mon Nov  6 10:21:49 2000
@@@@ -11,6 +11,7 @@@@
 #include <security/pam_appl.h>
 #include <security/pam_modules.h>
 #include <krb5.h>
+#include <com_err.h>
 #include "pam_krb5.h"
 
 /* A useful logging macro */
@@@@ -38,12 +39,12 @@@@
     }
 
     /* Get username */
-    if (pam_get_item(pamh, PAM_USER, (void **) &name)) {
+    if (pam_get_item(pamh, PAM_USER, (const void **) &name)) {
 	return PAM_PERM_DENIED;;
     }
 
     /* Get service name */
-    (void) pam_get_item(pamh, PAM_SERVICE, (void **) &service);
+    (void) pam_get_item(pamh, PAM_SERVICE, (const void **) &service);
     if (!service)
 	service = "unknown";
 
@@@@ -55,12 +56,12 @@@@
 	return PAM_SUCCESS;
     }
 
-    if (krb5_init_context(&pam_context)) {
+    if ((krbret = krb5_init_context(&pam_context)) != 0) {
 	DLOG("krb5_init_context()", error_message(krbret));
 	return PAM_PERM_DENIED;;
     }
 
-    if (krbret = krb5_cc_get_principal(pam_context, ccache, &princ)) {
+    if ((krbret = krb5_cc_get_principal(pam_context, ccache, &princ)) != 0) {
 	DLOG("krb5_cc_get_principal()", error_message(krbret));
 	pamret = PAM_PERM_DENIED;;
 	goto cleanup;
@


1.1
log
@A Pluggable Authentication Module for Kerberos 5.
@
text
@@

