From 6b8596830da267afbf3cefde38392ec73ebb8d2e Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 17 Jun 2025 16:36:27 +0200 Subject: [PATCH] Security: add more security_runtime_error messages Signed-off-by: Simon Rozman --- include/MacStd/Security.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/MacStd/Security.hpp b/include/MacStd/Security.hpp index 1ea3d80..71a155b 100644 --- a/include/MacStd/Security.hpp +++ b/include/MacStd/Security.hpp @@ -56,6 +56,8 @@ namespace macstd { // Handle common errors Apple does not provide message strings for. switch (num) { + case errSecWrPerm: return "Write permissions error"; + case errSecDuplicateItem: return "The specified item already exists in the keychain"; case errAuthorizationCanceled: return "Authorization was canceled by user"; case errAuthorizationDenied: return "Authorization was denied"; case errAuthorizationInteractionNotAllowed: return "User interaction not allowed for authorization";