4 // Copyright © 2015 Apple Inc. All rights reserved.
7 #include "SecInternalReleasePriv.h"
10 #include <dispatch/dispatch.h>
11 #include <AssertMacros.h>
14 #if TARGET_OS_EMBEDDED
15 #include <MobileGestalt.h>
17 #include <sys/utsname.h>
22 SecIsInternalRelease(void)
24 static bool isInternal
= false;
29 bool SecIsProductionFused(void) {
30 static bool isProduction
= true;
31 #if TARGET_OS_EMBEDDED
32 static dispatch_once_t once
= 0;
34 dispatch_once(&once
, ^{
35 CFBooleanRef productionFused
= MGCopyAnswer(kMGQSigningFuse
, NULL
);
36 if (productionFused
) {
37 if (CFEqual(productionFused
, kCFBooleanFalse
)) {
40 CFRelease(productionFused
);