summaryrefslogtreecommitdiff
path: root/src/authorization/iban.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-14 16:03:02 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-14 16:03:02 +0200
commit6f0432ed839d1f5a7a1e880f492ce162073b680b (patch)
tree37aa1f4ee13925843e86ac7b5e4285b210d722b9 /src/authorization/iban.h
parentf4a4a0806bf361ccbd2d0f9bbdc34187cccba6c6 (diff)
downloadanastasis-6f0432ed839d1f5a7a1e880f492ce162073b680b.tar.gz
anastasis-6f0432ed839d1f5a7a1e880f492ce162073b680b.tar.bz2
anastasis-6f0432ed839d1f5a7a1e880f492ce162073b680b.zip
-first rough sketch for IBAN authorization plugin"
Diffstat (limited to 'src/authorization/iban.h')
-rw-r--r--src/authorization/iban.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/authorization/iban.h b/src/authorization/iban.h
new file mode 100644
index 0000000..c95c00d
--- /dev/null
+++ b/src/authorization/iban.h
@@ -0,0 +1,58 @@
+/*
+ This file is part of Anastasis
+ Copyright (C) 2021 Anastasis SARL
+
+ Anastasis is free software; you can redistribute it and/or modify it under the
+ terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 3, or (at your option) any later version.
+
+ Anastasis is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License along with
+ Anastasis; see the file COPYING.GPL. If not, see <http://www.gnu.org/licenses/>
+*/
+/**
+ * @file iban.h
+ * @brief data structures for wire transfer notification
+ * @author Christian Grothoff
+ */
+#include "platform.h"
+#include <taler/taler_dbevents.h>
+
+#ifndef IBAN_H
+#define IBAN_H
+
+GNUNET_NETWORK_STRUCT_BEGIN
+
+/**
+ * Structure describing an IBAN event in the database.
+ */
+struct IbanEventP
+{
+ /**
+ * Header of type #TALER_DBEVENT_TYPE_ANASTASIS_AUTH_IBAN_TRANSFER.
+ */
+ struct GNUNET_DB_EventHeaderP header;
+
+ /**
+ * Zero.
+ */
+ uint32_t reserved GNUNET_PACKED;
+
+ /**
+ * Code to be included in the wire transfer subject.
+ */
+ uint64_t code GNUNET_PACKED;
+
+ /**
+ * Hash of the debit account of the transaction.
+ */
+ struct GNUNET_HashCode debit_iban_hash;
+};
+
+
+GNUNET_NETWORK_STRUCT_END
+
+#endif