From: Sebastian Blunt Date: Fri, 28 Apr 2017 12:18:17 +0000 (+0200) Subject: Fix error compiling with openssl 1.1.0 X-Git-Url: http://git.code-monkey.de/?p=umurmur.git;a=commitdiff_plain;h=df8ef01c17eb187a969ca66e749d5a5837df0c3f 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. --- 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;