Lines Matching defs:from
174 SECITEM_DupItem(const SecAsn1Item *from)
176 return SECITEM_ArenaDupItem(NULL, from);
180 SECITEM_ArenaDupItem(PRArenaPool *arena, const SecAsn1Item *from)
184 if ( from == NULL ) {
198 to->Data = (unsigned char *)PORT_ArenaAlloc(arena, from->Length);
200 to->Data = (unsigned char *)PORT_Alloc(from->Length);
207 to->Length = from->Length;
208 // to->type = from->type;
210 PORT_Memcpy(to->Data, from->Data, to->Length);
217 SECITEM_CopyItem(PRArenaPool *arena, SecAsn1Item *to, const SecAsn1Item *from)
219 // to->type = from->type;
220 if (from->Data && from->Length) {
222 to->Data = (unsigned char*) PORT_ArenaAlloc(arena, from->Length);
224 to->Data = (unsigned char*) PORT_Alloc(from->Length);
230 PORT_Memcpy(to->Data, from->Data, from->Length);
231 to->Length = from->Length;
266 /* these reroutines were taken from pkix oid.c, which is supposed to