this repo has no description
1
fork

Configure Feed

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

Add some more stubs in some authentication frameworks

This is for the remaining PAM modules

+130
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ctkclient/ctkclient_test.h
··· 1 + ../../../../../../../../../src/frameworks/CryptoTokenKit/include/ctkclient_test.h
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ctkclient/ctkloginhelper.h
··· 1 + ../../../../../../../../../src/frameworks/CryptoTokenKit/include/ctkloginhelper.h
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ctkloginhelper.h
··· 1 + ctkclient/ctkloginhelper.h
+26
src/OpenDirectory/include/OpenDirectory/NSOpenDirectoryPriv.h
··· 1 + /** 2 + * This file is part of Darling. 3 + * 4 + * Copyright (C) 2021 Darling developers 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 + #ifndef _OPENDIRECTORY_NSOPENDIRECTORYPRIV_H_ 21 + #define _OPENDIRECTORY_NSOPENDIRECTORYPRIV_H_ 22 + 23 + // in case someone includes this header without including the following header 24 + #import <OpenDirectory/OpenDirectoryPriv.h> 25 + 26 + #endif // _OPENDIRECTORY_NSOPENDIRECTORYPRIV_H_
+1
src/frameworks/CryptoTokenKit/CMakeLists.txt
··· 20 20 SOURCES 21 21 src/ctkclient.c 22 22 src/ctkclient_test.c 23 + src/ctkloginhelper.c 23 24 24 25 DEPENDENCIES 25 26 system
+40
src/frameworks/CryptoTokenKit/include/ctkloginhelper.h
··· 1 + /** 2 + * This file is part of Darling. 3 + * 4 + * Copyright (C) 2021 Darling developers 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 + #ifndef _CRYPTOTOKENKIT_CTKLOGINHELPER_H_ 21 + #define _CRYPTOTOKENKIT_CTKLOGINHELPER_H_ 22 + 23 + #include <CoreFoundation/CoreFoundation.h> 24 + 25 + // not sure if these belong here 26 + // also not sure about their content 27 + #define kTKXpcKeyUserName "username" 28 + #define kTkHintContextData "context-data" 29 + #define kTkHintAllPubkeyHashes "all-pubkey-hashes" 30 + #define kTkHintTokenNameHashes "token-name-hashes" 31 + #define kTkHintTokenNameIds "token-name-ids" 32 + #define kTkHintFriendlyNameHashes "friendly-name-hashes" 33 + #define kTkHintFriendlyNames "friendly-names" 34 + #define kTkHintUnlockTokenHashes "unlock-token-hashes" 35 + #define kTkHintUnlockTokenIds "unlock-token-ids" 36 + 37 + CFDictionaryRef TKCopyAvailableTokensInfo(uid_t uid, CFDictionaryRef hints); 38 + int TKPerformLogin(uid_t uid, CFStringRef token_id, CFDataRef pubkey_hash, CFStringRef pin, CFStringRef kerberos_principal, CFErrorRef* error); 39 + 40 + #endif // _CRYPTOTOKENKIT_CTKLOGINHELPER_H_
+9
src/frameworks/CryptoTokenKit/src/ctkloginhelper.c
··· 1 + #include <ctkloginhelper.h> 2 + 3 + CFDictionaryRef TKCopyAvailableTokensInfo(uid_t uid, CFDictionaryRef hints) { 4 + return NULL; 5 + }; 6 + 7 + int TKPerformLogin(uid_t uid, CFStringRef token_id, CFDataRef pubkey_hash, CFStringRef pin, CFStringRef kerberos_principal, CFErrorRef* error) { 8 + return -1; 9 + };
+1
src/frameworks/LocalAuthentication/CMakeLists.txt
··· 18 18 19 19 SOURCES 20 20 src/LACFSupport.c 21 + src/stubs.c 21 22 22 23 DEPENDENCIES 23 24 system
+2
src/frameworks/LocalAuthentication/include/LocalAuthentication/LAPrivateDefines.h
··· 11 11 #define kLAErrorParameter -2134234 12 12 #define kLAErrorNotInteractive -598423 13 13 #define kTKErrorCodeBadParameter -659833 14 + #define kLAPolicyContinuityUnlock 255 15 + #define kLAOptionUserId 255 14 16 15 17 typedef void* (*LAFunctionCopyExternalizedContext)(void*); 16 18
+9
src/frameworks/LocalAuthentication/src/stubs.c
··· 1 + #include <stddef.h> 2 + 3 + void* LAEvaluatePolicy() { 4 + return NULL; 5 + }; 6 + 7 + void* LAVerifySEP() { 8 + return NULL; 9 + };
+28
src/private-frameworks/ConfigurationProfiles/include/ConfigurationProfiles/CPBootstrapToken.h
··· 1 + /** 2 + * This file is part of Darling. 3 + * 4 + * Copyright (C) 2021 Darling developers 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 + #ifndef _CONFIGURATIONPROFILES_CPBOOTSTRAPTOKEN_H_ 21 + #define _CONFIGURATIONPROFILES_CPBOOTSTRAPTOKEN_H_ 22 + 23 + #import <Foundation/Foundation.h> 24 + 25 + BOOL CP_SupportsBootstrapToken(void); 26 + NSString* CP_GetBootstrapToken(void* something); 27 + 28 + #endif // _CONFIGURATIONPROFILES_CPBOOTSTRAPTOKEN_H_
+11
src/private-frameworks/ConfigurationProfiles/src/ConfigurationProfiles.m
··· 22 22 #include <stdlib.h> 23 23 #include <stdio.h> 24 24 25 + #include <ConfigurationProfiles/CPBootstrapToken.h> 26 + 25 27 static int verbose = 0; 26 28 27 29 __attribute__((constructor)) ··· 498 500 if (verbose) puts("STUB: _CP_ALBHash called"); 499 501 return NULL; 500 502 } 503 + 504 + BOOL CP_SupportsBootstrapToken(void) { 505 + if (verbose) puts("STUB: CP_SupportsBootstrapToken called"); 506 + return NO; 507 + }; 508 + 509 + NSString* CP_GetBootstrapToken(void* something) { 510 + return nil; 511 + };