From 8e184454fd4d59d39c860dfad100cba82af5ea33 Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Thu, 19 Oct 2017 11:09:41 -0700 Subject: [PATCH] Fix Debian 8 and Leap_42.1 builds Older versions of openssl 1.0.0 don't have X509_STORE_CTX_get0_store so define that as well. Signed-off-by: James Bottomley --- src/sbverify.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sbverify.c b/src/sbverify.c index e4a7a16..3920d91 100644 --- a/src/sbverify.c +++ b/src/sbverify.c @@ -62,6 +62,9 @@ #define X509_STORE_CTX_get0_cert(ctx) ((ctx)->cert) #define X509_STORE_get0_objects(certs) ((certs)->objs) #define X509_get_extended_key_usage(cert) ((cert)->ex_xkusage) +#if OPENSSL_VERSION_NUMBER < 0x10020000L +#define X509_STORE_CTX_get0_store(ctx) ((ctx)->ctx) +#endif #endif static const char *toolname = "sbverify";