OSStatus SecAsn1AllocCopyItem(
	SecAsn1CoderRef			coder,
	const SecAsn1Item			*src,
	SecAsn1Item				*dest)
{
	return SecAsn1AllocCopy(coder, src->Data, src->Length, dest);
}
Example #2
0
krb5_error_code pkiKrb5DataToCssm(
    const krb5_data *kd,
    CSSM_DATA       *cd,
    SecAsn1CoderRef coder)
{
    assert((cd != NULL) && (kd != NULL));
    if(SecAsn1AllocCopy(coder, kd->data, kd->length, cd)) {
        return ENOMEM;
    }
    return 0;
}