コード例 #1
0
CssmDbAttributeInfo::CssmDbAttributeInfo(uint32 id, CSSM_DB_ATTRIBUTE_FORMAT vFormat)
{
	clearPod();
	AttributeNameFormat = CSSM_DB_ATTRIBUTE_NAME_AS_INTEGER;
	Label.AttributeID = id;
	AttributeFormat = vFormat;
}
コード例 #2
0
CssmDbAttributeInfo::CssmDbAttributeInfo(const CSSM_OID &oid, CSSM_DB_ATTRIBUTE_FORMAT vFormat)
{
	clearPod();
	AttributeNameFormat = CSSM_DB_ATTRIBUTE_NAME_AS_OID;
	Label.AttributeOID = oid;
	AttributeFormat = vFormat;
}
コード例 #3
0
//
// 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;
}
コード例 #4
0
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;
}
コード例 #5
0
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;
}
コード例 #6
0
ファイル: cssmcert.cpp プロジェクト: Proteas/codesign
//
// 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;
}
コード例 #7
0
ファイル: cssmcert.cpp プロジェクト: Proteas/codesign
//
// 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;
}
コード例 #8
0
//
// 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;
}
コード例 #9
0
//
// Construct Context objects
//
Context::Context(CSSM_CONTEXT_TYPE type, CSSM_ALGORITHMS algorithmId)
{
	clearPod();
	ContextType = type;
	AlgorithmType = algorithmId;
}