Lines Matching refs:txt
97 char *txt; in debug_dump() local
108 txt = os_malloc(len + 1); in debug_dump()
109 if (txt == NULL) in debug_dump()
111 os_memcpy(txt, buf, len); in debug_dump()
112 txt[len] = '\0'; in debug_dump()
115 if (txt[len] == '\n' || txt[len] == '\r') in debug_dump()
116 txt[len] = '\0'; in debug_dump()
120 wpa_printf(MSG_MSGDUMP, "%s[%s]", title, txt); in debug_dump()
121 os_free(txt); in debug_dump()
183 char *txt; in debug_dump_cert() local
192 txt = os_malloc(rlen + 1); in debug_dump_cert()
193 if (txt) { in debug_dump_cert()
194 int res = BIO_read(out, txt, rlen); in debug_dump_cert()
196 txt[res] = '\0'; in debug_dump_cert()
197 wpa_printf(MSG_MSGDUMP, "%s:\n%s", title, txt); in debug_dump_cert()
199 os_free(txt); in debug_dump_cert()
208 char txt[100]; in add_alt_name_othername() local
221 res = OBJ_obj2txt(txt, sizeof(txt), o->type_id, 1); in add_alt_name_othername()
222 if (res < 0 || res >= (int) sizeof(txt)) in add_alt_name_othername()
225 on->oid = os_strdup(txt); in add_alt_name_othername()
459 char txt[100]; in DEFINE_STACK_OF() local
466 res = OBJ_obj2txt(txt, sizeof(txt), hash->hashAlg->algorithm, 1); in DEFINE_STACK_OF()
467 if (res < 0 || res >= (int) sizeof(txt)) in DEFINE_STACK_OF()
478 n->alg_oid = os_strdup(txt); in DEFINE_STACK_OF()
530 char txt[100]; in add_logo_direct() local
536 res = OBJ_obj2txt(txt, sizeof(txt), in add_logo_direct()
538 if (res < 0 || res >= (int) sizeof(txt)) in add_logo_direct()
540 if (os_strcmp(txt, "2.16.840.1.101.3.4.2.1") == 0) { in add_logo_direct()
1050 char *txt; in ocsp_debug_print_resp() local
1059 txt = os_malloc(rlen + 1); in ocsp_debug_print_resp()
1060 if (!txt) { in ocsp_debug_print_resp()
1065 res = BIO_read(out, txt, rlen); in ocsp_debug_print_resp()
1067 txt[res] = '\0'; in ocsp_debug_print_resp()
1068 wpa_printf(MSG_MSGDUMP, "OpenSSL: OCSP Response\n%s", txt); in ocsp_debug_print_resp()
1070 os_free(txt); in ocsp_debug_print_resp()
1075 static void tls_show_errors(const char *func, const char *txt) in tls_show_errors() argument
1080 func, txt, ERR_error_string(ERR_get_error(), NULL)); in tls_show_errors()