From 86a413be2f8885102e67bd5dc6a8728f75570ffe Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Mon, 26 Jun 2023 10:20:02 -0700 Subject: [PATCH] Deprecate unused SecKeyPair.Error cases for later removal --- Sources/ShieldSecurity/SecKeyPair.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/ShieldSecurity/SecKeyPair.swift b/Sources/ShieldSecurity/SecKeyPair.swift index 6a5ea02f6..0829ebf2b 100644 --- a/Sources/ShieldSecurity/SecKeyPair.swift +++ b/Sources/ShieldSecurity/SecKeyPair.swift @@ -46,10 +46,14 @@ public struct SecKeyPair { public enum Error: Int, Swift.Error { case generateFailed case failedToCopyPublicKeyFromPrivateKey + case invalidEncodedPrivateKey + + @available(*, deprecated, message: "Unused") case noMatchingKey + @available(*, deprecated, message: "Unused") case itemAddFailed + @available(*, deprecated, message: "Unused") case itemDeleteFailed - case invalidEncodedPrivateKey public static func build(error: Error, message: String, status: OSStatus) -> NSError { let error = error as NSError