Skip to content

Commit

Permalink
Merge pull request #77 from outfoxx/fix/deprecate-errors
Browse files Browse the repository at this point in the history
Deprecate unused SecKeyPair.Error cases for later removal
  • Loading branch information
kdubb committed Jun 26, 2023
2 parents 69b7fcb + 86a413b commit a3ed0f8
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 a3ed0f8

Please sign in to comment.