mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-04-05 17:37:51 +08:00
37 lines
647 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|