gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: fix HTD


From: gnunet
Subject: [libeufin] branch master updated: fix HTD
Date: Tue, 26 Nov 2019 14:29:44 +0100

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

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 367d56d  fix HTD
367d56d is described below

commit 367d56d01f4b88b7642c026f1110ba774569d0df
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Nov 26 14:29:37 2019 +0100

    fix HTD
---
 nexus/src/main/kotlin/Main.kt        | 9 ++++-----
 sandbox/src/main/python/libeufin-cli | 4 ++--
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/nexus/src/main/kotlin/Main.kt b/nexus/src/main/kotlin/Main.kt
index 1197c71..d240e21 100644
--- a/nexus/src/main/kotlin/Main.kt
+++ b/nexus/src/main/kotlin/Main.kt
@@ -405,7 +405,7 @@ fun main() {
                 }
 
 
-                val response = client.postToBankUnsigned<EbicsRequest, 
EbicsResponse>(
+                val response = client.postToBankSigned<EbicsRequest, 
EbicsResponse>(
                     subscriberData.ebicsUrl,
                     EbicsRequest.createForDownloadInitializationPhase(
                         subscriberData.userId,
@@ -416,7 +416,8 @@ fun main() {
                         subscriberData.bankEncPub ?: throw 
BankKeyMissing(HttpStatusCode.PreconditionFailed),
                         subscriberData.bankAuthPub ?: throw 
BankKeyMissing(HttpStatusCode.PreconditionFailed),
                         "HTD"
-                    )
+                    ),
+                    subscriberData.customerAuthPriv
                 )
                 logger.debug("HTD response: " + 
XMLUtil.convertJaxbToString<EbicsResponse>(response.value))
 
@@ -424,8 +425,6 @@ fun main() {
                     throw EbicsError(response.value.body.returnCode.value)
                 }
 
-                // extract payload
-
                 val er = CryptoUtil.EncryptionResult(
                     
response.value.body.dataTransfer!!.dataEncryptionInfo!!.transactionKey,
                     (response.value.body.dataTransfer!!.dataEncryptionInfo as 
EbicsTypes.DataEncryptionInfo)
@@ -444,7 +443,7 @@ fun main() {
 
                 val ackRequest = EbicsRequest.createForDownloadReceiptPhase(
                     response.value.header._static.transactionID ?: throw 
BankInvalidResponse(HttpStatusCode.ExpectationFailed),
-                    subscriberData.userId
+                    subscriberData.hostId
                 )
 
                 val ackResponse = 
client.postToBankSignedAndVerify<EbicsRequest, EbicsResponse>(
diff --git a/sandbox/src/main/python/libeufin-cli 
b/sandbox/src/main/python/libeufin-cli
index 64648fc..57a2182 100755
--- a/sandbox/src/main/python/libeufin-cli
+++ b/sandbox/src/main/python/libeufin-cli
@@ -163,10 +163,10 @@ def prepare(ctx, customer_id):
     required=False,
     default=1)
 @click.option(
-    "--prepare",
+    "--prepare/--no-prepare",
     help="Gets keying done before requesting HTD",
     required=False,
-    default=True)
+    default=False)
 def htd(ctx, customer_id, prepare):
 
     if prepare:

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



reply via email to

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