summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-29 14:43:54 +0200
committerChristian Grothoff <christian@grothoff.org>2017-03-29 14:43:54 +0200
commitb38134ea4a2a90fdce6d9f661ed58df47a17bcfe (patch)
tree73c8fea2ad079d468032e20e67fce882c1783247 /src/include
parent8d9dc14227350eb93f89c56c774ed377b633bc88 (diff)
downloadexchange-b38134ea4a2a90fdce6d9f661ed58df47a17bcfe.tar.gz
exchange-b38134ea4a2a90fdce6d9f661ed58df47a17bcfe.tar.bz2
exchange-b38134ea4a2a90fdce6d9f661ed58df47a17bcfe.zip
implement /payback parsing and signature verification
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_error_codes.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index 817dd0eff..3c48a6d44 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -831,6 +831,27 @@ enum TALER_ErrorCode
*/
TALER_EC_TRACK_TRANSACTION_MERCHANT_SIGNATURE_INVALID = 1804,
+ /**
+ * The given denomination key is not in the "payback" set of the
+ * exchange right now. This response is provided with an
+ * HTTP status code of MHD_HTTP_NOT_FOUND.
+ */
+ TALER_EC_PAYBACK_DENOMINATION_KEY_UNKNOWN = 1850,
+
+ /**
+ * The given coin signature is invalid for the request.
+ * This response is provided with an
+ * HTTP status code of MHD_HTTP_UNAUTHORIZED.
+ */
+ TALER_EC_PAYBACK_SIGNATURE_INVALID = 1851,
+
+ /**
+ * The signature of the denomination key over the coin is not valid.
+ * This response is provided with HTTP status code
+ * MHD_HTTP_BAD_REQUEST.
+ */
+ TALER_EC_PAYBACK_DENOMINATION_SIGNATURE_INVALID = 1852,
+
/* *********** Merchant backend error codes ********* */