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