]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/cert.h
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / scheduler / cert.h
1 /*
2 * "$Id: cert.h 177 2006-06-21 00:20:03Z jlovell $"
3 *
4 * Authentication certificate definitions for the Common UNIX
5 * Printing System (CUPS).
6 *
7 * Copyright 1997-2005 by Easy Software Products.
8 *
9 * These coded instructions, statements, and computer programs are the
10 * property of Easy Software Products and are protected by Federal
11 * copyright law. Distribution and use rights are outlined in the file
12 * "LICENSE.txt" which should have been included with this file. If this
13 * file is missing or damaged please contact Easy Software Products
14 * at:
15 *
16 * Attn: CUPS Licensing Information
17 * Easy Software Products
18 * 44141 Airport View Drive, Suite 204
19 * Hollywood, Maryland 20636 USA
20 *
21 * Voice: (301) 373-9600
22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
24 */
25
26 /*
27 * Certificate structure...
28 */
29
30 typedef struct cupsd_cert_s
31 {
32 struct cupsd_cert_s *next; /* Next certificate in list */
33 int pid; /* Process ID (0 for root certificate) */
34 char certificate[33]; /* 32 hex characters, or 128 bits */
35 char username[33]; /* Authenticated username */
36 } cupsd_cert_t;
37
38
39 /*
40 * Globals...
41 */
42
43 VAR cupsd_cert_t *Certs; /* List of certificates */
44 VAR time_t RootCertTime; /* Root certificate update time */
45
46
47 /*
48 * Prototypes...
49 */
50
51 extern void cupsdAddCert(int pid, const char *username);
52 extern void cupsdDeleteCert(int pid);
53 extern void cupsdDeleteAllCerts(void);
54 extern const char *cupsdFindCert(const char *certificate);
55 extern void cupsdInitCerts(void);
56
57
58 /*
59 * End of "$Id: cert.h 177 2006-06-21 00:20:03Z jlovell $".
60 */