]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
bc44d920 | 2 | * "$Id: cert.h 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | * |
4 | * Authentication certificate definitions for the Common UNIX | |
5 | * Printing System (CUPS). | |
6 | * | |
bc44d920 | 7 | * Copyright 2007 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 | ||
21 | typedef 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 */ | |
27 | } cupsd_cert_t; | |
28 | ||
29 | ||
30 | /* | |
31 | * Globals... | |
32 | */ | |
33 | ||
34 | VAR cupsd_cert_t *Certs; /* List of certificates */ | |
35 | VAR time_t RootCertTime; /* Root certificate update time */ | |
36 | ||
37 | ||
38 | /* | |
39 | * Prototypes... | |
40 | */ | |
41 | ||
42 | extern void cupsdAddCert(int pid, const char *username); | |
43 | extern void cupsdDeleteCert(int pid); | |
44 | extern void cupsdDeleteAllCerts(void); | |
45 | extern const char *cupsdFindCert(const char *certificate); | |
46 | extern void cupsdInitCerts(void); | |
47 | ||
48 | ||
49 | /* | |
bc44d920 | 50 | * End of "$Id: cert.h 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 51 | */ |