Security: add more security_runtime_error messages

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2025-06-17 16:36:27 +02:00
parent d3afe61b78
commit 6b8596830d

View File

@ -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";