gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libebics] branch master updated: Fix INI header values.


From: gnunet
Subject: [GNUnet-SVN] [libebics] branch master updated: Fix INI header values.
Date: Thu, 25 Oct 2018 14:18:20 +0200

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

marcello pushed a commit to branch master
in repository libebics.

The following commit(s) were added to refs/heads/master by this push:
     new 3e0d558  Fix INI header values.
3e0d558 is described below

commit 3e0d558d24cec81a1a41d0ad055f577755a6f19c
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Oct 25 14:17:33 2018 +0200

    Fix INI header values.
    
    Putting values that pass validation, but are not
    necessarily appropriated.
---
 src/libebics.h    |  6 ++++++
 src/xmlmessages.c | 29 +++++++++++++++++++++--------
 2 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/src/libebics.h b/src/libebics.h
index 1579213..23324f3 100644
--- a/src/libebics.h
+++ b/src/libebics.h
@@ -38,6 +38,12 @@
 #define EBICS_KEY_MAX_ENTRIES 6
 #define EBICS_KEY_MAX_NAME 128
 
+#define EBICS_MSG_VERSION "H004"
+
+/**
+ * FIXME: find the REAL protocol revision.
+ */
+#define EBICS_REVISION 1 
 
 /**
  * INI & HIA share the same schema.
diff --git a/src/xmlmessages.c b/src/xmlmessages.c
index 4654ea0..81ad141 100644
--- a/src/xmlmessages.c
+++ b/src/xmlmessages.c
@@ -197,13 +197,13 @@ EBICS_build_header_generic (void *cls,
                            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_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_set_string ("//ebics:OrderDetails/ebics:OrderAttribute",
-                           sigAttribute[data->requestBankSignature]),
     EBICS_MSG_op_end ()
   };
   EBICS_MSG_parse_spec (header,
@@ -247,12 +247,25 @@ EBICS_build_header_ebicsRequest (void *cls,
  * causes the HostID value to be set in the document.
  */
 void
-EBICS_build_header_ebicsUnsecuredRequest (void *cls,
-                                          struct EBICS_genex_document 
*document)
+EBICS_build_header_ebicsUnsecuredRequest
+  (void *cls,
+   struct EBICS_genex_document *document)
 {
   struct EBICS_MSG_Spec header[] = {
     EBICS_MSG_op_subcommand (EBICS_build_header_generic,
                              cls),
+    EBICS_MSG_op_set_string
+      ("ebics:ebicsUnsecuredRequest/@Version",
+       EBICS_MSG_VERSION),
+
+    EBICS_MSG_op_set_uint
+      ("ebics:ebicsUnsecuredRequest/@Revision",
+       EBICS_REVISION),
+
+    EBICS_MSG_op_set_string
+      ("//ebics:OrderDetails/ebics:OrderAttribute",
+       "DZNNN"),
+
     EBICS_MSG_op_end ()
   };
 

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



reply via email to

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