facho-signer: correciones para primera compilacion de wasm

FossilOrigin-Name: 7e2792a899cccff417c583b419ff7081d9630e405f39dc67aa96ed479b4b5164
This commit is contained in:
bit4bit
2021-12-21 02:01:15 +00:00
parent dc9e0d9ad7
commit 7054e2da22
7 changed files with 26 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
SOURCES = xades/xmlsec1/xmltree.c xades/xmlsec1/errors.c xades/templates.c xades/xades.c facho_signer.c
lib_LTLIBRARIES = libfachosigner.la
libfachosigner_la_SOURCES = $(SOURCES)
libfachosigner_la_SOURCES = $(LTDL_SOURCE_FILES) $(SOURCES)
libfachosigner_la_CFLAGS = $(OPENSSL_CFLAGS) $(XMLSEC1_CFLAGS) -DXMLSEC_NOT_CRYPTO_DYNAMIC_LOADING
libfachosigner_la_LDFLAGS = $(OPENSSL_LIBS) $(LIBLTDL) $(XMLSEC1_LIBS)

View File

@@ -1,4 +1,5 @@
#include "config.h"
#include "xades.h"
#include <libxml/xpath.h>
@@ -14,7 +15,8 @@
#include <xmlsec/transforms.h>
#include <xmlsec/keysdata.h>
#ifndef XMLSEC_CRYPTO_DYNAMIC_LOADING
#ifdef XMLSEC_NO_CRYPTO_DYNAMIC_LOADING
#include <xmlsec/openssl/x509.h>
#include <xmlsec/openssl/crypto.h>
#include <xmlsec/openssl/symbols.h>
#endif

View File

@@ -1,12 +1,15 @@
#ifndef XADES_H
#define XADES_H
#include <libxml/tree.h>
#define XMLSEC_NO_XSLT 1
#include <xmlsec/xmltree.h>
#include <xmlsec/transforms.h>
#include <xmlsec/xmldsig.h>
#include <xmlsec/openssl/x509.h>
#include <xmlsec/base64.h>
#include "xmlsec1/errors_helpers.h"

View File

@@ -15,6 +15,7 @@
*/
#define XMLSEC_PRIVATE 1
#define XMLSEC_NO_XSLT 1
#include <stdlib.h>
#include <stdio.h>

View File

@@ -23,6 +23,8 @@
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#define XMLSEC_NO_XSLT 1
#include <xmlsec/xmlsec.h>
#include <xmlsec/xmltree.h>
#include <xmlsec/parser.h>