security/libdigidocpp: update for opaque TS structs.
This commit is contained in:
parent
762bc48e3f
commit
aee4936610
@ -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
|
||||
|
||||
|
27
security/libdigidocpp/patches/patch-src_crypto_TS_cpp
Normal file
27
security/libdigidocpp/patches/patch-src_crypto_TS_cpp
Normal file
@ -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)
|
@ -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.
|
Loading…
x
Reference in New Issue
Block a user