Lines Matching refs:mp

32     nxt_mp_t          *mp;  member
46 static nxt_conf_value_t *nxt_cert_details(nxt_mp_t *mp, nxt_cert_t *cert);
47 static nxt_conf_value_t *nxt_cert_name_details(nxt_mp_t *mp, X509 *x509,
49 static nxt_conf_value_t *nxt_cert_alt_names_details(nxt_mp_t *mp,
368 nxt_mp_t *mp; in nxt_cert_info_save() local
374 mp = nxt_mp_create(1024, 128, 256, 32); in nxt_cert_info_save()
375 if (nxt_slow_path(mp == NULL)) { in nxt_cert_info_save()
379 info = nxt_mp_get(mp, sizeof(nxt_cert_info_t)); in nxt_cert_info_save()
384 name = nxt_str_dup(mp, &info->name, name); in nxt_cert_info_save()
389 value = nxt_cert_details(mp, cert); in nxt_cert_info_save()
394 info->mp = mp; in nxt_cert_info_save()
410 nxt_mp_destroy(info->mp); in nxt_cert_info_save()
417 nxt_mp_destroy(mp); in nxt_cert_info_save()
445 nxt_cert_info_get_all(nxt_mp_t *mp) in nxt_cert_info_get_all() argument
466 all = nxt_conf_create_object(mp, i); in nxt_cert_info_get_all()
492 nxt_cert_details(nxt_mp_t *mp, nxt_cert_t *cert) in nxt_cert_details() argument
513 object = nxt_conf_create_object(mp, 2); in nxt_cert_details()
546 ret = nxt_conf_set_member_string_dup(object, mp, &key_str, &str, 0); in nxt_cert_details()
556 chain = nxt_conf_create_array(mp, cert->count); in nxt_cert_details()
562 element = nxt_conf_create_object(mp, 3); in nxt_cert_details()
569 value = nxt_cert_name_details(mp, x509, 0); in nxt_cert_details()
576 value = nxt_cert_name_details(mp, x509, 1); in nxt_cert_details()
583 value = nxt_conf_create_object(mp, 2); in nxt_cert_details()
599 ret = nxt_conf_set_member_string_dup(value, mp, &since_str, &str, in nxt_cert_details()
622 ret = nxt_conf_set_member_string_dup(value, mp, &until_str, &str, in nxt_cert_details()
652 nxt_cert_name_details(nxt_mp_t *mp, X509 *x509, nxt_bool_t issuer) in nxt_cert_name_details() argument
693 names = nxt_cert_alt_names_details(mp, alt_names); in nxt_cert_name_details()
707 object = nxt_conf_create_object(mp, count); in nxt_cert_name_details()
728 ret = nxt_conf_set_member_string_dup(object, mp, &nids[n].name, in nxt_cert_name_details()
740 nxt_cert_alt_names_details(nxt_mp_t *mp, STACK_OF(GENERAL_NAME) *alt_names) in nxt_cert_alt_names_details() argument
761 array = nxt_conf_create_array(mp, n); in nxt_cert_alt_names_details()
780 ret = nxt_conf_set_element_string_dup(array, mp, i++, &str); in nxt_cert_alt_names_details()
805 nxt_mp_destroy(info->mp); in nxt_cert_info_delete()
814 nxt_cert_store_load(nxt_task_t *task, nxt_mp_t *mp) in nxt_cert_store_load() argument
834 certs = nxt_array_create(mp, 16, sizeof(nxt_cert_item_t)); in nxt_cert_store_load()
903 if (nxt_slow_path(nxt_str_dup(mp, &item->name, &name) == NULL)) { in nxt_cert_store_load()
1062 nxt_cert_store_get(nxt_task_t *task, nxt_str_t *name, nxt_mp_t *mp, in nxt_cert_store_get() argument
1071 b = nxt_buf_mem_alloc(mp, name->length + 1, 0); in nxt_cert_store_get()
1076 nxt_mp_retain(mp); in nxt_cert_store_get()
1111 nxt_mp_t *mp; in nxt_cert_buf_completion() local
1115 mp = b->data; in nxt_cert_buf_completion()
1118 nxt_mp_free(mp, b); in nxt_cert_buf_completion()
1119 nxt_mp_release(mp); in nxt_cert_buf_completion()
1192 nxt_cert_store_delete(nxt_task_t *task, nxt_str_t *name, nxt_mp_t *mp) in nxt_cert_store_delete() argument
1198 b = nxt_buf_mem_alloc(mp, name->length + 1, 0); in nxt_cert_store_delete()