Skip to content

Commit

Permalink
use full path for security framework
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-dt committed Aug 24, 2023
1 parent 11da1c7 commit f735fe4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions TrustKit/Pinning/pinning_utils.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit f735fe4

Please sign in to comment.