to->type = from->type;
SECITEM_CopyItem(PRArenaPool *arena, SECItem *to, const SECItem *from){    if (from->data && from->len) {	if ( arena ) {	    to->data = (unsigned char*) PORT_ArenaAlloc(arena, from->len);	} else {	    to->data = (unsigned char*) PORT_Alloc(from->len);	}		if (!to->data) {	    return SECFailure;	}	PORT_Memcpy(to->data, from->data, from->len);	to->len = from->len;    } else {	to->data = 0;	to->len = 0;    }    return SECSuccess;}