mirror of
https://github.com/datatheorem/TrustKit.git
synced 2026-05-17 12:50:35 +00:00
use full path for security framework
This commit is contained in:
@@ -55,10 +55,7 @@ SecCertificateRef getCertificateAtIndex(SecTrustRef serverTrust, CFIndex index)
|
||||
int osVersionThreshold = 12; // macOS 12+
|
||||
#endif
|
||||
SecCertificateRef certificate = NULL;
|
||||
void *_Security = dlopen("Security.framework/Security", RTLD_NOW);
|
||||
if (_Security == NULL) {
|
||||
_Security = dlopen("/System/Library/Frameworks/Security.framework/Security", RTLD_NOW);
|
||||
}
|
||||
void *_Security = dlopen("/System/Library/Frameworks/Security.framework/Security", RTLD_NOW);
|
||||
|
||||
if (majorVersion >= osVersionThreshold)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user