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