From df8ef01c17eb187a969ca66e749d5a5837df0c3f Mon Sep 17 00:00:00 2001 From: Sebastian Blunt Date: Fri, 28 Apr 2017 14:18:17 +0200 Subject: [PATCH] Fix error compiling with openssl 1.1.0 Would throw a dereferencing pointer to incomplete type previously. This change is compatible with both openssl 1.1.0 and 1.0.2, the only supported openssl releases. Building with autotools and openssl 1.1.0 does still not work. --- src/ssli_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssli_openssl.c b/src/ssli_openssl.c index 009119d..8ff1bcf 100644 --- a/src/ssli_openssl.c +++ b/src/ssli_openssl.c @@ -411,7 +411,7 @@ static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx) * it for something special */ if (!preverify_ok && (err == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT)) { - X509_NAME_oneline(X509_get_issuer_name(ctx->current_cert), buf, 256); + X509_NAME_oneline(X509_get_issuer_name(err_cert), buf, 256); Log_warn("issuer= %s", buf); } return 1; -- 2.30.2