···11+/**
22+ * This file is part of Darling.
33+ *
44+ * Copyright (C) 2021 Darling developers
55+ *
66+ * Darling is free software: you can redistribute it and/or modify
77+ * it under the terms of the GNU General Public License as published by
88+ * the Free Software Foundation, either version 3 of the License, or
99+ * (at your option) any later version.
1010+ *
1111+ * Darling is distributed in the hope that it will be useful,
1212+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ * GNU General Public License for more details.
1515+ *
1616+ * You should have received a copy of the GNU General Public License
1717+ * along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+ */
1919+2020+#ifndef _OPENDIRECTORY_NSOPENDIRECTORYPRIV_H_
2121+#define _OPENDIRECTORY_NSOPENDIRECTORYPRIV_H_
2222+2323+// in case someone includes this header without including the following header
2424+#import <OpenDirectory/OpenDirectoryPriv.h>
2525+2626+#endif // _OPENDIRECTORY_NSOPENDIRECTORYPRIV_H_
···11+/**
22+ * This file is part of Darling.
33+ *
44+ * Copyright (C) 2021 Darling developers
55+ *
66+ * Darling is free software: you can redistribute it and/or modify
77+ * it under the terms of the GNU General Public License as published by
88+ * the Free Software Foundation, either version 3 of the License, or
99+ * (at your option) any later version.
1010+ *
1111+ * Darling is distributed in the hope that it will be useful,
1212+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ * GNU General Public License for more details.
1515+ *
1616+ * You should have received a copy of the GNU General Public License
1717+ * along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+ */
1919+2020+#ifndef _CRYPTOTOKENKIT_CTKLOGINHELPER_H_
2121+#define _CRYPTOTOKENKIT_CTKLOGINHELPER_H_
2222+2323+#include <CoreFoundation/CoreFoundation.h>
2424+2525+// not sure if these belong here
2626+// also not sure about their content
2727+#define kTKXpcKeyUserName "username"
2828+#define kTkHintContextData "context-data"
2929+#define kTkHintAllPubkeyHashes "all-pubkey-hashes"
3030+#define kTkHintTokenNameHashes "token-name-hashes"
3131+#define kTkHintTokenNameIds "token-name-ids"
3232+#define kTkHintFriendlyNameHashes "friendly-name-hashes"
3333+#define kTkHintFriendlyNames "friendly-names"
3434+#define kTkHintUnlockTokenHashes "unlock-token-hashes"
3535+#define kTkHintUnlockTokenIds "unlock-token-ids"
3636+3737+CFDictionaryRef TKCopyAvailableTokensInfo(uid_t uid, CFDictionaryRef hints);
3838+int TKPerformLogin(uid_t uid, CFStringRef token_id, CFDataRef pubkey_hash, CFStringRef pin, CFStringRef kerberos_principal, CFErrorRef* error);
3939+4040+#endif // _CRYPTOTOKENKIT_CTKLOGINHELPER_H_
···11+/**
22+ * This file is part of Darling.
33+ *
44+ * Copyright (C) 2021 Darling developers
55+ *
66+ * Darling is free software: you can redistribute it and/or modify
77+ * it under the terms of the GNU General Public License as published by
88+ * the Free Software Foundation, either version 3 of the License, or
99+ * (at your option) any later version.
1010+ *
1111+ * Darling is distributed in the hope that it will be useful,
1212+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ * GNU General Public License for more details.
1515+ *
1616+ * You should have received a copy of the GNU General Public License
1717+ * along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+ */
1919+2020+#ifndef _CONFIGURATIONPROFILES_CPBOOTSTRAPTOKEN_H_
2121+#define _CONFIGURATIONPROFILES_CPBOOTSTRAPTOKEN_H_
2222+2323+#import <Foundation/Foundation.h>
2424+2525+BOOL CP_SupportsBootstrapToken(void);
2626+NSString* CP_GetBootstrapToken(void* something);
2727+2828+#endif // _CONFIGURATIONPROFILES_CPBOOTSTRAPTOKEN_H_