diff --git a/src/frameworks/CryptoTokenKit/include/ctkclient.h b/src/frameworks/CryptoTokenKit/include/ctkclient.h index d4d31cfb1..5b33149be 100644 --- a/src/frameworks/CryptoTokenKit/include/ctkclient.h +++ b/src/frameworks/CryptoTokenKit/include/ctkclient.h @@ -30,7 +30,7 @@ CF_EXTERN_C_BEGIN #define kTKTokenControlAttribLifetimeType "TKTokenControlAttribLifetimeType" #define kTKTokenCreateAttributeAuxParams "TKTokenCreateAttributeAuxParams" - +#define kTKTokenCreateAttributeTestMode "kTKTokenCreateAttributeTestMode" #define TKTokenKeyUsageAny 1 typedef const struct CF_BRIDGED_TYPE(id) __TKToken * TKTokenRef; diff --git a/src/frameworks/CryptoTokenKit/include/ctkloginhelper.h b/src/frameworks/CryptoTokenKit/include/ctkloginhelper.h index 22d876682..9c5e89bb3 100644 --- a/src/frameworks/CryptoTokenKit/include/ctkloginhelper.h +++ b/src/frameworks/CryptoTokenKit/include/ctkloginhelper.h @@ -36,5 +36,6 @@ CFDictionaryRef TKCopyAvailableTokensInfo(uid_t uid, CFDictionaryRef hints); int TKPerformLogin(uid_t uid, CFStringRef token_id, CFDataRef pubkey_hash, CFStringRef pin, CFStringRef kerberos_principal, CFErrorRef* error); +OSStatus TKAddSecureToken(CFStringRef username, CFStringRef pwd, CFStringRef tokenID, CFDataRef wrapPubKeyHash); #endif // _CRYPTOTOKENKIT_CTKLOGINHELPER_H_ diff --git a/src/frameworks/CryptoTokenKit/src/ctkloginhelper.c b/src/frameworks/CryptoTokenKit/src/ctkloginhelper.c index 0c3e1151b..7f6aa29d4 100644 --- a/src/frameworks/CryptoTokenKit/src/ctkloginhelper.c +++ b/src/frameworks/CryptoTokenKit/src/ctkloginhelper.c @@ -7,3 +7,7 @@ CFDictionaryRef TKCopyAvailableTokensInfo(uid_t uid, CFDictionaryRef hints) { int TKPerformLogin(uid_t uid, CFStringRef token_id, CFDataRef pubkey_hash, CFStringRef pin, CFStringRef kerberos_principal, CFErrorRef* error) { return -1; }; + +OSStatus TKAddSecureToken(CFStringRef username, CFStringRef pwd, CFStringRef tokenID, CFDataRef wrapPubKeyHash) { + return -1; +} \ No newline at end of file