[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: avoid unused variable
From: |
gnunet |
Subject: |
[libeufin] branch master updated: avoid unused variable |
Date: |
Wed, 21 Dec 2022 11:54:27 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new ffcab69a avoid unused variable
ffcab69a is described below
commit ffcab69a15266300b1dbe8fdd49f102c335b56f0
Author: MS <ms@taler.net>
AuthorDate: Wed Dec 21 11:53:36 2022 +0100
avoid unused variable
---
.../main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index fd91d494..e09955af 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -827,9 +827,7 @@ private fun handleEbicsC53(requestContext: RequestContext):
ByteArray {
}
private suspend fun ApplicationCall.handleEbicsHia(header:
EbicsUnsecuredRequest.Header, orderData: ByteArray) {
- val plainOrderData = InflaterInputStream(orderData.inputStream()).use {
- it.readAllBytes()
- }
+ InflaterInputStream(orderData.inputStream()).use { it.readAllBytes() }
val keyObject =
EbicsOrderUtil.decodeOrderDataXml<HIARequestOrderData>(orderData)
val encPubXml = keyObject.encryptionPubKeyInfo.pubKeyValue.rsaKeyValue
val authPubXml = keyObject.authenticationPubKeyInfo.pubKeyValue.rsaKeyValue
@@ -873,10 +871,7 @@ private suspend fun ApplicationCall.handleEbicsHia(header:
EbicsUnsecuredRequest
}
private suspend fun ApplicationCall.handleEbicsIni(header:
EbicsUnsecuredRequest.Header, orderData: ByteArray) {
- val plainOrderData = InflaterInputStream(orderData.inputStream()).use {
- it.readAllBytes()
- }
- //println("INI order data: ${plainOrderData.toString(Charsets.UTF_8)}")
+ InflaterInputStream(orderData.inputStream()).use { it.readAllBytes() }
val keyObject =
EbicsOrderUtil.decodeOrderDataXml<SignatureTypes.SignaturePubKeyOrderData>(orderData)
val sigPubXml = keyObject.signaturePubKeyInfo.pubKeyValue.rsaKeyValue
val sigPub = CryptoUtil.loadRsaPublicKeyFromComponents(sigPubXml.modulus,
sigPubXml.exponent)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: avoid unused variable,
gnunet <=