20 lines
705 B
Diff
20 lines
705 B
Diff
|
--- a/src/sbverify.c 2017-10-28 16:23:16.000000000 +0300
|
||
|
+++ b/src/sbverify.c 2018-09-27 17:46:37.592055110 +0300
|
||
|
@@ -56,16 +56,12 @@
|
||
|
#include <openssl/pem.h>
|
||
|
#include <openssl/x509v3.h>
|
||
|
|
||
|
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||
|
#define X509_OBJECT_get0_X509(obj) ((obj)->data.x509)
|
||
|
#define X509_OBJECT_get_type(obj) ((obj)->type)
|
||
|
#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";
|
||
|
static const int cert_name_len = 160;
|