gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libebics] branch master updated (d54109c -> 7beef60)


From: gnunet
Subject: [GNUnet-SVN] [libebics] branch master updated (d54109c -> 7beef60)
Date: Mon, 29 Oct 2018 12:54:20 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a change to branch master
in repository libebics.

    from d54109c  rename key macro
     new c0363b0  Testing and message generation.
     new 7beef60  Call test shell script.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/Makefile.am   | 16 +++-------------
 src/xmllint.sh    | 13 +++++++++++++
 src/xmlmessages.c | 19 ++++++++-----------
 3 files changed, 24 insertions(+), 24 deletions(-)
 create mode 100755 src/xmllint.sh

diff --git a/src/Makefile.am b/src/Makefile.am
index bb01775..fc69e04 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -38,19 +38,9 @@ AM_TESTS_ENVIRONMENT = \
 check_PROGRAMS = \
   sandbox_tests
 
-dump_tests_SOURCES = \
-  dump_tests.c
-
-dump_tests_LDADD = \
-  libebics.la \
-  -lgnunetutil
-
-dump_tests_CPPFLAGS = \
-  $(XML_CPPFLAGS) \
-  $(XMLSEC1_CFLAGS) \
-  $(LIBGCRYPT_CFLAGS) \
-  $(GNUTLS_CFLAGS) \
-  $(ZLIB_CFLAGS)
+TESTS = \
+  sandbox_tests \
+  xmllint.sh
 
 sandbox_tests_SOURCES = \
   sandbox_tests.c
diff --git a/src/xmllint.sh b/src/xmllint.sh
new file mode 100755
index 0000000..a1ca2d8
--- /dev/null
+++ b/src/xmllint.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+xmllint --noout \
+        --schema ../contrib/ebics_schema/ebics_keymgmt_request_H004.xsd \
+        INI.xml
+
+xmllint --noout \
+        --schema ../contrib/ebics_schema/ebics_keymgmt_request_H004.xsd \
+        HIA.xml
+
+xmllint --noout \
+        --schema ../contrib/ebics_schema/ebics_keymgmt_request_H004.xsd \
+        HPB.xml
diff --git a/src/xmlmessages.c b/src/xmlmessages.c
index 3e60884..96033f9 100644
--- a/src/xmlmessages.c
+++ b/src/xmlmessages.c
@@ -203,14 +203,9 @@ EBICS_build_header_generic (void *cls,
                            data->partnerID),
     EBICS_MSG_op_set_string ("//ebics:static//ebics:UserID",
                            data->userID),
-    EBICS_MSG_op_set_string ("//ebics:static//ebics:Product",
-                             data->productName),
     EBICS_MSG_op_set_string
       ("//ebics:static//ebics:SecurityMedium",
        "0000"),
-    EBICS_MSG_op_set_attribute
-      ("//ebics:static//ebics:Product/@Language",
-       data->languageCode),
     EBICS_MSG_op_unique_choice ("//ebics:OrderDetails"),
     EBICS_MSG_op_end ()
   };
@@ -772,9 +767,10 @@ EBICS_sign_message (const struct EBICS_Key 
*userAuthentication,
     nodeset = xpathObjPtr->nodesetval;
     node = nodeset->nodeTab[0];
     xmlXPathFreeObject (xpathObjPtr);
-    ns = xmlSearchNsByHref (document->document,
-                            node,
-                            BAD_CAST "http://www.w3.org/2000/09/xmldsig#";);
+    ns = xmlSearchNsByHref
+      (document->document,
+       node,
+       BAD_CAST "http://www.w3.org/2000/09/xmldsig#";);
     xmlNodeSetName (node,
                     BAD_CAST "Signature");
     node->ns = ns;
@@ -784,9 +780,10 @@ EBICS_sign_message (const struct EBICS_Key 
*userAuthentication,
   dsigCtx = NULL;
   res = -1;
 
-  node = xmlSecFindNode (xmlDocGetRootElement (document->document),
-                         xmlSecNodeSignature,
-                         BAD_CAST "http://www.w3.org/2000/09/xmldsig#";);
+  node = xmlSecFindNode
+    (xmlDocGetRootElement (document->document),
+     xmlSecNodeSignature,
+     BAD_CAST "http://www.w3.org/2000/09/xmldsig#";);
   if (NULL == node)
   {
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]