diff options
author | Marco Boss <bossm8@bfh.ch> | 2022-03-17 14:09:12 +0100 |
---|---|---|
committer | Marco Boss <bossm8@bfh.ch> | 2022-03-17 14:09:12 +0100 |
commit | 63879d9d20986e66e847f1e19b16f5f2a60ee469 (patch) | |
tree | aea7719ed40d80099503303ce2348d5f7fad9788 /src/exchange/taler-exchange-httpd_melt.c | |
parent | fe94405554482565beca89bf475b4695af924458 (diff) |
more explicit cipher usage counters
Diffstat (limited to 'src/exchange/taler-exchange-httpd_melt.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_melt.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_melt.c b/src/exchange/taler-exchange-httpd_melt.c index f1e99a86..531209c1 100644 --- a/src/exchange/taler-exchange-httpd_melt.c +++ b/src/exchange/taler-exchange-httpd_melt.c @@ -341,7 +341,17 @@ check_melt_valid (struct MHD_Connection *connection, TALER_EC_EXCHANGE_MELT_FEES_EXCEED_CONTRIBUTION, NULL); } - TEH_METRICS_num_verifications[TEH_MT_CIPHER]++; + switch (dk->denom_pub.cipher) + { + case TALER_DENOMINATION_RSA: + TEH_METRICS_num_verifications[TEH_MT_SIGNATURE_RSA]++; + break; + case TALER_DENOMINATION_CS: + TEH_METRICS_num_verifications[TEH_MT_SIGNATURE_CS]++; + break; + default: + break; + } if (GNUNET_OK != TALER_test_coin_valid (&rmc->refresh_session.coin, &dk->denom_pub)) @@ -354,7 +364,7 @@ check_melt_valid (struct MHD_Connection *connection, } /* verify signature of coin for melt operation */ - TEH_METRICS_num_verifications[TEH_MT_EDDSA]++; + TEH_METRICS_num_verifications[TEH_MT_SIGNATURE_EDDSA]++; if (GNUNET_OK != TALER_wallet_melt_verify (&rmc->refresh_session.amount_with_fee, &rmc->coin_refresh_fee, |