X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/fa7225c82381bac4432a6edf16f53b5370238d85..dd5fb164cf5b32c462296bc65e289e100f74b59a:/OSX/libsecurity_codesigning/lib/cskernel.cpp?ds=inline diff --git a/OSX/libsecurity_codesigning/lib/cskernel.cpp b/OSX/libsecurity_codesigning/lib/cskernel.cpp index c4d579f7..7595bd52 100644 --- a/OSX/libsecurity_codesigning/lib/cskernel.cpp +++ b/OSX/libsecurity_codesigning/lib/cskernel.cpp @@ -76,6 +76,7 @@ KernelStaticCode::KernelStaticCode() // SecCode *KernelCode::locateGuest(CFDictionaryRef attributes) { +#if TARGET_OS_OSX CFNumberRef pidNumber = NULL; CFDataRef auditData = NULL; cfscan(attributes, "{%O=%NO}", kSecGuestAttributePid, &pidNumber); @@ -110,6 +111,9 @@ SecCode *KernelCode::locateGuest(CFDictionaryRef attributes) } return (new ProcessCode(pid, audit, diskRep))->retain(); +#else + MacOSError::throwMe(errSecCSUnimplemented); +#endif }