summaryrefslogtreecommitdiff
path: root/src/stasis
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-30 00:06:02 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-30 00:06:02 +0100
commit9f7a6d50b4c6a79ab16dfabe2c57510565bc4cf2 (patch)
tree445f5929acde578e82967e6e849ca11ce6e987a7 /src/stasis
parent1b40f010dcb1bd2ecfe8355088c5306968e6de1a (diff)
downloadanastasis-9f7a6d50b4c6a79ab16dfabe2c57510565bc4cf2.tar.gz
anastasis-9f7a6d50b4c6a79ab16dfabe2c57510565bc4cf2.tar.bz2
anastasis-9f7a6d50b4c6a79ab16dfabe2c57510565bc4cf2.zip
simplify pin entry by breaking up into groups and auto-completion (#7088)
Diffstat (limited to 'src/stasis')
-rw-r--r--src/stasis/plugin_anastasis_postgres.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/stasis/plugin_anastasis_postgres.c b/src/stasis/plugin_anastasis_postgres.c
index 813da94..6bb7f32 100644
--- a/src/stasis/plugin_anastasis_postgres.c
+++ b/src/stasis/plugin_anastasis_postgres.c
@@ -38,12 +38,6 @@
*/
#define MAX_RETRIES 3
-/**
- * Maximum value allowed for nonces. Limited to 2^52 to ensure the
- * numeric value survives a conversion to float by JavaScript.
- */
-#define NONCE_MAX_VALUE (1LLU << 52)
-
/**
* Type of the "cls" argument given to each of the functions in
@@ -2629,7 +2623,7 @@ postgres_create_challenge_code (
}
*code = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_NONCE,
- NONCE_MAX_VALUE);
+ ANASTASIS_PIN_MAX_VALUE);
*retransmission_date = GNUNET_TIME_UNIT_ZERO_TS;
{
struct GNUNET_PQ_QueryParam params[] = {