commit 2c5edc3039fd5fb5826d18c09e3603e1691b1d3d
parent b86d6f7a2ad3cfc76be65d9acb116848aade8b83
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 10 Feb 2025 20:17:09 +0100
-explain not comparing 'cipher'
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-post-token-families.c b/src/backend/taler-merchant-httpd_private-post-token-families.c
@@ -46,6 +46,10 @@ static bool
token_families_equal (const struct TALER_MERCHANTDB_TokenFamilyDetails *tf1,
const struct TALER_MERCHANTDB_TokenFamilyDetails *tf2)
{
+ /* Note: we're not comparing 'cipher', as that is selected
+ in the database to some default value and we currently
+ do not allow the SPA to change it. As a result, it should
+ always be "NULL" in tf1 and the DB-default in tf2. */
return ( (0 == strcmp (tf1->slug,
tf2->slug)) &&
(0 == strcmp (tf1->name,