Lines Matching refs:info
35 QLOG_TRACE_INFO info; member
55 QLOG *ossl_qlog_new(const QLOG_TRACE_INFO *info) in ossl_qlog_new() argument
62 qlog->info.odcid = info->odcid; in ossl_qlog_new()
63 qlog->info.is_server = info->is_server; in ossl_qlog_new()
64 qlog->info.now_cb = info->now_cb; in ossl_qlog_new()
65 qlog->info.now_cb_arg = info->now_cb_arg; in ossl_qlog_new()
66 qlog->info.override_process_id = info->override_process_id; in ossl_qlog_new()
68 if (info->title != NULL in ossl_qlog_new()
69 && (qlog->info.title = OPENSSL_strdup(info->title)) == NULL) in ossl_qlog_new()
72 if (info->description != NULL in ossl_qlog_new()
73 && (qlog->info.description = OPENSSL_strdup(info->description)) == NULL) in ossl_qlog_new()
76 if (info->group_id != NULL in ossl_qlog_new()
77 && (qlog->info.group_id = OPENSSL_strdup(info->group_id)) == NULL) in ossl_qlog_new()
80 if (info->override_impl_name != NULL in ossl_qlog_new()
81 && (qlog->info.override_impl_name in ossl_qlog_new()
82 = OPENSSL_strdup(info->override_impl_name)) == NULL) in ossl_qlog_new()
89 if (qlog->info.now_cb == NULL) in ossl_qlog_new()
90 qlog->info.now_cb = default_now; in ossl_qlog_new()
96 OPENSSL_free((char *)qlog->info.title); in ossl_qlog_new()
97 OPENSSL_free((char *)qlog->info.description); in ossl_qlog_new()
98 OPENSSL_free((char *)qlog->info.group_id); in ossl_qlog_new()
99 OPENSSL_free((char *)qlog->info.override_impl_name); in ossl_qlog_new()
105 QLOG *ossl_qlog_new_from_env(const QLOG_TRACE_INFO *info) in ossl_qlog_new_from_env() argument
113 if (info == NULL || qlogdir == NULL) in ossl_qlog_new_from_env()
123 strl = l + 1 + info->odcid.id_len * 2 + 1 + 6 + 6 + 1; in ossl_qlog_new_from_env()
132 for (i = 0; i < info->odcid.id_len; ++i) in ossl_qlog_new_from_env()
133 l += BIO_snprintf(filename + l, strl - l, "%02x", info->odcid.id[i]); in ossl_qlog_new_from_env()
136 info->is_server ? "server" : "client"); in ossl_qlog_new_from_env()
138 qlog = ossl_qlog_new(info); in ossl_qlog_new_from_env()
167 OPENSSL_free((char *)qlog->info.title); in ossl_qlog_free()
168 OPENSSL_free((char *)qlog->info.description); in ossl_qlog_free()
169 OPENSSL_free((char *)qlog->info.group_id); in ossl_qlog_free()
170 OPENSSL_free((char *)qlog->info.override_impl_name); in ossl_qlog_free()
291 write_str_once(qlog, "title", (char **)&qlog->info.title); in qlog_event_seq_header()
292 write_str_once(qlog, "description", (char **)&qlog->info.description); in qlog_event_seq_header()
310 write_str_once(qlog, "group_id", (char **)&qlog->info.group_id); in qlog_event_seq_header()
315 if (qlog->info.override_process_id != 0) { in qlog_event_seq_header()
317 ossl_json_u64(&qlog->json, qlog->info.override_process_id); in qlog_event_seq_header()
338 if (qlog->info.override_impl_name != NULL) { in qlog_event_seq_header()
339 p = qlog->info.override_impl_name; in qlog_event_seq_header()
348 qlog->info.is_server ? "server" : "client"); in qlog_event_seq_header()
412 qlog->event_time = qlog->info.now_cb(qlog->info.now_cb_arg); in ossl_qlog_event_try_begin()