diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-10-06 15:05:06 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-10-06 15:05:06 +0200 |
commit | a56e2e34bce77d41a6d3a2cbbcb89119b98ef750 (patch) | |
tree | f71989d1aa318d62d2e0e4acd94f6b6454329535 /src/include/taler_json_lib.h | |
parent | 81ce7abe190751da205bced8ca340e1cdc83e4f0 (diff) | |
download | exchange-a56e2e34bce77d41a6d3a2cbbcb89119b98ef750.tar.xz |
fix #5434 (no more salt in exchange wire replies)
Diffstat (limited to 'src/include/taler_json_lib.h')
-rw-r--r-- | src/include/taler_json_lib.h | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index 0504ddfb8..99a2c375c 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -137,8 +137,22 @@ TALER_JSON_get_error_code (const json_t *json); * @return #GNUNET_OK on success, #GNUNET_SYSERR if @a wire_s is malformed */ int -TALER_JSON_wire_signature_hash (const json_t *wire_s, - struct GNUNET_HashCode *hc); +TALER_JSON_merchant_wire_signature_hash (const json_t *wire_s, + struct GNUNET_HashCode *hc); + + +/** + * Compute the hash of the given wire details. The resulting + * hash is what is signed by the master public key. + * + * @param wire_s wire details to hash + * @param hc[out] set to the hash + * @return #GNUNET_OK on success, #GNUNET_SYSERR if @a wire_s is malformed + */ +int +TALER_JSON_exchange_wire_signature_hash (const json_t *wire_s, + struct GNUNET_HashCode *hc); + /** * Check the signature in @a wire_s. @@ -148,8 +162,8 @@ TALER_JSON_wire_signature_hash (const json_t *wire_s, * @return #GNUNET_OK if signature is valid */ int -TALER_JSON_wire_signature_check (const json_t *wire_s, - const struct TALER_MasterPublicKeyP *master_pub); +TALER_JSON_exchange_wire_signature_check (const json_t *wire_s, + const struct TALER_MasterPublicKeyP *master_pub); /** @@ -159,8 +173,8 @@ TALER_JSON_wire_signature_check (const json_t *wire_s, * @param master_priv private key to sign with, NULL to not sign */ json_t * -TALER_JSON_wire_signature_make (const char *payto_url, - const struct TALER_MasterPrivateKeyP *master_priv); +TALER_JSON_exchange_wire_signature_make (const char *payto_url, + const struct TALER_MasterPrivateKeyP *master_priv); /** |