mirror of https://github.com/getdnsapi/getdns.git
Rename _getdns_tls_connection_verify() to _getdns_tls_connection_certificate_verify().
I managed to mislead myself about what it did, which suggests the name should be clearer.
This commit is contained in:
parent
b0c057e8ae
commit
64f0d6aaa8
|
@ -327,7 +327,7 @@ getdns_return_t _getdns_tls_connection_set_host_pinset(_getdns_tls_connection* c
|
||||||
return GETDNS_RETURN_GOOD;
|
return GETDNS_RETURN_GOOD;
|
||||||
}
|
}
|
||||||
|
|
||||||
getdns_return_t _getdns_tls_connection_verify(_getdns_tls_connection* conn, long* errnum, const char** errmsg)
|
getdns_return_t _getdns_tls_connection_certificate_verify(_getdns_tls_connection* conn, long* errnum, const char** errmsg)
|
||||||
{
|
{
|
||||||
(void) errnum;
|
(void) errnum;
|
||||||
(void) errmsg;
|
(void) errmsg;
|
||||||
|
|
|
@ -507,7 +507,7 @@ getdns_return_t _getdns_tls_connection_set_host_pinset(_getdns_tls_connection* c
|
||||||
return GETDNS_RETURN_GOOD;
|
return GETDNS_RETURN_GOOD;
|
||||||
}
|
}
|
||||||
|
|
||||||
getdns_return_t _getdns_tls_connection_verify(_getdns_tls_connection* conn, long* errnum, const char** errmsg)
|
getdns_return_t _getdns_tls_connection_certificate_verify(_getdns_tls_connection* conn, long* errnum, const char** errmsg)
|
||||||
{
|
{
|
||||||
if (!conn || !conn->ssl)
|
if (!conn || !conn->ssl)
|
||||||
return GETDNS_RETURN_INVALID_PARAMETER;
|
return GETDNS_RETURN_INVALID_PARAMETER;
|
||||||
|
|
|
@ -957,7 +957,7 @@ tls_do_handshake(getdns_upstream *upstream)
|
||||||
long verify_errno;
|
long verify_errno;
|
||||||
const char* verify_errmsg;
|
const char* verify_errmsg;
|
||||||
|
|
||||||
if (_getdns_tls_connection_verify(upstream->tls_obj, &verify_errno, &verify_errmsg)) {
|
if (_getdns_tls_connection_certificate_verify(upstream->tls_obj, &verify_errno, &verify_errmsg)) {
|
||||||
upstream->tls_auth_state = GETDNS_AUTH_OK;
|
upstream->tls_auth_state = GETDNS_AUTH_OK;
|
||||||
if (verify_errno != 0) {
|
if (verify_errno != 0) {
|
||||||
_getdns_upstream_log(upstream,
|
_getdns_upstream_log(upstream,
|
||||||
|
|
|
@ -271,7 +271,7 @@ getdns_return_t _getdns_tls_connection_set_host_pinset(_getdns_tls_connection* c
|
||||||
* @return GETDNS_RETURN_INVALID_PARAMETER if conn is null or has no SSL.
|
* @return GETDNS_RETURN_INVALID_PARAMETER if conn is null or has no SSL.
|
||||||
* @return GETDNS_RETURN_GENERIC_ERROR if verification failed.
|
* @return GETDNS_RETURN_GENERIC_ERROR if verification failed.
|
||||||
*/
|
*/
|
||||||
getdns_return_t _getdns_tls_connection_verify(_getdns_tls_connection* conn, long* errnum, const char** errmsg);
|
getdns_return_t _getdns_tls_connection_certificate_verify(_getdns_tls_connection* conn, long* errnum, const char** errmsg);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read from TLS.
|
* Read from TLS.
|
||||||
|
|
Loading…
Reference in New Issue