commit b02428a8bbb5a15f15788b37d8917a9685cb4446
parent fdbc957f70fe231b31e3deb76c93e875e0e6fc1d
Author: Kyle Milz <krwmilz@gmail.com>
Date: Sat, 18 Sep 2021 20:49:08 +0000
url->port was changed to a string, use %s to print
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/http.c b/http.c
@@ -171,7 +171,7 @@ tls_connect(int server, struct url *url)
SSL_set_fd(tls, server);
if ((ret = SSL_connect(tls)) != 1) {
- warning_popup_long("%s:%i: Cannot make TLS connection",
+ warning_popup_long("%s:%s: Cannot make TLS connection",
"OK", NULL, url->hostname, url->port);
/* Print SSL_strerror(tls, ret)); too? */
@@ -179,7 +179,7 @@ tls_connect(int server, struct url *url)
}
if ((cert = SSL_get_peer_certificate(tls)) == NULL) {
- warning_popup_long("%s:%i: No TLS certificate was presented by peer",
+ warning_popup_long("%s:%s: No TLS certificate was presented by peer",
"OK", NULL, url->hostname, url->port);
return NULL;
}
@@ -198,7 +198,7 @@ tls_connect(int server, struct url *url)
fprint_type = EVP_sha256();
if (!X509_digest(cert, fprint_type, fprint, &fprint_size)) {
- warning_popup_long("%s:%i: Cannot create TLS certificate fingerprint",
+ warning_popup_long("%s:%s: Cannot create TLS certificate fingerprint",
"OK", NULL, url->hostname, url->port);
return NULL;
}
@@ -216,7 +216,7 @@ tls_connect(int server, struct url *url)
/* Get certificate public key. */
if ((pkey = X509_get_pubkey(cert)) == NULL) {
- warning_popup_long("%s:%i: No public key in certificate.",
+ warning_popup_long("%s:%s: No public key in certificate.",
"OK", NULL, url->hostname, url->port);
return NULL;
}