this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Expand private headers that Security depends on Update security

+32 -227
+1
src/CMakeLists.txt
··· 76 76 77 77 include_directories(AFTER 78 78 ${CMAKE_CURRENT_SOURCE_DIR}/external/SmartCardServices/include 79 + ${CMAKE_CURRENT_SOURCE_DIR}/login/include 79 80 ${CMAKE_CURRENT_SOURCE_DIR}/external/IOKitUser/include 80 81 ${CMAKE_CURRENT_SOURCE_DIR}/launchd/liblaunch/include 81 82 ${CMAKE_CURRENT_SOURCE_DIR}/sandbox/include
+4 -4
src/CryptoTokenKit/include/ACMDefs.h
··· 16 16 #define kAKSKeyOpEncrypt CFSTR("AKSKeyOpEncrypt") 17 17 #define kAKSKeyOpDelete CFSTR("AKSKeyOpDelete") 18 18 19 - const static int kAKSKeyOpSign; 19 + extern const int kAKSKeyOpSign; 20 20 21 - const static CFStringRef kAKSKeyOpDecrypt; 21 + extern const CFStringRef kAKSKeyOpDecrypt; 22 22 23 - const static int kAKSKeyOpComputeKey; 23 + extern const int kAKSKeyOpComputeKey; 24 24 25 - const static CFStringRef kAKSKeyOpAttest; 25 + extern const CFStringRef kAKSKeyOpAttest; 26 26 27 27 28 28 #endif
+5
src/CryptoTokenKit/include/ctkclient.h
··· 28 28 #define kTKTokenControlAttribAttestationData "TKTokenControlAttribAttestationData" 29 29 #define kTKTokenCreateAttributeAuxParams "TKTokenCreateAttributeAuxParams" 30 30 31 + #define TKTokenKeyUsageAny 1 32 + 31 33 typedef const struct CF_BRIDGED_TYPE(TKToken) __TKToken * TKTokenRef; 32 34 33 35 CF_EXPORT ··· 59 61 60 62 CF_EXPORT 61 63 CFDictionaryRef TKTokenControl(TKTokenRef token, CFDictionaryRef attributes, CFErrorRef *error); 64 + 65 + CF_EXPORT 66 + CFArrayRef TKTokenCopyIdentities(TKTokenRef token, int usage, CFErrorRef *error); 62 67 63 68 CF_EXTERN_C_END 64 69 CF_IMPLICIT_BRIDGING_DISABLED
+19
src/libaks/include/libaks_smartcard.h
··· 1 + #ifndef _LIBAKS_SMARTCARD_H_ 2 + #define _LIBAKS_SMARTCARD_H_ 3 + 4 + #include <LocalAuthentication/LACFSupport.h> 5 + 6 + typedef int aks_smartcard_mode_t; 7 + 8 + #define AKS_SMARTCARD_MODE_RSA 1 9 + #define AKS_SMARTCARD_MODE_ECDH 2 10 + 11 + CFRef<CFArrayRef> LACreateNewContextWithACMContext(int a, int b); 12 + void aks_smartcard_unregister(int a); 13 + int aks_smartcard_request_unlock(int a, unsigned char *b, int c, void **d, size_t *e); 14 + int aks_smartcard_unlock(int a, unsigned char *b, int c, unsigned char *d, int e, void **f, size_t *g); 15 + int aks_smartcard_register(int a, unsigned char *b, int c, int d, unsigned char *e, int f, void **g, size_t *h); 16 + int aks_smartcard_get_sc_usk(void *a, int b, const void **c, size_t *d); 17 + int aks_smartcard_get_ec_pub(void *a, int b, const void **c, size_t *d); 18 + 19 + #endif
+3 -1
src/login/functions.c
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 + #include <login/login.h> 21 + 20 22 void CFXPCRelease(void) { } 21 23 void CreateArgumentsForFunction(void) { } 22 24 void GetSessionAgentClient(void) { } ··· 170 172 void SAClearSoftwareUpdateOptions(void) { } 171 173 void SAPrepareForSetupUserScreenShots(void) { } 172 174 void SAResetLoginKeychainForAutoLoginPassword(void) { } 173 - void SASSessionStateForUser(void) { } 175 + SessionAgentState SASSessionStateForUser(int uid) { return -1; } 174 176 void SASetAppleIDVerified(void) { } 175 177 void SASetAutoLoginUserScreenLocked(void) { } 176 178 void SASetAutologinPW(void) { }
-222
src/login/functions.h
··· 1 - /* 2 - This file is part of Darling. 3 - 4 - Copyright (C) 2017 Lubos Dolezel 5 - 6 - Darling is free software: you can redistribute it and/or modify 7 - it under the terms of the GNU General Public License as published by 8 - the Free Software Foundation, either version 3 of the License, or 9 - (at your option) any later version. 10 - 11 - Darling is distributed in the hope that it will be useful, 12 - but WITHOUT ANY WARRANTY; without even the implied warranty of 13 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 - GNU General Public License for more details. 15 - 16 - You should have received a copy of the GNU General Public License 17 - along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 - */ 19 - 20 - void CFXPCRelease(void); 21 - void CreateArgumentsForFunction(void); 22 - void GetSessionAgentClient(void); 23 - void GetSessionManagementClient(void); 24 - void JoinAuditSessionIfNeeded(void); 25 - void LFAppleIDBreadcrumbCheckin(void); 26 - void LFAppleIDBreadcrumbCopyAppleIDForUser(void); 27 - void LFAppleIDBreadcrumbCopyOldKeychainPassword(void); 28 - void LFAppleIDBreadcrumbUpdate(void); 29 - void LFArgumentsAddAuditSessionID(void); 30 - void LFArgumentsAddBoolean(void); 31 - void LFArgumentsAddCFObject(void); 32 - void LFArgumentsAddCString(void); 33 - void LFArgumentsAddConnection(void); 34 - void LFArgumentsAddConnectionEndpoint(void); 35 - void LFArgumentsAddInt64(void); 36 - void LFArgumentsAddLFClient(void); 37 - void LFArgumentsAddLFServer(void); 38 - void LFArgumentsAddMachPort(void); 39 - void LFArgumentsAddNull(void); 40 - void LFArgumentsAddUInt64(void); 41 - void LFArgumentsCallFunction(void); 42 - void LFArgumentsCopyFunctionIdentifier(void); 43 - void LFArgumentsCreate(void); 44 - void LFArgumentsCreateWithArguments(void); 45 - void LFArgumentsCreateWithXPCDictionary(void); 46 - void LFArgumentsGetDictionary(void); 47 - void LFArgumentsGetFunction(void); 48 - void LFArgumentsIsValid(void); 49 - void LFArgumentsShouldAddArgumentForFlag(void); 50 - void LFClientAddErrorHandler(void); 51 - void LFClientCreateWithConnection(void); 52 - void LFClientCreateWithConnectionAndServer(void); 53 - void LFClientCreateWithServiceName(void); 54 - void LFClientGetConnection(void); 55 - void LFClientGetEndpoint(void); 56 - void LFClientGetPID(void); 57 - void LFClientGetServer(void); 58 - void LFClientGetTypeID(void); 59 - void LFClientRemoveErrorHandler(void); 60 - void LFClientSendArgumentsAndGetCFReply(void); 61 - void LFClientSendArgumentsAndGetReply(void); 62 - void LFClientSetEndpoint(void); 63 - void LFClientSetEventHandler(void); 64 - void LFClientSetInstance(void); 65 - void LFClientSetIsMachService(void); 66 - void LFClientSetPrivileged(void); 67 - void LFClientSetUserID(void); 68 - void LFClientStart(void); 69 - void LFClientStop(void); 70 - void LFDBLoggingControllerStart(void); 71 - void LFDBLoggingControllerStop(void); 72 - void LFDictionaryCreateMutableWithObjectForKey(void); 73 - void LFDictionaryGetBooleanForKey(void); 74 - void LFDictionaryGetCFIndexForKey(void); 75 - void LFDictionaryGetDictionaryForKey(void); 76 - void LFDictionaryGetDoubleForKey(void); 77 - void LFDictionarySetBoolean(void); 78 - void LFDictionarySetCFIndex(void); 79 - void LFDictionarySetDictionary(void); 80 - void LFFunctionCacheAddFunction(void); 81 - void LFFunctionCacheCreateServerFunction(void); 82 - void LFFunctionCacheGetFunction(void); 83 - void LFFunctionCreateClientFunction(void); 84 - void LFFunctionCreateServerFunction(void); 85 - void LFFunctionGetIdentifier(void); 86 - void LFLogUnhandledEventType(void); 87 - void LFSMCloseSession(void); 88 - void LFSMCopyAllSessions(void); 89 - void LFSMCopyCurrentSession(void); 90 - void LFSMCopySessionProperties(void); 91 - void LFSMCopySessionWithCGSessionID(void); 92 - void LFSMCreateDefaultSessionOptions(void); 93 - void LFSMCreateSessionWithOptions(void); 94 - void LFSMCreateSessionWithOptionsByStartingServer(void); 95 - void LFSMSessionGetTypeID(void); 96 - void LFSMSwitchToSessionWithOptions(void); 97 - void LFServerCreate(void); 98 - void LFServerGetClientForConnection(void); 99 - void LFServerGetConnection(void); 100 - void LFServerGetEventHandler(void); 101 - void LFServerGetServiceName(void); 102 - void LFServerGetTypeID(void); 103 - void LFServerSetIsMachService(void); 104 - void LFServerStart(void); 105 - void LFServerStop(void); 106 - void LFStringCreateFromString(void); 107 - void LogindServerCreate(void); 108 - void LogindServerRelease(void); 109 - void SACBeginLoginTransition(void); 110 - void SACCopyOnceMiniBuddyItem(void); 111 - void SACDeleteMiniBuddyItem(void); 112 - void SACDisableFileVaultForCurrentUserWithPassword(void); 113 - void SACEnableFileVaultForCurrentUserWithPassword(void); 114 - void SACFaceTimeCallRingStart(void); 115 - void SACFaceTimeCallRingStop(void); 116 - void SACLOFinishDelayedLogout(void); 117 - void SACLORegisterLogoutStatusCallbacks(void); 118 - void SACLOStartLogout(void); 119 - void SACLOStartLogoutWithOptions(void); 120 - void SACLegacyFileVaultCloseProgressWindow(void); 121 - void SACLegacyFileVaultSetBarPercentage(void); 122 - void SACLegacyFileVaultSetPhase(void); 123 - void SACLegacyFileVaultSetTask(void); 124 - void SACLegacyFileVaultShowErrorMessage(void); 125 - void SACLegacyFileVaultShowProgressWindow(void); 126 - void SACLegacyFileVaultUpdateTimeRemaining(void); 127 - void SACLegacyFileVaultUpdateUI(void); 128 - void SACLockScreenImmediate(void); 129 - void SACLogoutComplete(void); 130 - void SACMessageFaceTimeCancelCall(void); 131 - void SACMessageFaceTimeMuteCall(void); 132 - void SACMessageLogoutStatusClientLogoutFailed(void); 133 - void SACMessageLogoutStatusClientLogoutSuccess(void); 134 - void SACMessageMiniBuddyUIShowing(void); 135 - void SACMiniBuddyCopyUpgradeDictionary(void); 136 - void SACMiniBuddySignalCompleted(void); 137 - void SACMiniBuddySignalFinishedStage1WithOptions(void); 138 - void SACProximityPreferencesChanged(void); 139 - void SACRestartForUser(void); 140 - void SACSaveSetupUserScreenShots(void); 141 - void SACScreenLockEnabled(void); 142 - void SACScreenLockPreferencesChanged(void); 143 - void SACScreenSaverCanRun(void); 144 - void SACScreenSaverDidFadeInBackground(void); 145 - void SACScreenSaverIsRunning(void); 146 - void SACScreenSaverIsRunningInBackground(void); 147 - void SACScreenSaverStartNow(void); 148 - void SACScreenSaverStopNow(void); 149 - void SACScreenSaverStopNowWithOptions(void); 150 - void SACScreenSaverTimeRemaining(void); 151 - void SACSetAppleIDVerified(void); 152 - void SACSetAutoLoginPassword(void); 153 - void SACSetFileVaultPassword(void); 154 - void SACSetFinalSnapshot(void); 155 - void SACSetMiniBuddyItem(void); 156 - void SACSetPhoneProximity(void); 157 - void SACSetScreenSaverCanRun(void); 158 - void SACShieldWindowShowing(void); 159 - void SACStartProgressIndicator(void); 160 - void SACStartSessionForLoginWindow(void); 161 - void SACStartSessionForUser(void); 162 - void SACStopProgressIndicator(void); 163 - void SACStopSessionForLoginWindow(void); 164 - void SACSwitchToLoginWindow(void); 165 - void SACSwitchToUser(void); 166 - void SACUpdateAppleIDUserLogin(void); 167 - void SACWriteKeyboardType(void); 168 - void SAClearLWScreenShots(void); 169 - void SAClearLaunchSoftwareUpdateTrigger(void); 170 - void SAClearSoftwareUpdateOptions(void); 171 - void SAPrepareForSetupUserScreenShots(void); 172 - void SAResetLoginKeychainForAutoLoginPassword(void); 173 - void SASSessionStateForUser(void); 174 - void SASetAppleIDVerified(void); 175 - void SASetAutoLoginUserScreenLocked(void); 176 - void SASetAutologinPW(void); 177 - void SASetLaunchSoftwareUpdateTrigger(void); 178 - void SASetPreviousStartupWasPanic(void); 179 - void SASetSCDynamicStoreConsoleInformation(void); 180 - void SASetSessionAuthenticatedFlag(void); 181 - void SASetSessionHasConsoleAccessFlag(void); 182 - void SASetSessionState(void); 183 - void SASetSoftwareUpdateOption(void); 184 - void SASetSwapCompaction(void); 185 - void SASetTextEncodingBias(void); 186 - void SASync(void); 187 - void SASystemNotifyPost(void); 188 - void SAWriteKeyboardType(void); 189 - void SLOAddErrorHandler(void); 190 - void SLOLegacyFileVaultSetState(void); 191 - void SLOStartLogoutOfType(void); 192 - void SMCopySessionUserInfo(void); 193 - void SMGetSessionAgentConnection(void); 194 - void SMRegisterSessionAgent(void); 195 - void SMSetSessionUserInfo(void); 196 - void SOStartSessionWithOptions(void); 197 - void SessionAgentServerCreate(void); 198 - void SessionAgentServerGetServer(void); 199 - void SessionAgentServerRelease(void); 200 - void SessionLogoutServerCreate(void); 201 - void SessionLogoutServerRelease(void); 202 - void SessionOwnerServerCreate(void); 203 - void SessionOwnerServerRelease(void); 204 - void _LFArgumentsCopyDebugDesc(void); 205 - void _LFArgumentsCopyFormattingDesc(void); 206 - void _LFArgumentsFinalize(void); 207 - void _LFArgumentsInit(void); 208 - void _LFFunctionCopyDebugDesc(void); 209 - void _LFFunctionCopyFormattingDesc(void); 210 - void _LFFunctionCreateServerFunction(void); 211 - void _LFFunctionEqual(void); 212 - void _LFFunctionFinalize(void); 213 - void _LFFunctionHash(void); 214 - void _LFFunctionInit(void); 215 - void _LFGetBreadcrumbEncryptedKeyWithBlock(void); 216 - void _LFServerCopyDebugDesc(void); 217 - void _LFServerCopyFormattingDesc(void); 218 - void _LFServerEqual(void); 219 - void _LFServerFinalize(void); 220 - void _LFServerHash(void); 221 - void _LFSetBreadcrumbEncryptedKeyWithBlock(void); 222 - void logindServerGetServer(void);