Fix typo and use net__print_ssl_error() as available.

pull/418/head
Roger A. Light 9 years ago
parent cd0985c3e2
commit ac981782db

@ -340,11 +340,8 @@ int net__socket_connect_tls(struct mosquitto *mosq)
mosq->want_write = true;
mosq->want_connect = true;
}else{
e = ERR_get_error();
while(e){
_mosquitto_log_printf(mosq, MOSQ_LOG_ERR, "OpenSSL Error: %s", ERR_error_string(e, ebuf));
e = ERR_get_error();
}
net__print_ssl_error(mosq);
COMPAT_CLOSE(mosq->sock);
mosq->sock = INVALID_SOCKET;
net__print_ssl_error(mosq);

@ -64,7 +64,7 @@ int mosquitto__server_certificate_verify(int preverify_ok, X509_STORE_CTX *ctx)
preverify_ok = mosquitto__verify_certificate_hostname(cert, mosq->host);
#endif
if (preverify_ok != 1) {
_mosquitto_log_printf(mosq, MOSQ_LOG_ERR, "Error: host name verification failed.");
log__printf(mosq, MOSQ_LOG_ERR, "Error: host name verification failed.");
}
return preverify_ok;
}else{

Loading…
Cancel
Save