mirror of https://github.com/getdnsapi/getdns.git
working prototype 3
This commit is contained in:
parent
80864655d7
commit
25f7f2182b
|
@ -994,6 +994,7 @@ getdns_pp_dict(gldns_buffer * buf, size_t indent,
|
|||
strcmp(item->node.key, "status") == 0 ||
|
||||
strcmp(item->node.key, "append_name") == 0 ||
|
||||
strcmp(item->node.key, "follow_redirects") == 0 ||
|
||||
strcmp(item->node.key, "transport") == 0 ||
|
||||
strcmp(item->node.key, "resolution_type") == 0) &&
|
||||
(strval =
|
||||
_getdns_get_const_info(item->i.data.n)->name)) {
|
||||
|
|
|
@ -727,9 +727,11 @@ _getdns_create_call_debugging_dict(getdns_context *context,
|
|||
/* Only include the auth status if TLS was used */
|
||||
if (netreq->upstream->transport == GETDNS_TRANSPORT_TLS) {
|
||||
if (getdns_dict_util_set_string(netreq_debug, "tls_auth",
|
||||
netreq->debug_tls_auth_status == 0 ? "OK" : "FAILED")) {
|
||||
getdns_dict_destroy(netreq_debug);
|
||||
return NULL;
|
||||
netreq->debug_tls_auth_status == 0 ?
|
||||
"OK: Hostname matched valid cert." :
|
||||
"FAILED: Server not validated.")) {
|
||||
getdns_dict_destroy(netreq_debug);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue