]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/tls-darwin.h
Fix potential deadlock (OpenPrinting #243)
[thirdparty/cups.git] / cups / tls-darwin.h
CommitLineData
c669a17e
MS
1/*
2 * TLS support header for CUPS on macOS.
3 *
4 * Copyright © 2007-2019 by Apple Inc.
5 * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
6 *
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more
8 * information.
9 */
10
11/**** This file is included from tls-darwin.c ****/
12
13extern char **environ;
14
15#ifndef _SECURITY_VERSION_GREATER_THAN_57610_
16typedef CF_OPTIONS(uint32_t, SecKeyUsage) {
17 kSecKeyUsageAll = 0x7FFFFFFF
18};
19#endif /* !_SECURITY_VERSION_GREATER_THAN_57610_ */
20extern const void * kSecCSRChallengePassword;
21extern const void * kSecSubjectAltName;
22extern const void * kSecCertificateKeyUsage;
23extern const void * kSecCSRBasicContraintsPathLen;
24extern const void * kSecCertificateExtensions;
25extern const void * kSecCertificateExtensionsEncoded;
26extern const void * kSecOidCommonName;
27extern const void * kSecOidCountryName;
28extern const void * kSecOidStateProvinceName;
29extern const void * kSecOidLocalityName;
30extern const void * kSecOidOrganization;
31extern const void * kSecOidOrganizationalUnit;
32extern bool SecCertificateIsValid(SecCertificateRef certificate, CFAbsoluteTime verifyTime);
33extern CFAbsoluteTime SecCertificateNotValidAfter(SecCertificateRef certificate);
34extern SecCertificateRef SecGenerateSelfSignedCertificate(CFArrayRef subject, CFDictionaryRef parameters, SecKeyRef publicKey, SecKeyRef privateKey);
35extern SecIdentityRef SecIdentityCreate(CFAllocatorRef allocator, SecCertificateRef certificate, SecKeyRef privateKey);