]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/cert.h
Rename all types and functions to use cupsd prefix.
[thirdparty/cups.git] / scheduler / cert.h
CommitLineData
a4ad3a11 1/*
c9d3f842 2 * "$Id$"
a4ad3a11 3 *
4 * Authentication certificate definitions for the Common UNIX
5 * Printing System (CUPS).
6 *
c9d3f842 7 * Copyright 1997-2005 by Easy Software Products.
a4ad3a11 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
bcd9e019 19 * Hollywood, Maryland 20636 USA
a4ad3a11 20 *
9639c4de 21 * Voice: (301) 373-9600
a4ad3a11 22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
24 */
25
26/*
27 * Certificate structure...
28 */
29
589eb420 30typedef struct cupsd_cert_s
a4ad3a11 31{
589eb420 32 struct cupsd_cert_s *next; /* Next certificate in list */
a4ad3a11 33 int pid; /* Process ID (0 for root certificate) */
34 char certificate[33];/* 32 hex characters, or 128 bits */
83e740a5 35 char username[33]; /* Authenticated username */
589eb420 36} cupsd_cert_t;
a4ad3a11 37
38
39/*
40 * Globals...
41 */
42
589eb420 43VAR cupsd_cert_t *Certs; /* List of certificates */
a4ad3a11 44VAR time_t RootCertTime; /* Root certificate update time */
45
46
47/*
48 * Prototypes...
49 */
50
589eb420 51extern void cupsdAddCert(int pid, const char *username);
52extern void cupsdDeleteCert(int pid);
53extern void cupsdDeleteAllCerts(void);
54extern const char *cupsdFindCert(const char *certificate);
55extern void cupsdInitCerts(void);
a4ad3a11 56
57
58/*
c9d3f842 59 * End of "$Id$".
a4ad3a11 60 */