X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb..7e6b461318c8a779d91381531435a68ee4e8b6ed:/securityd/securityd_service/KeyStore/KeyStoreEvents.c diff --git a/securityd/securityd_service/KeyStore/KeyStoreEvents.c b/securityd/securityd_service/KeyStore/KeyStoreEvents.c index 63a749d5..a64addcc 100644 --- a/securityd/securityd_service/KeyStore/KeyStoreEvents.c +++ b/securityd/securityd_service/KeyStore/KeyStoreEvents.c @@ -9,14 +9,15 @@ #include #include #include +#include static void aksNotificationCallback(void *refcon,io_service_t service, natural_t messageType, void *messageArgument) { if(messageType == kAppleKeyStoreLockStateChangeMessage) { -// syslog(LOG_ERR, "KeyStoreNotifier - %s posting notification: %s\n", __func__, kAppleKeyStoreLockStatusNotificationID); + os_log(OS_LOG_DEFAULT, "KeyStoreNotifier posting lockstate change"); notify_post(kAppleKeyStoreLockStatusNotificationID); } else if (messageType == kAppleKeyStoreFirstUnlockMessage) { -// syslog(LOG_ERR, "KeyStoreNotifier - %s posting notification: %s\n", __func__, kAppleKeyStoreFirstUnlockNotificationID); + os_log(OS_LOG_DEFAULT, "KeyStoreNotifier posting first unlock"); notify_post(kAppleKeyStoreFirstUnlockNotificationID); } } @@ -25,7 +26,7 @@ static void start(dispatch_queue_t queue) { IOReturn result; io_service_t aksService = IO_OBJECT_NULL; - IONotificationPortRef aksNotifyPort = IO_OBJECT_NULL; + IONotificationPortRef aksNotifyPort = NULL; io_object_t notification = IO_OBJECT_NULL; aksService = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching(kAppleKeyStoreServiceName));