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_deposit.c | |
parent | fe94405554482565beca89bf475b4695af924458 (diff) |
more explicit cipher usage counters
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_deposit.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c index b1c91f76..a2e22f2e 100644 --- a/src/exchange/taler-exchange-httpd_deposit.c +++ b/src/exchange/taler-exchange-httpd_deposit.c @@ -382,7 +382,17 @@ TEH_handler_deposit (struct MHD_Connection *connection, deposit.deposit_fee = dk->meta.fees.deposit; /* check coin signature */ - 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_YES != TALER_test_coin_valid (&deposit.coin, &dk->denom_pub)) @@ -406,7 +416,7 @@ TEH_handler_deposit (struct MHD_Connection *connection, NULL); } - TEH_METRICS_num_verifications[TEH_MT_EDDSA]++; + TEH_METRICS_num_verifications[TEH_MT_SIGNATURE_EDDSA]++; if (GNUNET_OK != TALER_wallet_deposit_verify (&deposit.amount_with_fee, &deposit.deposit_fee, |