]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_keychain/lib/SecTrustOSXEntryPoints.cpp
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / libsecurity_keychain / lib / SecTrustOSXEntryPoints.cpp
index 0ce7406dc2f55875ffd3809eba699099370b1b0f..9e17b2553339c28d65096ea9ebaa64580aa360d3 100644 (file)
@@ -26,7 +26,7 @@
  * Framework.
  */
 
  * Framework.
  */
 
-#include "OSX/trustd/macOS/SecTrustOSXEntryPoints.h"
+#include "trust/trustd/macOS/SecTrustOSXEntryPoints.h"
 
 #include <CoreFoundation/CoreFoundation.h>
 #include <dispatch/dispatch.h>
 
 #include <CoreFoundation/CoreFoundation.h>
 #include <dispatch/dispatch.h>
@@ -43,10 +43,11 @@ void SecTrustLegacySourcesListenForKeychainEvents(void) {
     notify_register_dispatch(kSecServerCertificateTrustNotification, &out_token,
                              dispatch_get_main_queue(),
                              ^(int token __unused) {
     notify_register_dispatch(kSecServerCertificateTrustNotification, &out_token,
                              dispatch_get_main_queue(),
                              ^(int token __unused) {
-                                 // Purge keychain parent cache
-                                 SecItemParentCachePurge();
-                                 // Purge unrestricted roots cache
-                                 SecTrustSettingsPurgeUserAdminCertsCache();
-
-                             });
+        // Purge keychain parent cache
+        SecItemParentCachePurge();
+        // Purge tust settings cert cache
+        SecTrustSettingsPurgeUserAdminCertsCache();
+        // Purge the trust settings cache
+        SecTrustSettingsPurgeCache();
+    });
 }
 }