[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libebics] 01/04: Put sandbox credentials.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libebics] 01/04: Put sandbox credentials. |
Date: |
Fri, 19 Oct 2018 11:24:13 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libebics.
commit b3f9e00d6f4b35a86a2e29df89551721c6da8a74
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Oct 18 11:38:27 2018 +0200
Put sandbox credentials.
---
src/Makefile.am | 3 ++-
src/sandbox_tests.c | 74 ++++-------------------------------------------------
2 files changed, 7 insertions(+), 70 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index c2b6509..f4d7c6f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -58,7 +58,8 @@ sandbox_tests_SOURCES = \
sandbox_tests_LDADD = \
libebics.la \
- -lgnunetutil
+ -lgnunetutil \
+ -lgnunetcurl
sandbox_tests_CPPFLAGS = \
$(XML_CPPFLAGS) \
diff --git a/src/sandbox_tests.c b/src/sandbox_tests.c
index 19bc9a5..a0f645b 100644
--- a/src/sandbox_tests.c
+++ b/src/sandbox_tests.c
@@ -30,7 +30,10 @@
"messagedump", \
__VA_ARGS__)
-#define BANK_URL "http://localhost:9999/"
+#define BANK_URL
"https://server-ebics.webank.fr:28103/WbkPortalFileTransfert/EbicsProtocol"
+#define E001_DIGEST "9BF804AF2B121A5B94C82BFD8E406FFB18024D3D4BF9E"
+#define X001_DIGEST "9BF804AF2B121A5B94C82BFD8E406FFB18024D3D4BF9E"
+#define HOST_ID "EBIXQUAL"
/**
* Process responses from banks.
@@ -92,7 +95,7 @@ main (int argc,
&key_filenames))
{
LOG (EBICS_LOGLEVEL_ERROR,
- "Lib not init\n");
+ "Lib not init\n");
return EBICS_ERROR;
}
@@ -117,73 +120,6 @@ main (int argc,
"Could not POST the INI message\n");
return EBICS_ERROR;
}
-
- GNUNET_free (msg);
- return EBICS_SUCCESS;
-
- /**
- * HIA
- */
- if (NULL == (msg = EBICS_generate_message_hia
- (&header_args,
- &hia_args)))
- {
- LOG (EBICS_LOGLEVEL_ERROR,
- "Failed to instantiate HIA message\n");
- return EBICS_ERROR;
- }
-
- GNUNET_free (msg);
-
- /**
- * HPB
- */
- if (NULL == (msg = EBICS_generate_message_hpb
- (&header_args)))
- {
- LOG (EBICS_LOGLEVEL_ERROR,
- "Failed to instantiate HPB message\n");
- return EBICS_ERROR;
- }
-
- GNUNET_free (msg);
-
- /**
- * CAMT.053
- */
-
- struct EBICS_ARGS_build_content_camt053
- camt053_args = {
-
- .startdate = {
- .year = 1999,
- .month = 12,
- .day = 31
- },
-
- .enddate = {
- .year = 2000,
- .month = 1,
- .day = 1
- },
- };
-
- struct EBICS_Date range_start = {
-
- .year = 1999,
- .month = 12,
- .day = 31
- };
-
- if (NULL == (msg = EBICS_generate_message_camt053
- (&header_args,
- &camt053_args)))
- {
- LOG (EBICS_LOGLEVEL_ERROR,
- "Failed to instantiate CAMT.053 message\n");
- return EBICS_ERROR;
- }
-
GNUNET_free (msg);
EBICS_close_library ();
--
To stop receiving notification emails like this one, please contact
address@hidden