[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-mdb] branch master updated: Added revalue cmd
From: |
gnunet |
Subject: |
[taler-taler-mdb] branch master updated: Added revalue cmd |
Date: |
Mon, 16 Dec 2019 17:04:11 +0100 |
This is an automated email from the git hooks/post-receive script.
dominik-hofer pushed a commit to branch master
in repository taler-mdb.
The following commit(s) were added to refs/heads/master by this push:
new 66c6ba7 Added revalue cmd
66c6ba7 is described below
commit 66c6ba7873cad11cbf4c3456cc405f7dcceb3551
Author: Dominik Hofer <address@hidden>
AuthorDate: Mon Dec 16 17:04:06 2019 +0100
Added revalue cmd
---
src/main.c | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
index 118d5f4..eb83f80 100644
--- a/src/main.c
+++ b/src/main.c
@@ -151,6 +151,10 @@ along with
#define VMC_VEND_FAILURE 0x03
#define VMC_VEND_SESSION_COMPLETE 0x04
+/**
+ * VMC Revalue Request
+ */
+#define VMC_REVALUE 0x15
/**
* Commands for the reader (our device).
*/
@@ -195,6 +199,9 @@ along with
#define READER_VEND_AMOUNT "0001"
#define READER_VEND_DENIED "06"
+/* Approve Revalue */
+#define READER_APPROVE_REVALUE "0D"
+
/* Cancelled Command */
#define READER_CANCELLED "08"
@@ -549,6 +556,11 @@ static struct MdbCommand approveVend;
*/
static struct MdbCommand readerCancelled;
+/**
+ * Approve Revalue
+ */
+static struct MdbCommand revalueApproved;
+
/**
* Terminate session.
*/
@@ -1909,7 +1921,12 @@ handle_command (const char *hex,
}
break;
}
- case VMC_CONF:
+ case VMC_REVALUE:
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Received request for revalue via MDB\n");
+ mdb.cmd = &revalueApproved;
+ break;
+ case VMC_CONF:
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Received request for configuration via MDB\n");
mdb.cmd = &readerConfigData;
@@ -2662,6 +2679,9 @@ main (int argc,
endSession = setup_mdb_cmd ("End Session",
READER_END_SESSION,
NULL);
+ revalueApproved = setup_mdb_cmd ("Reader Approve Revalue",
+ READER_APPROVE_REVALUE,
+ NULL);
ret = GNUNET_PROGRAM_run (argc,
argv,
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-mdb] branch master updated: Added revalue cmd,
gnunet <=