Lines Matching full:from
20 * may be used to endorse or promote products derived from this software
41 der_copy_general_string (const heim_general_string *from, in der_copy_general_string() argument
44 *to = strdup(*from); in der_copy_general_string()
51 der_copy_integer (const int *from, int *to) in der_copy_integer() argument
53 *to = *from; in der_copy_integer()
58 der_copy_integer64 (const int64_t *from, int64_t *to) in der_copy_integer64() argument
60 *to = *from; in der_copy_integer64()
65 der_copy_unsigned (const unsigned *from, unsigned *to) in der_copy_unsigned() argument
67 *to = *from; in der_copy_unsigned()
72 der_copy_unsigned64 (const uint64_t *from, uint64_t *to) in der_copy_unsigned64() argument
74 *to = *from; in der_copy_unsigned64()
79 der_copy_generalized_time (const time_t *from, time_t *to) in der_copy_generalized_time() argument
81 *to = *from; in der_copy_generalized_time()
86 der_copy_utctime (const time_t *from, time_t *to) in der_copy_utctime() argument
88 *to = *from; in der_copy_utctime()
93 der_copy_utf8string (const heim_utf8_string *from, heim_utf8_string *to) in der_copy_utf8string() argument
95 return der_copy_general_string(from, to); in der_copy_utf8string()
99 der_copy_printable_string (const heim_printable_string *from, in der_copy_printable_string() argument
102 to->length = from->length; in der_copy_printable_string()
106 memcpy(to->data, from->data, to->length); in der_copy_printable_string()
112 der_copy_ia5_string (const heim_ia5_string *from, in der_copy_ia5_string() argument
115 return der_copy_printable_string(from, to); in der_copy_ia5_string()
119 der_copy_bmp_string (const heim_bmp_string *from, heim_bmp_string *to) in der_copy_bmp_string() argument
121 to->length = from->length; in der_copy_bmp_string()
125 memcpy(to->data, from->data, to->length * sizeof(to->data[0])); in der_copy_bmp_string()
130 der_copy_universal_string (const heim_universal_string *from, in der_copy_universal_string() argument
133 to->length = from->length; in der_copy_universal_string()
137 memcpy(to->data, from->data, to->length * sizeof(to->data[0])); in der_copy_universal_string()
142 der_copy_visible_string (const heim_visible_string *from, in der_copy_visible_string() argument
145 return der_copy_general_string(from, to); in der_copy_visible_string()
149 der_copy_octet_string (const heim_octet_string *from, heim_octet_string *to) in der_copy_octet_string() argument
151 to->length = from->length; in der_copy_octet_string()
152 if (from->data == NULL) { in der_copy_octet_string()
159 memcpy(to->data, from->data, to->length); in der_copy_octet_string()
164 der_copy_heim_integer (const heim_integer *from, heim_integer *to) in der_copy_heim_integer() argument
166 to->length = from->length; in der_copy_heim_integer()
170 memcpy(to->data, from->data, to->length); in der_copy_heim_integer()
171 to->negative = from->negative; in der_copy_heim_integer()
176 der_copy_oid (const heim_oid *from, heim_oid *to) in der_copy_oid() argument
178 to->length = from->length; in der_copy_oid()
182 memcpy(to->components, from->components, in der_copy_oid()
188 der_copy_bit_string (const heim_bit_string *from, heim_bit_string *to) in der_copy_bit_string() argument
192 len = (from->length + 7) / 8; in der_copy_bit_string()
193 to->length = from->length; in der_copy_bit_string()
197 memcpy(to->data, from->data, len); in der_copy_bit_string()