diff options
Diffstat (limited to 'src/exchange')
| -rw-r--r-- | src/exchange/taler-exchange-httpd_keys.c | 4 | ||||
| -rw-r--r-- | src/exchange/taler-exchange-httpd_keys.h | 2 | ||||
| -rw-r--r-- | src/exchange/taler-exchange-httpd_refreshes_reveal.c | 19 | ||||
| -rw-r--r-- | src/exchange/taler-exchange-httpd_withdraw.c | 14 | 
4 files changed, 20 insertions, 19 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c index e18295c6..ad06b668 100644 --- a/src/exchange/taler-exchange-httpd_keys.c +++ b/src/exchange/taler-exchange-httpd_keys.c @@ -1918,14 +1918,14 @@ TEH_keys_denomination_by_hash2 (  } -struct TALER_DenominationSignature +struct TALER_BlindedDenominationSignature  TEH_keys_denomination_sign (const struct TALER_DenominationHash *h_denom_pub,                              const void *msg,                              size_t msg_size,                              enum TALER_ErrorCode *ec)  {    struct TEH_KeyStateHandle *ksh; -  struct TALER_DenominationSignature none; +  struct TALER_BlindedDenominationSignature none;    memset (&none,            0, diff --git a/src/exchange/taler-exchange-httpd_keys.h b/src/exchange/taler-exchange-httpd_keys.h index db967a31..9ad0c6a3 100644 --- a/src/exchange/taler-exchange-httpd_keys.h +++ b/src/exchange/taler-exchange-httpd_keys.h @@ -171,7 +171,7 @@ TEH_keys_denomination_by_hash2 (struct TEH_KeyStateHandle *ksh,   * @return signature, the value inside the structure will be NULL on failure,   *         see @a ec for details about the failure   */ -struct TALER_DenominationSignature +struct TALER_BlindedDenominationSignature  TEH_keys_denomination_sign (const struct TALER_DenominationHash *h_denom_pub,                              const void *msg,                              size_t msg_size, diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c index 925f7a09..4ec70313 100644 --- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c +++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c @@ -55,7 +55,8 @@  static MHD_RESULT  reply_refreshes_reveal_success (struct MHD_Connection *connection,                                  unsigned int num_freshcoins, -                                const struct TALER_DenominationSignature *sigs) +                                const struct +                                TALER_BlindedDenominationSignature *sigs)  {    json_t *list; @@ -68,8 +69,8 @@ reply_refreshes_reveal_success (struct MHD_Connection *connection,      json_t *obj;      obj = GNUNET_JSON_PACK ( -      TALER_JSON_pack_denom_sig ("ev_sig", -                                 &sigs[freshcoin_index])); +      TALER_JSON_pack_blinded_denom_sig ("ev_sig", +                                         &sigs[freshcoin_index]));      GNUNET_assert (0 ==                     json_array_append_new (list,                                            obj)); @@ -123,7 +124,7 @@ struct RevealContext    /**     * Envelopes with the signatures to be returned.  Initially NULL.     */ -  struct TALER_DenominationSignature *ev_sigs; +  struct TALER_BlindedDenominationSignature *ev_sigs;    /**     * Size of the @e dks, @e rcds and @e ev_sigs arrays (if non-NULL). @@ -187,10 +188,10 @@ check_exists_cb (void *cls,    if (NULL == rctx->ev_sigs)    {      rctx->ev_sigs = GNUNET_new_array (num_freshcoins, -                                      struct TALER_DenominationSignature); +                                      struct TALER_BlindedDenominationSignature);      for (unsigned int i = 0; i<num_freshcoins; i++) -      TALER_denom_sig_deep_copy (&rctx->ev_sigs[i], -                                 &rrcs[i].coin_sig); +      TALER_blinded_denom_sig_deep_copy (&rctx->ev_sigs[i], +                                         &rrcs[i].coin_sig);    }  } @@ -683,7 +684,7 @@ resolve_refreshes_reveal_denominations (struct MHD_Connection *connection,    /* sign _early_ (optimistic!) to keep out of transaction scope! */    rctx->ev_sigs = GNUNET_new_array (rctx->num_fresh_coins, -                                    struct TALER_DenominationSignature); +                                    struct TALER_BlindedDenominationSignature);    for (unsigned int i = 0; i<rctx->num_fresh_coins; i++)    {      enum TALER_ErrorCode ec = TALER_EC_NONE; @@ -769,7 +770,7 @@ cleanup:    if (NULL != rctx->ev_sigs)    {      for (unsigned int i = 0; i<num_fresh_coins; i++) -      TALER_denom_sig_free (&rctx->ev_sigs[i]); +      TALER_blinded_denom_sig_free (&rctx->ev_sigs[i]);      GNUNET_free (rctx->ev_sigs);      rctx->ev_sigs = NULL; /* just to be safe... */    } diff --git a/src/exchange/taler-exchange-httpd_withdraw.c b/src/exchange/taler-exchange-httpd_withdraw.c index d9c3b9e9..ef1bb27d 100644 --- a/src/exchange/taler-exchange-httpd_withdraw.c +++ b/src/exchange/taler-exchange-httpd_withdraw.c @@ -199,7 +199,7 @@ withdraw_transaction (void *cls,    struct WithdrawContext *wc = cls;    struct TALER_EXCHANGEDB_Reserve r;    enum GNUNET_DB_QueryStatus qs; -  struct TALER_DenominationSignature denom_sig; +  struct TALER_BlindedDenominationSignature denom_sig;  #if OPTIMISTIC_SIGN    /* store away optimistic signature to protect @@ -231,7 +231,7 @@ withdraw_transaction (void *cls,         optimization trade-off loses in this case: we unnecessarily computed         a signature :-( */  #if OPTIMISTIC_SIGN -    TALER_denom_sig_free (&denom_sig); +    TALER_blinded_denom_sig_free (&denom_sig);  #endif      return GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;    } @@ -582,7 +582,7 @@ TEH_handler_withdraw (struct TEH_RequestContext *rc,      {        /* Even if #withdraw_transaction() failed, it may have created a signature           (or we might have done it optimistically above). */ -      TALER_denom_sig_free (&wc.collectable.sig); +      TALER_blinded_denom_sig_free (&wc.collectable.sig);        GNUNET_JSON_parse_free (spec);        return mhd_ret;      } @@ -593,7 +593,7 @@ TEH_handler_withdraw (struct TEH_RequestContext *rc,    if (wc.kyc_denied)    { -    TALER_denom_sig_free (&wc.collectable.sig); +    TALER_blinded_denom_sig_free (&wc.collectable.sig);      return TALER_MHD_REPLY_JSON_PACK (        rc->connection,        MHD_HTTP_ACCEPTED, @@ -607,9 +607,9 @@ TEH_handler_withdraw (struct TEH_RequestContext *rc,      ret = TALER_MHD_REPLY_JSON_PACK (        rc->connection,        MHD_HTTP_OK, -      TALER_JSON_pack_denom_sig ("ev_sig", -                                 &wc.collectable.sig)); -    TALER_denom_sig_free (&wc.collectable.sig); +      TALER_JSON_pack_blinded_denom_sig ("ev_sig", +                                         &wc.collectable.sig)); +    TALER_blinded_denom_sig_free (&wc.collectable.sig);      return ret;    }  }  | 
