Skip to content

Commit f735fe4

Browse files
committed
use full path for security framework
1 parent 11da1c7 commit f735fe4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

TrustKit/Pinning/pinning_utils.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ SecCertificateRef getCertificateAtIndex(SecTrustRef serverTrust, CFIndex index)
5555
int osVersionThreshold = 12; // macOS 12+
5656
#endif
5757
SecCertificateRef certificate = NULL;
58-
void *_Security = dlopen("Security.framework/Security", RTLD_NOW);
59-
if (_Security == NULL) {
60-
_Security = dlopen("/System/Library/Frameworks/Security.framework/Security", RTLD_NOW);
61-
}
58+
void *_Security = dlopen("/System/Library/Frameworks/Security.framework/Security", RTLD_NOW);
6259

6360
if (majorVersion >= osVersionThreshold)
6461
{

0 commit comments

Comments
 (0)