Lines Matching refs:from

22  *    may be used to endorse or promote products derived from this software
43 der_copy_general_string (const heim_general_string *from,
46 *to = strdup(*from);
53 der_copy_integer (const int *from, int *to)
55 *to = *from;
60 der_copy_unsigned (const unsigned *from, unsigned *to)
62 *to = *from;
67 der_copy_generalized_time (const time_t *from, time_t *to)
69 *to = *from;
74 der_copy_utctime (const time_t *from, time_t *to)
76 *to = *from;
81 der_copy_utf8string (const heim_utf8_string *from, heim_utf8_string *to)
83 return der_copy_general_string(from, to);
87 der_copy_printable_string (const heim_printable_string *from,
90 to->length = from->length;
94 memcpy(to->data, from->data, to->length);
100 der_copy_ia5_string (const heim_ia5_string *from,
103 return der_copy_printable_string(from, to);
107 der_copy_bmp_string (const heim_bmp_string *from, heim_bmp_string *to)
109 to->length = from->length;
113 memcpy(to->data, from->data, to->length * sizeof(to->data[0]));
118 der_copy_universal_string (const heim_universal_string *from,
121 to->length = from->length;
125 memcpy(to->data, from->data, to->length * sizeof(to->data[0]));
130 der_copy_visible_string (const heim_visible_string *from,
133 return der_copy_general_string(from, to);
137 der_copy_octet_string (const heim_octet_string *from, heim_octet_string *to)
139 to->length = from->length;
143 memcpy(to->data, from->data, to->length);
148 der_copy_heim_integer (const heim_integer *from, heim_integer *to)
150 to->length = from->length;
154 memcpy(to->data, from->data, to->length);
155 to->negative = from->negative;
160 der_copy_oid (const heim_oid *from, heim_oid *to)
162 to->length = from->length;
166 memcpy(to->components, from->components,
172 der_copy_bit_string (const heim_bit_string *from, heim_bit_string *to)
176 len = (from->length + 7) / 8;
177 to->length = from->length;
181 memcpy(to->data, from->data, len);