Skip to content

Commit

Permalink
keychain_mac: fix build on < 10.9
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Apr 19, 2024
1 parent ed1610d commit 307ea52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/keychain_mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

#include <Security/Security.h>

#include <AvailabilityMacros.h>

#include "keychain.h"

namespace {
Expand Down Expand Up @@ -92,7 +94,9 @@ void updateError(keychain::Error &err, OSStatus status) {
break;

// potential errors in case the user needs to unlock the keychain first
#if MAC_OS_X_VERSION_MIN_REQUIRED > 1080
case errSecUserCanceled: // user pressed the Cancel button
#endif
case errSecAuthFailed: // too many failed password attempts
case errSecInteractionRequired: // user interaction required but not allowed
err.type = keychain::ErrorType::AccessDenied;
Expand Down

0 comments on commit 307ea52

Please sign in to comment.