CssmDbAttributeInfo::CssmDbAttributeInfo(uint32 id, CSSM_DB_ATTRIBUTE_FORMAT vFormat) { clearPod(); AttributeNameFormat = CSSM_DB_ATTRIBUTE_NAME_AS_INTEGER; Label.AttributeID = id; AttributeFormat = vFormat; }
CssmDbAttributeInfo::CssmDbAttributeInfo(const CSSM_OID &oid, CSSM_DB_ATTRIBUTE_FORMAT vFormat) { clearPod(); AttributeNameFormat = CSSM_DB_ATTRIBUTE_NAME_AS_OID; Label.AttributeOID = oid; AttributeFormat = vFormat; }
// // CssmDbAttributeInfo // CssmDbAttributeInfo::CssmDbAttributeInfo(const char *name, CSSM_DB_ATTRIBUTE_FORMAT vFormat) { clearPod(); AttributeNameFormat = CSSM_DB_ATTRIBUTE_NAME_AS_STRING; Label.AttributeName = const_cast<char *>(name); // silly CDSA AttributeFormat = vFormat; }
CssmKey::CssmKey(uint32 length, void *data) { clearPod(); KeyData = CssmData(data, length); KeyHeader.HeaderVersion = CSSM_KEYHEADER_VERSION; KeyHeader.BlobType = CSSM_KEYBLOB_RAW; KeyHeader.Format = CSSM_KEYBLOB_RAW_FORMAT_NONE; }
CssmKey::CssmKey(const CSSM_DATA &keyData) { clearPod(); KeyData = keyData; KeyHeader.HeaderVersion = CSSM_KEYHEADER_VERSION; KeyHeader.BlobType = CSSM_KEYBLOB_RAW; KeyHeader.Format = CSSM_KEYBLOB_RAW_FORMAT_NONE; }
// // Construct an empty CertGroup. // CertGroup::CertGroup(CSSM_CERT_TYPE ctype, CSSM_CERT_ENCODING encoding, CSSM_CERTGROUP_TYPE type) { clearPod(); CertType = ctype; CertEncoding = encoding; CertGroupType = type; }
// // Construct an EncodedCertificate // EncodedCertificate::EncodedCertificate(CSSM_CERT_TYPE type, CSSM_CERT_ENCODING enc, const CSSM_DATA *data) { clearPod(); CertType = type; CertEncoding = enc; if (data) CertBlob = *data; }
// // A TPBuildVerifyContext // TPBuildVerifyContext::TPBuildVerifyContext(CSSM_TP_ACTION action, Allocator &alloc) : allocator(alloc) { // clear out the PODs clearPod(); mCallerAuth.clearPod(); mDlDbList.clearPod(); // set initial elements Action = action; callerAuthPtr(&mCallerAuth); mCallerAuth.dlDbList() = &mDlDbList; }
// // Construct Context objects // Context::Context(CSSM_CONTEXT_TYPE type, CSSM_ALGORITHMS algorithmId) { clearPod(); ContextType = type; AlgorithmType = algorithmId; }