this repo has no description
1
fork

Configure Feed

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

Create CryptoTokenKit stubs

+123
+26
src/CryptoTokenKit/CMakeLists.txt
··· 1 + project(CryptoTokenKit) 2 + 3 + add_compile_options( 4 + -nostdinc 5 + -fblocks 6 + ) 7 + 8 + include_directories( 9 + ${CMAKE_CURRENT_SOURCE_DIR}/include 10 + ) 11 + 12 + set(DYLIB_COMPAT_VERSION "1.0.0") 13 + set(DYLIB_CURRENT_VERSION "1.0.0") 14 + 15 + add_framework(CryptoTokenKit 16 + FAT 17 + CURRENT_VERSION 18 + VERSION "A" 19 + 20 + SOURCES 21 + src/ctkclient.c 22 + src/ctkclient_test.c 23 + 24 + DEPENDENCIES 25 + system 26 + )
+19
src/CryptoTokenKit/include/ACMAclDefs.h
··· 1 + #ifndef _ACMACLDEFS_H_ 2 + #define _ACMACLDEFS_H_ 3 + 4 + #include <CoreFoundation/CoreFoundation.h> 5 + 6 + // Someone please reverse-engineer this, 7 + // these are guessed and not verified 8 + #define kAKSKeyAcl CFSTR("AKSKeyAcl") 9 + #define kAKSKeyOpDefaultAcl CFSTR("AKSKeyOpDefaultAcl") 10 + #define kACMKeyAclConstraintUserPasscode "ACMKeyAclConstraintUserPasscode" 11 + #define kACMKeyAclParamBioCatacombUUID "ACMKeyAclParamBioCatacombUUID" 12 + #define kACMKeyAclConstraintBio "ACMKeyAclConstraintBio" 13 + #define kACMKeyAclParamBioCatacombUUID "ACMKeyAclParamBioCatacombUUID" 14 + #define kACMKeyAclParamBioDatabaseHash "ACMKeyAclParamBioDatabaseHash" 15 + #define kACMKeyAclParamKofN "ACMKeyAclParamKofN" 16 + #define kACMKeyAclConstraintKofN "ACMKeyAclConstraintKofN" 17 + #define kAKSKeyAclParamRequirePasscode CFSTR("AKSKeyAclParamRequirePasscode") 18 + 19 + #endif
+19
src/CryptoTokenKit/include/ACMDefs.h
··· 1 + #ifndef _ACMDEFS_H_ 2 + #define _ACMDEFS_H_ 3 + 4 + // No one knows what these are for 5 + 6 + // Someone please reverse-engineer this, 7 + // these are guessed and not verified 8 + 9 + #define kACMPolicyDeviceOwnerAuthentication "ACMPolicyDeviceOwnerAuthentication" 10 + #define kACMKeyAclConstraintPolicy "ACMKeyAclConstraintPolicy" 11 + 12 + #define kAKSKeyOpSync CFSTR("AKSKeyOpSync") 13 + #define kAKSKeyOpSign CFSTR("AKSKeyOpSign") 14 + #define kAKSKeyOpDelete CFSTR("AKSKeyOpDelete") 15 + #define kAKSKeyOpDecrypt CFSTR("AKSKeyOpDecrypt") 16 + #define kAKSKeyOpEncrypt CFSTR("AKSKeyOpEncrypt") 17 + #define kAKSKeyOpDelete CFSTR("AKSKeyOpDelete") 18 + 19 + #endif
+3
src/CryptoTokenKit/include/ctkclient.h
··· 3 3 4 4 #include <CoreFoundation/CoreFoundation.h> 5 5 6 + #include <ACMAclDefs.h> 7 + #include <ACMDefs.h> 8 + 6 9 CF_IMPLICIT_BRIDGING_ENABLED 7 10 CF_EXTERN_C_BEGIN 8 11
+19
src/CryptoTokenKit/include/ctkclient_test.h
··· 1 + #ifndef _CTK_CTKCLIENT_TEST_H_ 2 + #define _CTK_CTKCLIENT_TEST_H_ 3 + 4 + #include <ctkclient.h> 5 + 6 + struct TKTokenTestBlocks { 7 + void *createOrUpdateObject; 8 + void *copyObjectAccessControl; 9 + void *copyObjectData; 10 + void *copyPublicKeyData; 11 + void *deleteObject; 12 + void *copySignature; 13 + }; 14 + 15 + typedef struct TKTokenTestBlocks TKTokenTestBlocks; 16 + 17 + void TKTokenTestSetHook(void (^block)(CFDictionaryRef attributes, TKTokenTestBlocks *blocks)); 18 + 19 + #endif
+33
src/CryptoTokenKit/src/ctkclient.c
··· 1 + #include <ctkclient.h> 2 + 3 + CFDataRef TKTokenCopyObjectAccessControl(TKTokenRef token, CFDataRef object_id, CFErrorRef *error) { 4 + return NULL; 5 + } 6 + 7 + CFDataRef TKTokenCopyPublicKeyData(TKTokenRef token_id, CFDataRef objectID, CFErrorRef *error) { 8 + return NULL; 9 + } 10 + 11 + int TKTokenDeleteObject(TKTokenRef token, CFDataRef object_id, CFErrorRef *error) { 12 + return 0; 13 + } 14 + 15 + CFDataRef TKTokenCopySignature(TKTokenRef token, CFDataRef objectID, uint32_t padding, CFDataRef digest, CFErrorRef *error) { 16 + return NULL; 17 + } 18 + 19 + TKTokenRef TKTokenCreate(CFDictionaryRef token_attrs, CFErrorRef *error) { 20 + return NULL; 21 + } 22 + 23 + CFDataRef TKTokenCreateOrUpdateObject(TKTokenRef token, CFDataRef objectID, CFDictionaryRef token_attrs, CFErrorRef *error) { 24 + return NULL; 25 + } 26 + 27 + CFDataRef TKTokenCopyObjectData(TKTokenRef token, CFDataRef object_id, CFErrorRef *error) { 28 + return NULL; 29 + } 30 + 31 + CFDataRef TKTokenCopyObjectCreationAccessControl(TKTokenRef token, CFTypeRef object_or_attrs, CFErrorRef *error) { 32 + return NULL; 33 + }
+4
src/CryptoTokenKit/src/ctkclient_test.c
··· 1 + #include <ctkclient_test.h> 2 + 3 + void TKTokenTestSetHook(void (^block)(CFDictionaryRef attributes, TKTokenTestBlocks *blocks)) { 4 + }