gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libebics] 01/02: Undo last commit.


From: gnunet
Subject: [GNUnet-SVN] [libebics] 01/02: Undo last commit.
Date: Mon, 29 Oct 2018 16:03:21 +0100

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

marcello pushed a commit to branch master
in repository libebics.

commit 59effed5da48485d312c64432472a4428fa1c553
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Oct 29 15:51:25 2018 +0100

    Undo last commit.
    
    UBS sandbox gives "XML invalid" when adding key's mod and exp to a HPB 
message.
---
 src/xmlmessages.c | 23 +++++------------------
 src/xmlproto.c    |  6 ++----
 2 files changed, 7 insertions(+), 22 deletions(-)

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]