From 1cde8110df462d007b4052eee2ea5c25048d6711 Mon Sep 17 00:00:00 2001 From: Kornel Date: Mon, 10 Dec 2018 12:45:40 +0000 Subject: [PATCH] Explain error 25308 --- generate_keys/main.swift | 2 ++ sign_update/main.swift | 2 ++ 2 files changed, 4 insertions(+) diff --git a/generate_keys/main.swift b/generate_keys/main.swift index f0cae114..6aa89e8f 100644 --- a/generate_keys/main.swift +++ b/generate_keys/main.swift @@ -31,6 +31,8 @@ func findPublicKey() -> Data? { } else if res == errSecUserCanceled { print("\nABORTED! You've cancelled the request to read the key from the Keychain. Please run the tool again."); + } else if res == errSecInteractionNotAllowed { + print("\nERROR! The operating system has blocked access to the Keychain."); } else { print("\nERROR! Unable to access existing item in the Keychain", res, "(you can look it up at osstatus.com)"); } diff --git a/sign_update/main.swift b/sign_update/main.swift index 9caabb9d..da962823 100644 --- a/sign_update/main.swift +++ b/sign_update/main.swift @@ -30,6 +30,8 @@ func findKeys() -> (Data, Data) { } else if res == errSecUserCanceled { print("ABORTED! You've cancelled the request to read the key from the Keychain. Please run the tool again."); + } else if res == errSecInteractionNotAllowed { + print("ERROR! The operating system has blocked access to the Keychain."); } else { print("ERROR! Unable to access required key in the Keychain", res, "(you can look it up at osstatus.com)"); }