Fix compiling for debugging

This commit is contained in:
Willem Toorop 2019-04-03 11:51:35 +02:00
parent 8a2b4e0aa0
commit b6e290f42a
2 changed files with 2 additions and 3 deletions

View File

@ -914,7 +914,7 @@ getdns_return_t _getdns_tls_connection_set_host_pinset(_getdns_tls_connection* c
int osr = SSL_dane_enable(conn->ssl, *auth_name ? auth_name : NULL); int osr = SSL_dane_enable(conn->ssl, *auth_name ? auth_name : NULL);
(void) osr; (void) osr;
DEBUG_STUB("%s %-35s: DEBUG: SSL_dane_enable(\"%s\") -> %d\n" DEBUG_STUB("%s %-35s: DEBUG: SSL_dane_enable(\"%s\") -> %d\n"
, STUB_DEBUG_SETUP_TLS, __FUNC__, upstream->tls_auth_name, osr); , STUB_DEBUG_SETUP_TLS, __FUNC__, auth_name, osr);
SSL_set_verify(conn->ssl, SSL_VERIFY_PEER, _getdns_tls_verify_always_ok); SSL_set_verify(conn->ssl, SSL_VERIFY_PEER, _getdns_tls_verify_always_ok);
const sha256_pin_t *pin_p; const sha256_pin_t *pin_p;
size_t n_pins = 0; size_t n_pins = 0;

View File

@ -967,8 +967,7 @@ tls_do_handshake(getdns_upstream *upstream)
return STUB_TCP_RETRY; return STUB_TCP_RETRY;
default: default:
DEBUG_STUB("%s %-35s: FD: %d Handshake failed %d\n", DEBUG_STUB("%s %-35s: FD: %d Handshake failed %d\n",
STUB_DEBUG_SETUP_TLS, __FUNC__, upstream->fd, STUB_DEBUG_SETUP_TLS, __FUNC__, upstream->fd, r);
want);
return STUB_SETUP_ERROR; return STUB_SETUP_ERROR;
} }
} }