]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/cert.h
Merge changes from CUPS 1.4svn-r7696.
[thirdparty/cups.git] / scheduler / cert.h
CommitLineData
ef416fc2 1/*
75bd9771 2 * "$Id: cert.h 7383 2008-03-20 20:58:07Z mike $"
ef416fc2 3 *
4 * Authentication certificate definitions for the Common UNIX
5 * Printing System (CUPS).
6 *
5bd77a73 7 * Copyright 2007-2008 by Apple Inc.
ef416fc2 8 * Copyright 1997-2005 by Easy Software Products.
9 *
10 * These coded instructions, statements, and computer programs are the
bc44d920 11 * property of Apple Inc. and are protected by Federal copyright
12 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
13 * which should have been included with this file. If this file is
14 * file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 15 */
16
17/*
18 * Certificate structure...
19 */
20
21typedef struct cupsd_cert_s
22{
23 struct cupsd_cert_s *next; /* Next certificate in list */
24 int pid; /* Process ID (0 for root certificate) */
25 char certificate[33]; /* 32 hex characters, or 128 bits */
26 char username[33]; /* Authenticated username */
5bd77a73
MS
27#ifdef HAVE_GSSAPI
28 krb5_ccache ccache; /* Kerberos credential cache */
29#endif /* HAVE_GSSAPI */
ef416fc2 30} cupsd_cert_t;
31
32
33/*
34 * Globals...
35 */
36
ac884b6a
MS
37VAR cupsd_cert_t *Certs /* List of certificates */
38 VALUE(NULL);
39VAR time_t RootCertTime /* Root certificate update time */
40 VALUE(0);
ef416fc2 41
42
43/*
44 * Prototypes...
45 */
46
5bd77a73
MS
47extern void cupsdAddCert(int pid, const char *username,
48 void *ccache);
ef416fc2 49extern void cupsdDeleteCert(int pid);
50extern void cupsdDeleteAllCerts(void);
db0bd74a 51extern cupsd_cert_t *cupsdFindCert(const char *certificate);
ef416fc2 52extern void cupsdInitCerts(void);
53
54
55/*
75bd9771 56 * End of "$Id: cert.h 7383 2008-03-20 20:58:07Z mike $".
ef416fc2 57 */