diff --git a/security/libdigidocpp/Makefile b/security/libdigidocpp/Makefile index 087bda50d37..bf9f6d4ee0c 100644 --- a/security/libdigidocpp/Makefile +++ b/security/libdigidocpp/Makefile @@ -3,7 +3,7 @@ COMMENT = library for creating DigiDoc signature files V = 3.14.10 DISTNAME = libdigidocpp-${V} CATEGORIES = security -REVISION = 1 +REVISION = 2 SHARED_LIBS = digidocpp 0.0 # 0.0 diff --git a/security/libdigidocpp/patches/patch-src_crypto_TS_cpp b/security/libdigidocpp/patches/patch-src_crypto_TS_cpp new file mode 100644 index 00000000000..21e9bb8fd20 --- /dev/null +++ b/security/libdigidocpp/patches/patch-src_crypto_TS_cpp @@ -0,0 +1,27 @@ +Index: src/crypto/TS.cpp +--- src/crypto/TS.cpp.orig ++++ src/crypto/TS.cpp +@@ -53,23 +53,6 @@ void *OPENSSL_memdup(const void *data, size_t size) + + return memcpy(copy, data, size); + } +- +-static void TS_VERIFY_CTX_set_flags(TS_VERIFY_CTX *ctx, int f) +-{ +- ctx->flags = unsigned(f); +-} +- +-static void TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx, unsigned char *hexstr, long len) +-{ +- OPENSSL_free(ctx->imprint); +- ctx->imprint = hexstr; +- ctx->imprint_len = unsigned(len); +-} +- +-static void TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *s) +-{ +- ctx->store = s; +-} + #endif + + TS::TS(const string &url, const Digest &digest, const string &useragent) diff --git a/security/libdigidocpp/patches/patch-src_crypto_X509Crypto_cpp b/security/libdigidocpp/patches/patch-src_crypto_X509Crypto_cpp new file mode 100644 index 00000000000..d8e73a2af89 --- /dev/null +++ b/security/libdigidocpp/patches/patch-src_crypto_X509Crypto_cpp @@ -0,0 +1,19 @@ +Index: src/crypto/X509Crypto.cpp +--- src/crypto/X509Crypto.cpp.orig ++++ src/crypto/X509Crypto.cpp +@@ -37,7 +37,6 @@ + using namespace digidoc; + using namespace std; + +-#ifndef LIBRESSL_VERSION_NUMBER + /*- + * IssuerSerial ::= SEQUENCE { + * issuer GeneralNames, +@@ -48,7 +47,6 @@ using ESS_ISSUER_SERIAL = struct ESS_issuer_serial { + GENERAL_NAMES *issuer; + ASN1_INTEGER *serial; + }; +-#endif + + /** + * Initialize RSA crypter.