summaryrefslogtreecommitdiff
path: root/scheduler/cert.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2013-01-10 17:01:44 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2013-01-10 17:01:44 +0000
commit0fa6c7fa54164ee70ee9ccfa936b889a637d5ecd (patch)
treed84095ec3813ddd6d09ac71499ab00df3f9450f2 /scheduler/cert.c
parentc1420c8744235de1249c34b956b7c11ccafd659d (diff)
downloadcups-0fa6c7fa54164ee70ee9ccfa936b889a637d5ecd.tar.gz
Merge changes from CUPS 1.7svn-r10791.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@4120 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'scheduler/cert.c')
-rw-r--r--scheduler/cert.c28
1 files changed, 5 insertions, 23 deletions
diff --git a/scheduler/cert.c b/scheduler/cert.c
index a25f3092a..fa956034a 100644
--- a/scheduler/cert.c
+++ b/scheduler/cert.c
@@ -3,7 +3,7 @@
*
* Authentication certificate routines for the CUPS scheduler.
*
- * Copyright 2007-2011 by Apple Inc.
+ * Copyright 2007-2012 by Apple Inc.
* Copyright 1997-2006 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
@@ -42,7 +42,7 @@
void
cupsdAddCert(int pid, /* I - Process ID */
const char *username, /* I - Username */
- void *ccache) /* I - Kerberos credentials or NULL */
+ int type) /* I - AuthType for username */
{
int i; /* Looping var */
cupsd_cert_t *cert; /* Current certificate */
@@ -66,7 +66,8 @@ cupsdAddCert(int pid, /* I - Process ID */
* Fill in the certificate information...
*/
- cert->pid = pid;
+ cert->pid = pid;
+ cert->type = type;
strlcpy(cert->username, username, sizeof(cert->username));
for (i = 0; i < 32; i ++)
@@ -260,16 +261,6 @@ cupsdAddCert(int pid, /* I - Process ID */
close(fd);
/*
- * Add Kerberos credentials as needed...
- */
-
-#ifdef HAVE_GSSAPI
- cert->ccache = (krb5_ccache)ccache;
-#else
- (void)ccache;
-#endif /* HAVE_GSSAPI */
-
- /*
* Insert the certificate at the front of the list...
*/
@@ -308,15 +299,6 @@ cupsdDeleteCert(int pid) /* I - Process ID */
else
prev->next = cert->next;
-#ifdef HAVE_GSSAPI
- /*
- * Release Kerberos credentials as needed...
- */
-
- if (cert->ccache)
- krb5_cc_destroy(KerberosContext, cert->ccache);
-#endif /* HAVE_GSSAPI */
-
free(cert);
/*
@@ -449,7 +431,7 @@ cupsdInitCerts(void)
*/
if (!RunUser)
- cupsdAddCert(0, "root", NULL);
+ cupsdAddCert(0, "root", cupsdDefaultAuthType());
}