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

Lines Matching refs:attr

100 			mDbAttributes->add(Schema::attributeInfo(attrList->attr[i].tag), CssmData(attrList->attr[i].data,  attrList->attr[i].length));
572 ItemImpl::getClass(SecKeychainAttribute &attr, UInt32 *actualLength)
578 if (attr.length < sizeof(SecItemClass))
582 memcpy(attr.data, &aClass, sizeof(SecItemClass));
586 ItemImpl::setAttribute(SecKeychainAttribute& attr)
589 setAttribute(Schema::attributeInfo(attr.tag), CssmData(attr.data, attr.length));
736 SecKeychainAttrType attrTag = attrList->attr[ix].tag;
745 mDbAttributes->add(Schema::attributeInfo(attrTag), CssmData(attrList->attr[ix].data, attrList->attr[ix].length));
786 dbAttributes.add(Schema::attributeInfo(attrList->attr[ix].tag));
798 attrList->attr[ix].data = dbAttributes.at(ix).Value[0].Data;
799 attrList->attr[ix].length = (UInt32)dbAttributes.at(ix).Value[0].Length;
807 attrList->attr[ix].data = NULL;
808 attrList->attr[ix].length = 0;
850 allocator.free(attrList->attr[ix].data);
851 attrList->attr[ix].data = NULL;
874 SecKeychainAttrType attrTag = attrList->attr[ix].tag;
886 if (attrList->attr[ix].length || info.AttributeFormat==CSSM_DB_ATTRIBUTE_FORMAT_STRING || info.AttributeFormat==CSSM_DB_ATTRIBUTE_FORMAT_BLOB
889 mDbAttributes->add(info, CssmData(attrList->attr[ix].data, attrList->attr[ix].length));
946 SecKeychainAttribute *attr=reinterpret_cast<SecKeychainAttribute *>(malloc(sizeof(SecKeychainAttribute)*attrCount));
948 theList->attr=attr;
952 attr[ix].tag=info->tag[ix];
956 attr[ix].data = dbAttributes.at(ix).Value[0].Data;
957 attr[ix].length = (UInt32)dbAttributes.at(ix).Value[0].Length;
965 attr[ix].data = NULL;
966 attr[ix].length = 0;
1002 allocator.free(attrList->attr[ix].data);
1004 free(attrList->attr);
1010 ItemImpl::getAttribute(SecKeychainAttribute& attr, UInt32 *actualLength)
1013 if (attr.tag == kSecClassItemAttr)
1014 return getClass(attr, actualLength);
1018 CssmDbAttributeData *data = mDbAttributes->find(Schema::attributeInfo(attr.tag));
1021 getAttributeFrom(data, attr, actualLength);
1031 dbAttributes.add(Schema::attributeInfo(attr.tag));
1033 getAttributeFrom(&dbAttributes.at(0), attr, actualLength);
1037 ItemImpl::getAttributeFrom(CssmDbAttributeData *data, SecKeychainAttribute &attr, UInt32 *actualLength)
1074 if (attr.length == sizeof(sint8))
1076 length = attr.length;
1080 else if (attr.length == sizeof(sint16))
1082 length = attr.length;
1089 if (attr.length == sizeof(uint8))
1091 length = attr.length;
1095 else if (attr.length == sizeof(uint16))
1097 length = attr.length;
1104 if (attr.length == sizeof(uint32))
1108 length = attr.length;
1110 else if (attr.length == sizeof(sint64))
1114 length = attr.length;
1124 if (attr.length < length)
1127 memcpy(attr.data, buf, length);
1200 SecKeychainAttribute &attribute = attributeList->attr[ix];