Skip to content

Commit

Permalink
Add support for OpenSSL 3.0
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Raits <[email protected]>
  • Loading branch information
ignatenkobrain authored and Conan-Kudo committed Dec 30, 2021
1 parent 2aae93b commit 504dad8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Sign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <cassert>
#include <cstdint>
#include <openssl/asn1t.h>
#include <openssl/opensslv.h>
#include <vector>

namespace osinside {
Expand Down Expand Up @@ -139,7 +140,11 @@ namespace appx {
class EncodedASN1
{
public:
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
template <typename T, int (*TEncode)(const T *, std::uint8_t **)>
#else
template <typename T, int (*TEncode)(T *, std::uint8_t **)>
#endif
static EncodedASN1 FromItem(T *item)
{
std::uint8_t *dataRaw = nullptr;
Expand Down

0 comments on commit 504dad8

Please sign in to comment.