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