gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libebics] branch master updated (a242d9e -> d890696)


From: gnunet
Subject: [GNUnet-SVN] [libebics] branch master updated (a242d9e -> d890696)
Date: Mon, 29 Oct 2018 16:03: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 a242d9e  HPB.
     new 59effed  Undo last commit.
     new d890696  Test README.

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/README_tests.txt |  9 +++++----
 src/xmlmessages.c    | 23 +++++------------------
 src/xmlproto.c       |  6 ++----
 3 files changed, 12 insertions(+), 26 deletions(-)

diff --git a/src/README_tests.txt b/src/README_tests.txt
index de86f33..e7c7b13 100644
--- a/src/README_tests.txt
+++ b/src/README_tests.txt
@@ -1,5 +1,6 @@
 
-1 'make install check' ('check' will only compile the test)
-2 export the EBICS_PREFIX env variable
-3 run test manually: './sandbox_tests'
-4 run './post_xml.sh' passing the ".xml" file(s) generated at the step above
+1 'make install check', will creat XMLs and check
+  them against their schemas.
+
+2 Optionally, the user can POST the XMLs to the UBS
+  sandbox, with the script './post_xml.sh <XML-name>'
diff --git a/src/xmlmessages.c b/src/xmlmessages.c
index 5b3c264..96033f9 100644
--- a/src/xmlmessages.c
+++ b/src/xmlmessages.c
@@ -672,13 +672,9 @@ void
 EBICS_build_auth_signature (void *cls,
                             struct EBICS_genex_document *document)
 {
-  char *authExp;
-  char *authMod;
-
-  util_extract_public_RSAKeyValue
-    (&keyList[EBICS_USER_AUTH_KEY],
-     &authExp,
-     &authMod);
+  char *hash_mapping[2] = {
+    "http://www.w3.org/2001/04/xmlenc#sha256";,
+    "http://www.w3.org/2001/04/xmlenc#sha512"; };
 
   struct EBICS_MSG_Spec auth[] = {
 
@@ -710,17 +706,8 @@ EBICS_build_auth_signature (void *cls,
       ("//ebics:AuthSignature//ds:DigestValue",
        ""),
     /* Optional node, temporary deletion to pass validation */
-    EBICS_MSG_op_del_attribute
-      ("//ebics:AuthSignature/ds:KeyInfo/@Id"),
-    EBICS_MSG_op_select_choice
-      ("//ds:KeyInfo/schema:CHOICES",
-       1),
-    EBICS_MSG_op_set_string
-      ("//ebics:AuthSignature//ds:KeyInfo//ds:Modulus",
-       authMod),
-    EBICS_MSG_op_set_string
-      ("//ebics:AuthSignature//ds:KeyInfo//ds:Exponent",
-       authExp),
+    EBICS_MSG_op_del_node
+      ("//ebics:AuthSignature//ds:KeyInfo"),
     EBICS_MSG_op_del_attribute 
       ("//ebics:AuthSignature/ds:SignatureValue/@Id"),
     EBICS_MSG_op_set_string 
diff --git a/src/xmlproto.c b/src/xmlproto.c
index 061b01c..b605d00 100644
--- a/src/xmlproto.c
+++ b/src/xmlproto.c
@@ -41,13 +41,11 @@
  * Selects a choice from the tree, unlinks the unselected choices 
  * and relinks the content to the choices parent node.
  *
- * @param xpath XPath expression that specifies _one_ CHOICE element.
+ * @param xpath XPath expression that specifies _one_ CHOCIES element.
  * @param choice Index of the CHOICE to select.
- * @return the MSG command.
  */
 struct EBICS_MSG_Spec
-EBICS_MSG_op_select_choice (const char *xpath,
-                            const uint8_t choice) 
+EBICS_MSG_op_select_choice (const char *xpath, const uint8_t choice) 
 {
   struct EBICS_MSG_Spec result = 
     {

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



reply via email to

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