this repo has no description
at fixPythonPipStalling 41 lines 1.7 kB view raw
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 37CFDictionaryRef TKCopyAvailableTokensInfo(uid_t uid, CFDictionaryRef hints); 38int TKPerformLogin(uid_t uid, CFStringRef token_id, CFDataRef pubkey_hash, CFStringRef pin, CFStringRef kerberos_principal, CFErrorRef* error); 39OSStatus TKAddSecureToken(CFStringRef username, CFStringRef pwd, CFStringRef tokenID, CFDataRef wrapPubKeyHash); 40 41#endif // _CRYPTOTOKENKIT_CTKLOGINHELPER_H_