• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/Security-57031.1.35/Security/include/security_keychain/

Lines Matching defs:stringRef

641 				CFStringRef stringRef;
648 stringRef = (CFStringRef) kSecAttrKeyClassPublic;
651 stringRef = (CFStringRef) kSecAttrKeyClassPrivate;
654 stringRef = (CFStringRef) kSecAttrKeyClassSymmetric;
657 stringRef = CFStringCreateWithFormat(allocator, NULL, CFSTR("%d"), keyRecordValue);
660 if (stringRef) {
661 if (retainString) CFRetain(stringRef);
662 CFDictionaryAddValue(dictionaryRef, *(info[i].newItemType), stringRef);
663 CFRelease(stringRef);
672 stringRef = (CFStringRef) kSecAttrKeyTypeRSA;
675 stringRef = (CFStringRef) kSecAttrKeyTypeDSA;
678 stringRef = (CFStringRef) kSecAttrKeyTypeAES;
681 stringRef = (CFStringRef) kSecAttrKeyTypeDES;
684 stringRef = (CFStringRef) kSecAttrKeyType3DES;
687 stringRef = (CFStringRef) kSecAttrKeyTypeRC4;
690 stringRef = (CFStringRef) kSecAttrKeyTypeRC2;
693 stringRef = (CFStringRef) kSecAttrKeyTypeCAST;
696 stringRef = (CFStringRef) kSecAttrKeyTypeEC;
699 stringRef = CFStringCreateWithFormat(allocator, NULL, CFSTR("%d"), keyAlgValue);
703 if (stringRef) {
704 if (retainString) CFRetain(stringRef);
705 CFDictionaryAddValue(dictionaryRef, *(info[i].newItemType), stringRef);
706 CFRelease(stringRef);
711 stringRef = CFStringCreateWithBytes(allocator, (UInt8*)list.attr[i].data, list.attr[i].length, kCFStringEncodingUTF8, FALSE);
712 if (stringRef == NULL)
713 stringRef = (CFStringRef) CFRetain(kCFNull);
714 CFDictionaryAddValue(dictionaryRef, *(info[i].newItemType), stringRef);
715 CFRelease(stringRef);
724 CFStringRef stringRef = CFStringCreateWithBytes(allocator, (UInt8*)list.attr[i].data, list.attr[i].length, kCFStringEncodingUTF8, FALSE);
725 if (stringRef == NULL)
726 stringRef = (CFStringRef) CFRetain(kCFNull);
727 CFDictionaryAddValue(dictionaryRef, *(info[i].newItemType), stringRef);
728 CFRelease(stringRef);
927 CFStringRef stringRef;
934 stringRef = (CFStringRef) kSecAttrKeyClassPublic;
937 stringRef = (CFStringRef) kSecAttrKeyClassPrivate;
940 stringRef = (CFStringRef) kSecAttrKeyClassSymmetric;
943 stringRef = CFStringCreateWithFormat(allocator, NULL, CFSTR("%u"), (unsigned int)keyRecordValue);
946 if (stringRef) {
947 if (retainString) CFRetain(stringRef);
948 CFDictionaryAddValue(dict, *(intInfo->newItemType), stringRef);
949 CFRelease(stringRef);
958 stringRef = (CFStringRef) kSecAttrKeyTypeRSA;
961 stringRef = (CFStringRef) kSecAttrKeyTypeDSA;
964 stringRef = (CFStringRef) kSecAttrKeyTypeAES;
967 stringRef = (CFStringRef) kSecAttrKeyTypeDES;
970 stringRef = (CFStringRef) kSecAttrKeyType3DES;
973 stringRef = (CFStringRef) kSecAttrKeyTypeRC4;
976 stringRef = (CFStringRef) kSecAttrKeyTypeRC2;
979 stringRef = (CFStringRef) kSecAttrKeyTypeCAST;
982 stringRef = (CFStringRef) kSecAttrKeyTypeEC;
985 stringRef = CFStringCreateWithFormat(allocator, NULL, CFSTR("%u"), (unsigned int)keyAlgValue);
989 if (stringRef) {
990 if (retainString) CFRetain(stringRef);
991 CFDictionaryAddValue(dict, *(intInfo->newItemType), stringRef);
992 CFRelease(stringRef);
997 stringRef = CFStringCreateWithBytes(allocator, (UInt8*)attribute->data, attribute->length, kCFStringEncodingUTF8, FALSE);
998 if (stringRef == NULL)
999 stringRef = (CFStringRef) CFRetain(kCFNull);
1000 CFDictionaryAddValue(dict, *(intInfo->newItemType), stringRef);
1001 CFRelease(stringRef);
1010 CFStringRef stringRef = CFStringCreateWithBytes(allocator, (UInt8*)attribute->data, attribute->length, kCFStringEncodingUTF8, FALSE);
1011 if (stringRef == NULL)
1012 stringRef = (CFStringRef) CFRetain(kCFNull);
1013 CFDictionaryAddValue(dict, *(intInfo->newItemType), stringRef);
1014 CFRelease(stringRef);