commit 4e2b23c8dce367ea030751f783afd7231c422735
parent 883d4edc762205546a9a7219b524c59cc3f986b0
Author: Kyle Milz <krwmilz@gmail.com>
Date: Tue, 21 Sep 2021 16:34:45 +0000
silence a compiler warning
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/http.c b/http.c
@@ -145,7 +145,6 @@ tls_connect(int server, struct url *url)
SSL_CTX *ctx;
SSL *tls;
X509 *cert = NULL;
- X509_NAME *certname = NULL;
unsigned int ret, fprint_size;
const EVP_MD *fprint_type;
unsigned char fprint[EVP_MAX_MD_SIZE];
@@ -181,10 +180,11 @@ tls_connect(int server, struct url *url)
return NULL;
}
+#ifdef notyet
+ X509_NAME *certname = NULL;
certname = X509_NAME_new();
certname = X509_get_subject_name(cert);
-#ifdef notyet
BIO outbio = BIO_new_fp(stdout, BIO_NOCLOSE);
BIO_printf(outbio, "Certificate subject data: ");
X509_NAME_print_ex(outbio, certname, 0, 0);