Skip to content

Commit

Permalink
Deprecate unused SecKeyPair.Error cases for later removal
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubb committed Jun 26, 2023
1 parent 69b7fcb commit 86a413b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/ShieldSecurity/SecKeyPair.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86a413b

Please sign in to comment.