From 8d2fe7385a76092f95a0665511b10b08f39e6053 Mon Sep 17 00:00:00 2001 From: Philippe Casgrain Date: Mon, 9 Sep 2024 15:18:20 -0400 Subject: [PATCH] Marked KeyUsage as Sendable Silences a warning about `digitalSignature` and others being non-sendable when using Shield in a strict Swift concurrency setting. --- Sources/ShieldX509/ExtensionKeyUsage.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ShieldX509/ExtensionKeyUsage.swift b/Sources/ShieldX509/ExtensionKeyUsage.swift index b08d08341..354281794 100644 --- a/Sources/ShieldX509/ExtensionKeyUsage.swift +++ b/Sources/ShieldX509/ExtensionKeyUsage.swift @@ -13,7 +13,7 @@ import PotentASN1 import ShieldOID -public struct KeyUsage: OptionSet, Equatable, Hashable, Codable, CriticalExtensionValue { +public struct KeyUsage: OptionSet, Equatable, Hashable, Codable, CriticalExtensionValue, Sendable { public static var extensionID = iso_itu.ds.certificateExtension.keyUsage.oid public static var asn1Schema = Schemas.keyUsageExtension