Lines 56-71
Link Here
|
56 |
#include <openssl/pem.h> |
56 |
#include <openssl/pem.h> |
57 |
#include <openssl/x509v3.h> |
57 |
#include <openssl/x509v3.h> |
58 |
|
58 |
|
59 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
|
|
60 |
#define X509_OBJECT_get0_X509(obj) ((obj)->data.x509) |
59 |
#define X509_OBJECT_get0_X509(obj) ((obj)->data.x509) |
61 |
#define X509_OBJECT_get_type(obj) ((obj)->type) |
60 |
#define X509_OBJECT_get_type(obj) ((obj)->type) |
62 |
#define X509_STORE_CTX_get0_cert(ctx) ((ctx)->cert) |
61 |
#define X509_STORE_CTX_get0_cert(ctx) ((ctx)->cert) |
63 |
#define X509_STORE_get0_objects(certs) ((certs)->objs) |
62 |
#define X509_STORE_get0_objects(certs) ((certs)->objs) |
64 |
#define X509_get_extended_key_usage(cert) ((cert)->ex_xkusage) |
63 |
#define X509_get_extended_key_usage(cert) ((cert)->ex_xkusage) |
65 |
#if OPENSSL_VERSION_NUMBER < 0x10020000L |
|
|
66 |
#define X509_STORE_CTX_get0_store(ctx) ((ctx)->ctx) |
64 |
#define X509_STORE_CTX_get0_store(ctx) ((ctx)->ctx) |
67 |
#endif |
|
|
68 |
#endif |
69 |
|
65 |
|
70 |
static const char *toolname = "sbverify"; |
66 |
static const char *toolname = "sbverify"; |
71 |
static const int cert_name_len = 160; |
67 |
static const int cert_name_len = 160; |