From 4feb081b420104d3e24fad51e32ea403f6d20e69 Mon Sep 17 00:00:00 2001 From: David Nadoba Date: Wed, 30 Nov 2022 11:28:42 +0100 Subject: [PATCH] Fix soundness File extension of the CONTRIBUTORS file is `.txt` not `.md`. Add missing license header to some files. --- Package.swift | 2 +- Sources/X509/Certificate.swift | 2 +- Sources/X509/CertificatePrivateKey.swift | 2 +- Sources/X509/CertificatePublicKey.swift | 2 +- Sources/X509/CertificateSerialNumber.swift | 2 +- Sources/X509/CertificateVersion.swift | 2 +- Sources/X509/DistinguishedName.swift | 2 +- .../X509/DistinguishedNameBuilder/CommonName.swift | 2 +- .../DistinguishedNameBuilder/CountryName.swift | 2 +- .../X509/DistinguishedNameBuilder/DNBuilder.swift | 2 +- .../DistinguishedNameBuilder/LocalityName.swift | 2 +- .../OrganizationName.swift | 2 +- .../OrganizationalUnitName.swift | 2 +- .../StateOrProvinceName.swift | 2 +- .../DistinguishedNameBuilder/StreetAddress.swift | 2 +- Sources/X509/Error.swift | 2 +- .../AuthorityInformationAccess.swift | 2 +- .../Extension Types/AuthorityKeyIdentifier.swift | 2 +- .../X509/Extension Types/BasicConstraints.swift | 2 +- .../X509/Extension Types/ExtendedKeyUsage.swift | 2 +- .../Extension Types/ExtensionIdentifiers.swift | 2 +- Sources/X509/Extension Types/KeyUsage.swift | 2 +- Sources/X509/Extension Types/NameConstraints.swift | 2 +- .../Extension Types/SubjectAlternativeName.swift | 2 +- .../Extension Types/SubjectKeyIdentifier.swift | 2 +- Sources/X509/Extension.swift | 2 +- Sources/X509/Extensions.swift | 2 +- Sources/X509/ExtensionsBuilder.swift | 2 +- Sources/X509/GeneralName.swift | 2 +- Sources/X509/OCSP/BasicOCSPResponse.swift | 2 +- Sources/X509/OCSP/DirectoryString.swift | 2 +- Sources/X509/OCSP/OCSPCertID.swift | 2 +- Sources/X509/OCSP/OCSPCertStatus.swift | 2 +- Sources/X509/OCSP/OCSPResponse.swift | 2 +- Sources/X509/OCSP/OCSPResponseBytes.swift | 2 +- Sources/X509/OCSP/OCSPResponseData.swift | 2 +- Sources/X509/OCSP/OCSPResponseStatus.swift | 2 +- Sources/X509/OCSP/OCSPSingleResponse.swift | 2 +- Sources/X509/RDNAttribute.swift | 2 +- Sources/X509/RelativeDistinguishedName.swift | 2 +- Sources/X509/Signature.swift | 2 +- Sources/X509/SignatureAlgorithm.swift | 2 +- Sources/X509/Verifier/CertificateStore.swift | 14 ++++++++++++++ Sources/X509/Verifier/UnverifiedChain.swift | 14 ++++++++++++++ Sources/X509/Verifier/Verifier.swift | 14 ++++++++++++++ Sources/X509/Verifier/VerifierPolicy.swift | 14 ++++++++++++++ .../X509/X509BaseTypes/AlgorithmIdentifier.swift | 2 +- .../X509/X509BaseTypes/SubjectPublicKeyInfo.swift | 2 +- Sources/X509/X509BaseTypes/TBSCertificate.swift | 2 +- Sources/X509/X509BaseTypes/Time.swift | 2 +- Sources/X509/X509BaseTypes/Validity.swift | 2 +- Tests/X509Tests/CertificateDERTests.swift | 2 +- Tests/X509Tests/CertificateTests.swift | 2 +- Tests/X509Tests/DistinguishedNameTests.swift | 2 +- Tests/X509Tests/ExtensionBuilderTests.swift | 2 +- Tests/X509Tests/OCSPTests.swift | 2 +- Tests/X509Tests/SignatureTests.swift | 2 +- Tests/X509Tests/TimeTests.swift | 2 +- 58 files changed, 110 insertions(+), 54 deletions(-) diff --git a/Package.swift b/Package.swift index ef6c500..00bef09 100644 --- a/Package.swift +++ b/Package.swift @@ -7,7 +7,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Certificate.swift b/Sources/X509/Certificate.swift index b67569f..371df8d 100644 --- a/Sources/X509/Certificate.swift +++ b/Sources/X509/Certificate.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/CertificatePrivateKey.swift b/Sources/X509/CertificatePrivateKey.swift index 0d5797f..0e76c57 100644 --- a/Sources/X509/CertificatePrivateKey.swift +++ b/Sources/X509/CertificatePrivateKey.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/CertificatePublicKey.swift b/Sources/X509/CertificatePublicKey.swift index e55d174..a25dcb4 100644 --- a/Sources/X509/CertificatePublicKey.swift +++ b/Sources/X509/CertificatePublicKey.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/CertificateSerialNumber.swift b/Sources/X509/CertificateSerialNumber.swift index d1b2b06..b51953f 100644 --- a/Sources/X509/CertificateSerialNumber.swift +++ b/Sources/X509/CertificateSerialNumber.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/CertificateVersion.swift b/Sources/X509/CertificateVersion.swift index b235bf0..26e65ae 100644 --- a/Sources/X509/CertificateVersion.swift +++ b/Sources/X509/CertificateVersion.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/DistinguishedName.swift b/Sources/X509/DistinguishedName.swift index 2d0f139..94adaf4 100644 --- a/Sources/X509/DistinguishedName.swift +++ b/Sources/X509/DistinguishedName.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/DistinguishedNameBuilder/CommonName.swift b/Sources/X509/DistinguishedNameBuilder/CommonName.swift index 81f90c0..af6e49c 100644 --- a/Sources/X509/DistinguishedNameBuilder/CommonName.swift +++ b/Sources/X509/DistinguishedNameBuilder/CommonName.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/DistinguishedNameBuilder/CountryName.swift b/Sources/X509/DistinguishedNameBuilder/CountryName.swift index 9678540..55fa4d7 100644 --- a/Sources/X509/DistinguishedNameBuilder/CountryName.swift +++ b/Sources/X509/DistinguishedNameBuilder/CountryName.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/DistinguishedNameBuilder/DNBuilder.swift b/Sources/X509/DistinguishedNameBuilder/DNBuilder.swift index 3715a0f..7fdb307 100644 --- a/Sources/X509/DistinguishedNameBuilder/DNBuilder.swift +++ b/Sources/X509/DistinguishedNameBuilder/DNBuilder.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/DistinguishedNameBuilder/LocalityName.swift b/Sources/X509/DistinguishedNameBuilder/LocalityName.swift index d990fc4..faa4224 100644 --- a/Sources/X509/DistinguishedNameBuilder/LocalityName.swift +++ b/Sources/X509/DistinguishedNameBuilder/LocalityName.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/DistinguishedNameBuilder/OrganizationName.swift b/Sources/X509/DistinguishedNameBuilder/OrganizationName.swift index 5f6c247..4cfad13 100644 --- a/Sources/X509/DistinguishedNameBuilder/OrganizationName.swift +++ b/Sources/X509/DistinguishedNameBuilder/OrganizationName.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/DistinguishedNameBuilder/OrganizationalUnitName.swift b/Sources/X509/DistinguishedNameBuilder/OrganizationalUnitName.swift index c3f8d94..133176c 100644 --- a/Sources/X509/DistinguishedNameBuilder/OrganizationalUnitName.swift +++ b/Sources/X509/DistinguishedNameBuilder/OrganizationalUnitName.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/DistinguishedNameBuilder/StateOrProvinceName.swift b/Sources/X509/DistinguishedNameBuilder/StateOrProvinceName.swift index 22bedd8..345ced4 100644 --- a/Sources/X509/DistinguishedNameBuilder/StateOrProvinceName.swift +++ b/Sources/X509/DistinguishedNameBuilder/StateOrProvinceName.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/DistinguishedNameBuilder/StreetAddress.swift b/Sources/X509/DistinguishedNameBuilder/StreetAddress.swift index 854f570..7bc9271 100644 --- a/Sources/X509/DistinguishedNameBuilder/StreetAddress.swift +++ b/Sources/X509/DistinguishedNameBuilder/StreetAddress.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Error.swift b/Sources/X509/Error.swift index b284690..030bf3b 100644 --- a/Sources/X509/Error.swift +++ b/Sources/X509/Error.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extension Types/AuthorityInformationAccess.swift b/Sources/X509/Extension Types/AuthorityInformationAccess.swift index 397f6ad..ecb83b0 100644 --- a/Sources/X509/Extension Types/AuthorityInformationAccess.swift +++ b/Sources/X509/Extension Types/AuthorityInformationAccess.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extension Types/AuthorityKeyIdentifier.swift b/Sources/X509/Extension Types/AuthorityKeyIdentifier.swift index ef10596..73c17d2 100644 --- a/Sources/X509/Extension Types/AuthorityKeyIdentifier.swift +++ b/Sources/X509/Extension Types/AuthorityKeyIdentifier.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extension Types/BasicConstraints.swift b/Sources/X509/Extension Types/BasicConstraints.swift index a555bab..285d529 100644 --- a/Sources/X509/Extension Types/BasicConstraints.swift +++ b/Sources/X509/Extension Types/BasicConstraints.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extension Types/ExtendedKeyUsage.swift b/Sources/X509/Extension Types/ExtendedKeyUsage.swift index a1c1936..a0c8284 100644 --- a/Sources/X509/Extension Types/ExtendedKeyUsage.swift +++ b/Sources/X509/Extension Types/ExtendedKeyUsage.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extension Types/ExtensionIdentifiers.swift b/Sources/X509/Extension Types/ExtensionIdentifiers.swift index aba34c7..f7f22be 100644 --- a/Sources/X509/Extension Types/ExtensionIdentifiers.swift +++ b/Sources/X509/Extension Types/ExtensionIdentifiers.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extension Types/KeyUsage.swift b/Sources/X509/Extension Types/KeyUsage.swift index b8acfe6..e4e3045 100644 --- a/Sources/X509/Extension Types/KeyUsage.swift +++ b/Sources/X509/Extension Types/KeyUsage.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extension Types/NameConstraints.swift b/Sources/X509/Extension Types/NameConstraints.swift index 76c9394..f7dd243 100644 --- a/Sources/X509/Extension Types/NameConstraints.swift +++ b/Sources/X509/Extension Types/NameConstraints.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extension Types/SubjectAlternativeName.swift b/Sources/X509/Extension Types/SubjectAlternativeName.swift index 924c0c9..a674521 100644 --- a/Sources/X509/Extension Types/SubjectAlternativeName.swift +++ b/Sources/X509/Extension Types/SubjectAlternativeName.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extension Types/SubjectKeyIdentifier.swift b/Sources/X509/Extension Types/SubjectKeyIdentifier.swift index 8b83d0f..16da975 100644 --- a/Sources/X509/Extension Types/SubjectKeyIdentifier.swift +++ b/Sources/X509/Extension Types/SubjectKeyIdentifier.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extension.swift b/Sources/X509/Extension.swift index 8be0b55..81ef507 100644 --- a/Sources/X509/Extension.swift +++ b/Sources/X509/Extension.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Extensions.swift b/Sources/X509/Extensions.swift index 827278f..a548817 100644 --- a/Sources/X509/Extensions.swift +++ b/Sources/X509/Extensions.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/ExtensionsBuilder.swift b/Sources/X509/ExtensionsBuilder.swift index 7db204f..3f41190 100644 --- a/Sources/X509/ExtensionsBuilder.swift +++ b/Sources/X509/ExtensionsBuilder.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/GeneralName.swift b/Sources/X509/GeneralName.swift index 8c46cc7..5b51565 100644 --- a/Sources/X509/GeneralName.swift +++ b/Sources/X509/GeneralName.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/OCSP/BasicOCSPResponse.swift b/Sources/X509/OCSP/BasicOCSPResponse.swift index a158691..367e368 100644 --- a/Sources/X509/OCSP/BasicOCSPResponse.swift +++ b/Sources/X509/OCSP/BasicOCSPResponse.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/OCSP/DirectoryString.swift b/Sources/X509/OCSP/DirectoryString.swift index 64421fa..2ff9d74 100644 --- a/Sources/X509/OCSP/DirectoryString.swift +++ b/Sources/X509/OCSP/DirectoryString.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/OCSP/OCSPCertID.swift b/Sources/X509/OCSP/OCSPCertID.swift index a4119f9..37172e2 100644 --- a/Sources/X509/OCSP/OCSPCertID.swift +++ b/Sources/X509/OCSP/OCSPCertID.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/OCSP/OCSPCertStatus.swift b/Sources/X509/OCSP/OCSPCertStatus.swift index e0c139d..9739a8d 100644 --- a/Sources/X509/OCSP/OCSPCertStatus.swift +++ b/Sources/X509/OCSP/OCSPCertStatus.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/OCSP/OCSPResponse.swift b/Sources/X509/OCSP/OCSPResponse.swift index 25d75e4..179b483 100644 --- a/Sources/X509/OCSP/OCSPResponse.swift +++ b/Sources/X509/OCSP/OCSPResponse.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/OCSP/OCSPResponseBytes.swift b/Sources/X509/OCSP/OCSPResponseBytes.swift index d6bf923..d5edc5c 100644 --- a/Sources/X509/OCSP/OCSPResponseBytes.swift +++ b/Sources/X509/OCSP/OCSPResponseBytes.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/OCSP/OCSPResponseData.swift b/Sources/X509/OCSP/OCSPResponseData.swift index fc984db..d8cb61d 100644 --- a/Sources/X509/OCSP/OCSPResponseData.swift +++ b/Sources/X509/OCSP/OCSPResponseData.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/OCSP/OCSPResponseStatus.swift b/Sources/X509/OCSP/OCSPResponseStatus.swift index 2d7d4cc..6981ab6 100644 --- a/Sources/X509/OCSP/OCSPResponseStatus.swift +++ b/Sources/X509/OCSP/OCSPResponseStatus.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/OCSP/OCSPSingleResponse.swift b/Sources/X509/OCSP/OCSPSingleResponse.swift index 6a229bc..5282230 100644 --- a/Sources/X509/OCSP/OCSPSingleResponse.swift +++ b/Sources/X509/OCSP/OCSPSingleResponse.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/RDNAttribute.swift b/Sources/X509/RDNAttribute.swift index b69bd02..17007a4 100644 --- a/Sources/X509/RDNAttribute.swift +++ b/Sources/X509/RDNAttribute.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/RelativeDistinguishedName.swift b/Sources/X509/RelativeDistinguishedName.swift index bba0cb0..b770fe0 100644 --- a/Sources/X509/RelativeDistinguishedName.swift +++ b/Sources/X509/RelativeDistinguishedName.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Signature.swift b/Sources/X509/Signature.swift index 990a7e7..8c658e9 100644 --- a/Sources/X509/Signature.swift +++ b/Sources/X509/Signature.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/SignatureAlgorithm.swift b/Sources/X509/SignatureAlgorithm.swift index a8c4066..727c9d4 100644 --- a/Sources/X509/SignatureAlgorithm.swift +++ b/Sources/X509/SignatureAlgorithm.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/Verifier/CertificateStore.swift b/Sources/X509/Verifier/CertificateStore.swift index 6cd5a00..6c5302d 100644 --- a/Sources/X509/Verifier/CertificateStore.swift +++ b/Sources/X509/Verifier/CertificateStore.swift @@ -1,3 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the SwiftCertificates open source project +// +// Copyright (c) 2022 Apple Inc. and the SwiftCertificates project authors +// Licensed under Apache License v2.0 +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors +// +// SPDX-License-Identifier: Apache-2.0 +// +//===----------------------------------------------------------------------===// + /// A collection of ``Certificate`` objects for use in a verifier. public struct CertificateStore: Sendable, Hashable { /// Stores the certificates, indexed by DistinguishedName. diff --git a/Sources/X509/Verifier/UnverifiedChain.swift b/Sources/X509/Verifier/UnverifiedChain.swift index da5be41..afb9f0b 100644 --- a/Sources/X509/Verifier/UnverifiedChain.swift +++ b/Sources/X509/Verifier/UnverifiedChain.swift @@ -1,3 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the SwiftCertificates open source project +// +// Copyright (c) 2022 Apple Inc. and the SwiftCertificates project authors +// Licensed under Apache License v2.0 +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors +// +// SPDX-License-Identifier: Apache-2.0 +// +//===----------------------------------------------------------------------===// + public struct UnverifiedCertificateChain: Sendable, Hashable { @usableFromInline var certificates: [Certificate] diff --git a/Sources/X509/Verifier/Verifier.swift b/Sources/X509/Verifier/Verifier.swift index d7915c7..000b09f 100644 --- a/Sources/X509/Verifier/Verifier.swift +++ b/Sources/X509/Verifier/Verifier.swift @@ -1,3 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the SwiftCertificates open source project +// +// Copyright (c) 2022 Apple Inc. and the SwiftCertificates project authors +// Licensed under Apache License v2.0 +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors +// +// SPDX-License-Identifier: Apache-2.0 +// +//===----------------------------------------------------------------------===// + public struct Verifier { public var rootCertificates: CertificateStore diff --git a/Sources/X509/Verifier/VerifierPolicy.swift b/Sources/X509/Verifier/VerifierPolicy.swift index db6969f..1b57e6c 100644 --- a/Sources/X509/Verifier/VerifierPolicy.swift +++ b/Sources/X509/Verifier/VerifierPolicy.swift @@ -1,3 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the SwiftCertificates open source project +// +// Copyright (c) 2022 Apple Inc. and the SwiftCertificates project authors +// Licensed under Apache License v2.0 +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors +// +// SPDX-License-Identifier: Apache-2.0 +// +//===----------------------------------------------------------------------===// + public protocol VerifierPolicy { mutating func chainMeetsPolicyRequirements(chain: UnverifiedCertificateChain) async -> PolicyEvaluationResult } diff --git a/Sources/X509/X509BaseTypes/AlgorithmIdentifier.swift b/Sources/X509/X509BaseTypes/AlgorithmIdentifier.swift index 907160a..e1cfcc9 100644 --- a/Sources/X509/X509BaseTypes/AlgorithmIdentifier.swift +++ b/Sources/X509/X509BaseTypes/AlgorithmIdentifier.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/X509BaseTypes/SubjectPublicKeyInfo.swift b/Sources/X509/X509BaseTypes/SubjectPublicKeyInfo.swift index a4dcb40..08e2990 100644 --- a/Sources/X509/X509BaseTypes/SubjectPublicKeyInfo.swift +++ b/Sources/X509/X509BaseTypes/SubjectPublicKeyInfo.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/X509BaseTypes/TBSCertificate.swift b/Sources/X509/X509BaseTypes/TBSCertificate.swift index ecd5274..858c69e 100644 --- a/Sources/X509/X509BaseTypes/TBSCertificate.swift +++ b/Sources/X509/X509BaseTypes/TBSCertificate.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/X509BaseTypes/Time.swift b/Sources/X509/X509BaseTypes/Time.swift index bd9e5e3..195fda7 100644 --- a/Sources/X509/X509BaseTypes/Time.swift +++ b/Sources/X509/X509BaseTypes/Time.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Sources/X509/X509BaseTypes/Validity.swift b/Sources/X509/X509BaseTypes/Validity.swift index 950a88c..39dac26 100644 --- a/Sources/X509/X509BaseTypes/Validity.swift +++ b/Sources/X509/X509BaseTypes/Validity.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Tests/X509Tests/CertificateDERTests.swift b/Tests/X509Tests/CertificateDERTests.swift index 40c7b42..fb0d4e2 100644 --- a/Tests/X509Tests/CertificateDERTests.swift +++ b/Tests/X509Tests/CertificateDERTests.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Tests/X509Tests/CertificateTests.swift b/Tests/X509Tests/CertificateTests.swift index b9e7683..7d2a659 100644 --- a/Tests/X509Tests/CertificateTests.swift +++ b/Tests/X509Tests/CertificateTests.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Tests/X509Tests/DistinguishedNameTests.swift b/Tests/X509Tests/DistinguishedNameTests.swift index ddac2fb..6f1afcb 100644 --- a/Tests/X509Tests/DistinguishedNameTests.swift +++ b/Tests/X509Tests/DistinguishedNameTests.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Tests/X509Tests/ExtensionBuilderTests.swift b/Tests/X509Tests/ExtensionBuilderTests.swift index b8dec75..af4413f 100644 --- a/Tests/X509Tests/ExtensionBuilderTests.swift +++ b/Tests/X509Tests/ExtensionBuilderTests.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Tests/X509Tests/OCSPTests.swift b/Tests/X509Tests/OCSPTests.swift index 4a6d496..a92c752 100644 --- a/Tests/X509Tests/OCSPTests.swift +++ b/Tests/X509Tests/OCSPTests.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Tests/X509Tests/SignatureTests.swift b/Tests/X509Tests/SignatureTests.swift index d631ec7..27686b6 100644 --- a/Tests/X509Tests/SignatureTests.swift +++ b/Tests/X509Tests/SignatureTests.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 // diff --git a/Tests/X509Tests/TimeTests.swift b/Tests/X509Tests/TimeTests.swift index ff1eb9e..fda8273 100644 --- a/Tests/X509Tests/TimeTests.swift +++ b/Tests/X509Tests/TimeTests.swift @@ -6,7 +6,7 @@ // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftCertificates project authors +// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors // // SPDX-License-Identifier: Apache-2.0 //