]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
Bitrot: OpenSSL 1.1.0 X509_STORE_CTX is opaque bitrot210
authorViktor Dukhovni <postfix-users@dukhovni.org>
Sat, 20 Aug 2016 06:11:58 +0000 (02:11 -0400)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Sat, 20 Aug 2016 06:11:58 +0000 (02:11 -0400)
Avoid direct access to member fields, use the accessors.

postfix/src/tls/tls_verify.c

index 0962f837788c7c9bbe4b86d28cfed07f544b4fcf..49cc2663425436e6021f5e32f258bb6f28d86722 100644 (file)
@@ -245,8 +245,7 @@ int     tls_verify_certificate_callback(int ok, X509_STORE_CTX *ctx)
         * provided, but not found in CAfile/CApath. Either way, we don't
         * trust it.
         */
-       X509_NAME_oneline(X509_get_issuer_name(ctx->current_cert),
-                         buf, sizeof(buf));
+       X509_NAME_oneline(X509_get_issuer_name(cert), buf, sizeof(buf));
        msg_info("certificate verification failed for %s: untrusted issuer %s",
                 TLScontext->namaddr, printable(buf, '?'));
        break;