/*1* Authentication certificate definitions for the CUPS scheduler.2*3* Copyright 2007-2012 by Apple Inc.4* Copyright 1997-2005 by Easy Software Products.5*6* Licensed under Apache License v2.0. See the file "LICENSE" for more information.7*/89/*10* Certificate structure...11*/1213typedef struct cupsd_cert_s14{15struct cupsd_cert_s *next; /* Next certificate in list */16int pid; /* Process ID (0 for root certificate) */17char certificate[33]; /* 32 hex characters, or 128 bits */18char username[33]; /* Authenticated username */19int type; /* AuthType for username */20} cupsd_cert_t;212223/*24* Globals...25*/2627VAR cupsd_cert_t *Certs /* List of certificates */28VALUE(NULL);29VAR time_t RootCertTime /* Root certificate update time */30VALUE(0);313233/*34* Prototypes...35*/3637extern void cupsdAddCert(int pid, const char *username, int type);38extern void cupsdDeleteCert(int pid);39extern void cupsdDeleteAllCerts(void);40extern cupsd_cert_t *cupsdFindCert(const char *certificate);41extern void cupsdInitCerts(void);424344