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_integer64 (const int64_t *from, int64_t *to)
62 *to = *from;
67 der_copy_unsigned (const unsigned *from, unsigned *to)
69 *to = *from;
74 der_copy_unsigned64 (const uint64_t *from, uint64_t *to)
76 *to = *from;
81 der_copy_generalized_time (const time_t *from, time_t *to)
83 *to = *from;
88 der_copy_utctime (const time_t *from, time_t *to)
90 *to = *from;
95 der_copy_utf8string (const heim_utf8_string *from, heim_utf8_string *to)
97 return der_copy_general_string(from, to);
101 der_copy_printable_string (const heim_printable_string *from,
104 to->length = from->length;
108 memcpy(to->data, from->data, to->length);
114 der_copy_ia5_string (const heim_ia5_string *from,
117 return der_copy_printable_string(from, to);
121 der_copy_bmp_string (const heim_bmp_string *from, heim_bmp_string *to)
123 to->length = from->length;
127 memcpy(to->data, from->data, to->length * sizeof(to->data[0]));
132 der_copy_universal_string (const heim_universal_string *from,
135 to->length = from->length;
139 memcpy(to->data, from->data, to->length * sizeof(to->data[0]));
144 der_copy_visible_string (const heim_visible_string *from,
147 return der_copy_general_string(from, to);
151 der_copy_octet_string (const heim_octet_string *from, heim_octet_string *to)
153 to->length = from->length;
154 if (from->data == NULL) {
161 memcpy(to->data, from->data, to->length);
166 der_copy_heim_integer (const heim_integer *from, heim_integer *to)
168 to->length = from->length;
172 memcpy(to->data, from->data, to->length);
173 to->negative = from->negative;
178 der_copy_oid (const heim_oid *from, heim_oid *to)
180 to->length = from->length;
184 memcpy(to->components, from->components,
190 der_copy_bit_string (const heim_bit_string *from, heim_bit_string *to)
194 len = (from->length + 7) / 8;
195 to->length = from->length;
199 memcpy(to->data, from->data, len);