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 <James.Bottomley@HansenPartnership.com>
This commit is contained in:
James Bottomley 2017-10-19 11:09:41 -07:00
parent f065bb5705
commit 8e184454fd

View file

@ -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";