rename macro
This commit is contained in:
parent
8fe127eb2e
commit
0dfd1af8d7
@ -142,7 +142,7 @@ TEH_RESPONSE_compile_transaction_history (
|
||||
|
||||
/* Age restriction is optional. We communicate a NULL value to
|
||||
* JSON_PACK below */
|
||||
if (! TALER_AgeHash_isZero (&melt->h_age_commitment))
|
||||
if (! TALER_AgeHash_isNullOrZero (&melt->h_age_commitment))
|
||||
phac = &melt->h_age_commitment;
|
||||
|
||||
if (0 !=
|
||||
|
@ -312,10 +312,11 @@ struct TALER_AgeHash
|
||||
};
|
||||
|
||||
extern const struct TALER_AgeHash TALER_AgeHash_zeroHash;
|
||||
#define TALER_AgeHash_isZero(ph) ((NULL == ph) || \
|
||||
(0 == memcmp (ph, \
|
||||
&TALER_AgeHash_zeroHash, \
|
||||
sizeof(struct TALER_AgeHash))))
|
||||
#define TALER_AgeHash_isNullOrZero(ph) ((NULL == ph) || \
|
||||
(0 == memcmp (ph, \
|
||||
&TALER_AgeHash_zeroHash, \
|
||||
sizeof(struct \
|
||||
TALER_AgeHash))))
|
||||
|
||||
/**
|
||||
* @brief Type of public keys for Taler coins. The same key material is used
|
||||
|
@ -593,7 +593,8 @@ TALER_EXCHANGE_verify_coin_history (
|
||||
&fee,
|
||||
&rc,
|
||||
h_denom_pub,
|
||||
TALER_AgeHash_isZero (&h_age_commitment) ?
|
||||
TALER_AgeHash_isNullOrZero (
|
||||
&h_age_commitment) ?
|
||||
NULL : &h_age_commitment,
|
||||
coin_pub,
|
||||
&sig))
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <gcrypt.h>
|
||||
|
||||
/**
|
||||
* Used in TALER_AgeHash_isZero for comparison
|
||||
* Used in TALER_AgeHash_isNullOrZero for comparison
|
||||
*/
|
||||
const struct TALER_AgeHash TALER_AgeHash_zeroHash = {0};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user