CPF/CPF.Mac/Mac/Security/SecMatchLimit.cs
2023-11-21 23:05:03 +08:00

37 lines
647 B
C#

using CPF.Mac.ObjCRuntime;
using System;
namespace CPF.Mac.Security
{
public static class SecMatchLimit
{
private static IntPtr _MatchLimitOne;
private static IntPtr _MatchLimitAll;
public static IntPtr MatchLimitOne
{
get
{
if (_MatchLimitOne == IntPtr.Zero)
{
_MatchLimitOne = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecMatchLimitOne");
}
return _MatchLimitOne;
}
}
public static IntPtr MatchLimitAll
{
get
{
if (_MatchLimitAll == IntPtr.Zero)
{
_MatchLimitAll = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecMatchLimitAll");
}
return _MatchLimitAll;
}
}
}
}