• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Security-55471.14.18/libsecurity_keychain/lib/

Lines Matching defs:stringRef

639 				CFStringRef stringRef;
646 stringRef = (CFStringRef) kSecAttrKeyClassPublic;
649 stringRef = (CFStringRef) kSecAttrKeyClassPrivate;
652 stringRef = (CFStringRef) kSecAttrKeyClassSymmetric;
655 stringRef = CFStringCreateWithFormat(allocator, NULL, CFSTR("%d"), keyRecordValue);
658 if (stringRef) {
659 if (retainString) CFRetain(stringRef);
660 CFDictionaryAddValue(dictionaryRef, *(info[i].newItemType), stringRef);
661 CFRelease(stringRef);
670 stringRef = (CFStringRef) kSecAttrKeyTypeRSA;
673 stringRef = (CFStringRef) kSecAttrKeyTypeDSA;
676 stringRef = (CFStringRef) kSecAttrKeyTypeAES;
679 stringRef = (CFStringRef) kSecAttrKeyTypeDES;
682 stringRef = (CFStringRef) kSecAttrKeyType3DES;
685 stringRef = (CFStringRef) kSecAttrKeyTypeRC4;
688 stringRef = (CFStringRef) kSecAttrKeyTypeRC2;
691 stringRef = (CFStringRef) kSecAttrKeyTypeCAST;
694 stringRef = (CFStringRef) kSecAttrKeyTypeEC;
697 stringRef = CFStringCreateWithFormat(allocator, NULL, CFSTR("%d"), keyAlgValue);
701 if (stringRef) {
702 if (retainString) CFRetain(stringRef);
703 CFDictionaryAddValue(dictionaryRef, *(info[i].newItemType), stringRef);
704 CFRelease(stringRef);
709 stringRef = CFStringCreateWithBytes(allocator, (UInt8*)list.attr[i].data, list.attr[i].length, kCFStringEncodingUTF8, FALSE);
710 if (stringRef == NULL)
711 stringRef = (CFStringRef) CFRetain(kCFNull);
712 CFDictionaryAddValue(dictionaryRef, *(info[i].newItemType), stringRef);
713 CFRelease(stringRef);
722 CFStringRef stringRef = CFStringCreateWithBytes(allocator, (UInt8*)list.attr[i].data, list.attr[i].length, kCFStringEncodingUTF8, FALSE);
723 if (stringRef == NULL)
724 stringRef = (CFStringRef) CFRetain(kCFNull);
725 CFDictionaryAddValue(dictionaryRef, *(info[i].newItemType), stringRef);
726 CFRelease(stringRef);
925 CFStringRef stringRef;
932 stringRef = (CFStringRef) kSecAttrKeyClassPublic;
935 stringRef = (CFStringRef) kSecAttrKeyClassPrivate;
938 stringRef = (CFStringRef) kSecAttrKeyClassSymmetric;
941 stringRef = CFStringCreateWithFormat(allocator, NULL, CFSTR("%u"), (unsigned int)keyRecordValue);
944 if (stringRef) {
945 if (retainString) CFRetain(stringRef);
946 CFDictionaryAddValue(dict, *(intInfo->newItemType), stringRef);
947 CFRelease(stringRef);
956 stringRef = (CFStringRef) kSecAttrKeyTypeRSA;
959 stringRef = (CFStringRef) kSecAttrKeyTypeDSA;
962 stringRef = (CFStringRef) kSecAttrKeyTypeAES;
965 stringRef = (CFStringRef) kSecAttrKeyTypeDES;
968 stringRef = (CFStringRef) kSecAttrKeyType3DES;
971 stringRef = (CFStringRef) kSecAttrKeyTypeRC4;
974 stringRef = (CFStringRef) kSecAttrKeyTypeRC2;
977 stringRef = (CFStringRef) kSecAttrKeyTypeCAST;
980 stringRef = (CFStringRef) kSecAttrKeyTypeEC;
983 stringRef = CFStringCreateWithFormat(allocator, NULL, CFSTR("%u"), (unsigned int)keyAlgValue);
987 if (stringRef) {
988 if (retainString) CFRetain(stringRef);
989 CFDictionaryAddValue(dict, *(intInfo->newItemType), stringRef);
990 CFRelease(stringRef);
995 stringRef = CFStringCreateWithBytes(allocator, (UInt8*)attribute->data, attribute->length, kCFStringEncodingUTF8, FALSE);
996 if (stringRef == NULL)
997 stringRef = (CFStringRef) CFRetain(kCFNull);
998 CFDictionaryAddValue(dict, *(intInfo->newItemType), stringRef);
999 CFRelease(stringRef);
1008 CFStringRef stringRef = CFStringCreateWithBytes(allocator, (UInt8*)attribute->data, attribute->length, kCFStringEncodingUTF8, FALSE);
1009 if (stringRef == NULL)
1010 stringRef = (CFStringRef) CFRetain(kCFNull);
1011 CFDictionaryAddValue(dict, *(intInfo->newItemType), stringRef);
1012 CFRelease(stringRef);