Lines Matching full:ext
78 * Replace the extension `ext' in `entry'. Make a copy of the
79 * extension, so the caller must still free `ext' on both success and
86 const HDB_extension *ext) in hdb_replace_extension() argument
100 } else if (ext->data.element != choice_HDB_extension_data_asn1_ellipsis) { in hdb_replace_extension()
101 ext2 = hdb_find_extension(entry, ext->data.element); in hdb_replace_extension()
117 ret = der_get_tag(ext->data.u.asn1_ellipsis.data, in hdb_replace_extension()
118 ext->data.u.asn1_ellipsis.length, in hdb_replace_extension()
153 ret = copy_HDB_extension(ext, ext2); in hdb_replace_extension()
168 ret = copy_HDB_extension(ext, in hdb_replace_extension()
210 const HDB_extension *ext; in hdb_entry_get_pkinit_acl() local
212 ext = hdb_find_extension(entry, choice_HDB_extension_data_pkinit_acl); in hdb_entry_get_pkinit_acl()
213 if (ext) in hdb_entry_get_pkinit_acl()
214 *a = &ext->data.u.pkinit_acl; in hdb_entry_get_pkinit_acl()
224 const HDB_extension *ext; in hdb_entry_get_pkinit_hash() local
226 ext = hdb_find_extension(entry, choice_HDB_extension_data_pkinit_cert_hash); in hdb_entry_get_pkinit_hash()
227 if (ext) in hdb_entry_get_pkinit_hash()
228 *a = &ext->data.u.pkinit_cert_hash; in hdb_entry_get_pkinit_hash()
238 const HDB_extension *ext; in hdb_entry_get_pkinit_cert() local
240 ext = hdb_find_extension(entry, choice_HDB_extension_data_pkinit_cert); in hdb_entry_get_pkinit_cert()
241 if (ext) in hdb_entry_get_pkinit_cert()
242 *a = &ext->data.u.pkinit_cert; in hdb_entry_get_pkinit_cert()
252 const HDB_extension *ext; in hdb_entry_get_pw_change_time() local
254 ext = hdb_find_extension(entry, choice_HDB_extension_data_last_pw_change); in hdb_entry_get_pw_change_time()
255 if (ext) in hdb_entry_get_pw_change_time()
256 *t = ext->data.u.last_pw_change; in hdb_entry_get_pw_change_time()
268 HDB_extension ext; in hdb_entry_set_pw_change_time() local
270 ext.mandatory = FALSE; in hdb_entry_set_pw_change_time()
271 ext.data.element = choice_HDB_extension_data_last_pw_change; in hdb_entry_set_pw_change_time()
274 ext.data.u.last_pw_change = t; in hdb_entry_set_pw_change_time()
276 return hdb_replace_extension(context, entry, &ext); in hdb_entry_set_pw_change_time()
283 HDB_extension *ext; in hdb_entry_get_password() local
287 ext = hdb_find_extension(entry, choice_HDB_extension_data_password); in hdb_entry_get_password()
288 if (ext) { in hdb_entry_get_password()
292 if (db->hdb_master_key_set && ext->data.u.password.mkvno) { in hdb_entry_get_password()
295 key = _hdb_find_master_key(ext->data.u.password.mkvno, in hdb_entry_get_password()
301 *ext->data.u.password.mkvno); in hdb_entry_get_password()
306 ext->data.u.password.password.data, in hdb_entry_get_password()
307 ext->data.u.password.password.length, in hdb_entry_get_password()
310 ret = der_copy_octet_string(&ext->data.u.password.password, &pw); in hdb_entry_get_password()
348 HDB_extension ext; in hdb_entry_set_password() local
352 ext.mandatory = FALSE; in hdb_entry_set_password()
353 ext.data.element = choice_HDB_extension_data_password; in hdb_entry_set_password()
367 &ext.data.u.password.password); in hdb_entry_set_password()
371 ext.data.u.password.mkvno = in hdb_entry_set_password()
372 malloc(sizeof(*ext.data.u.password.mkvno)); in hdb_entry_set_password()
373 if (ext.data.u.password.mkvno == NULL) { in hdb_entry_set_password()
374 free_HDB_extension(&ext); in hdb_entry_set_password()
378 *ext.data.u.password.mkvno = _hdb_mkey_version(key); in hdb_entry_set_password()
381 ext.data.u.password.mkvno = NULL; in hdb_entry_set_password()
383 ret = krb5_data_copy(&ext.data.u.password.password, in hdb_entry_set_password()
387 free_HDB_extension(&ext); in hdb_entry_set_password()
392 ret = hdb_replace_extension(context, entry, &ext); in hdb_entry_set_password()
394 free_HDB_extension(&ext); in hdb_entry_set_password()
410 const HDB_extension *ext; in hdb_entry_get_ConstrainedDelegACL() local
412 ext = hdb_find_extension(entry, in hdb_entry_get_ConstrainedDelegACL()
414 if (ext) in hdb_entry_get_ConstrainedDelegACL()
415 *a = &ext->data.u.allowed_to_delegate_to; in hdb_entry_get_ConstrainedDelegACL()
425 const HDB_extension *ext; in hdb_entry_get_aliases() local
427 ext = hdb_find_extension(entry, choice_HDB_extension_data_aliases); in hdb_entry_get_aliases()
428 if (ext) in hdb_entry_get_aliases()
429 *a = &ext->data.u.aliases; in hdb_entry_get_aliases()