Lines Matching full:to
20 * may be used to endorse or promote products derived from this software
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
42 heim_general_string *to) in der_copy_general_string() argument
44 *to = strdup(*from); in der_copy_general_string()
45 if(*to == NULL) 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()
100 heim_printable_string *to) in der_copy_printable_string() argument
102 to->length = from->length; in der_copy_printable_string()
103 to->data = malloc(to->length + 1); in der_copy_printable_string()
104 if(to->data == NULL) in der_copy_printable_string()
106 memcpy(to->data, from->data, to->length); in der_copy_printable_string()
107 ((char *)to->data)[to->length] = '\0'; in der_copy_printable_string()
113 heim_ia5_string *to) 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()
122 to->data = malloc(to->length * sizeof(to->data[0])); in der_copy_bmp_string()
123 if(to->length != 0 && to->data == NULL) in der_copy_bmp_string()
125 memcpy(to->data, from->data, to->length * sizeof(to->data[0])); in der_copy_bmp_string()
131 heim_universal_string *to) in der_copy_universal_string() argument
133 to->length = from->length; in der_copy_universal_string()
134 to->data = malloc(to->length * sizeof(to->data[0])); in der_copy_universal_string()
135 if(to->length != 0 && to->data == NULL) in der_copy_universal_string()
137 memcpy(to->data, from->data, to->length * sizeof(to->data[0])); in der_copy_universal_string()
143 heim_visible_string *to) 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()
153 to->data = NULL; in der_copy_octet_string()
156 to->data = malloc(to->length); in der_copy_octet_string()
157 if (to->length != 0 && to->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()
167 to->data = malloc(to->length); in der_copy_heim_integer()
168 if(to->length != 0 && to->data == NULL) 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()
179 to->components = malloc(to->length * sizeof(*to->components)); in der_copy_oid()
180 if (to->length != 0 && to->components == NULL) in der_copy_oid()
182 memcpy(to->components, from->components, in der_copy_oid()
183 to->length * sizeof(*to->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
193 to->length = from->length; in der_copy_bit_string()
194 to->data = malloc(len); in der_copy_bit_string()
195 if(len != 0 && to->data == NULL) in der_copy_bit_string()
197 memcpy(to->data, from->data, len); in der_copy_bit_string()