diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index cae16909..f2de7373 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -150,8 +150,8 @@ char *TMH_default_auth; enum GNUNET_GenericReturnValue TMH_check_auth (const char *token, - const struct GNUNET_ShortHashCode *salt, - const struct GNUNET_HashCode *hash) + struct TALER_MerchantAuthenticationSaltP *salt, + struct TALER_MerchantAuthenticationHashP *hash) { struct GNUNET_HashCode val; char *dec; @@ -180,7 +180,7 @@ TMH_check_auth (const char *token, 0)); GNUNET_free (dec); return (0 == GNUNET_memcmp (&val, - hash)) + &hash->hash)) ? GNUNET_OK : GNUNET_SYSERR; } @@ -188,8 +188,8 @@ TMH_check_auth (const char *token, void TMH_compute_auth (const char *token, - struct GNUNET_ShortHashCode *salt, - struct GNUNET_HashCode *hash) + struct TALER_MerchantAuthenticationSaltP *salt, + struct TALER_MerchantAuthenticationHashP *hash) { GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, salt, |