diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r-- | src/mint/taler-mint-httpd_responses.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index 12d4bced7..432772d79 100644 --- a/src/mint/taler-mint-httpd_responses.c +++ b/src/mint/taler-mint-httpd_responses.c | |||
@@ -125,6 +125,26 @@ TALER_MINT_reply_arg_invalid (struct MHD_Connection *connection, | |||
125 | 125 | ||
126 | 126 | ||
127 | /** | 127 | /** |
128 | * Send a response indicating an invalid coin. (I.e. the signature | ||
129 | * over the public key of the coin does not match a valid signing key | ||
130 | * of this mint). | ||
131 | * | ||
132 | * @param connection the MHD connection to use | ||
133 | * @return MHD result code | ||
134 | */ | ||
135 | int | ||
136 | TALER_MINT_reply_coin_invalid (struct MHD_Connection *connection) | ||
137 | { | ||
138 | /* TODO: may want to be more precise in the future and | ||
139 | distinguish bogus signatures from bogus public keys. */ | ||
140 | return TALER_MINT_reply_json_pack (connection, | ||
141 | MHD_HTTP_NOT_FOUND, | ||
142 | "{s:s}", | ||
143 | "error", "Coin is not valid"); | ||
144 | } | ||
145 | |||
146 | |||
147 | /** | ||
128 | * Send a response indicating a missing argument. | 148 | * Send a response indicating a missing argument. |
129 | * | 149 | * |
130 | * @param connection the MHD connection to use | 150 | * @param connection the MHD connection to use |