Skip to content

Commit

Permalink
Fixes a compilation error with OpenSSL < 1.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
JusticeRage committed Aug 8, 2018
1 parent a2e9eb5 commit 0c74dc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/plugin_authenticode/asn1.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <openssl/pkcs7.h>
#include <openssl/x509.h>
#include <openssl/bio.h>
#include <openssl/opensslv.h>

#include "manacommons/color.h"

Expand All @@ -41,7 +42,9 @@ struct AuthenticodeDigest
bytes digest;
};

// Redefine the ASN1_OBJECT structure because OpenSSL 1.1 can't seem to find it otherwise.

#if OPENSSL_VERSION_NUMBER > 0x01010000f
// Redefine the ASN1_OBJECT structure for OpenSSL >= 1.1 as it can't seem to find it otherwise.
struct asn1_object_st
{
const char *sn, *ln;
Expand All @@ -50,6 +53,7 @@ struct asn1_object_st
const unsigned char *data; /* data remains const after init */
int flags; /* Should we free this one */
};
#endif

namespace plugin {

Expand Down

0 comments on commit 0c74dc0

Please sign in to comment.