diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-05-07 21:09:47 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-07-29 12:18:40 +0200 |
commit | 9d21c0598e11bac144bbb3333b95b0881127d76c (patch) | |
tree | 6fbe93ad90513fd863a5d22e9fa18a1a2539280b /src/util/util.c | |
parent | 042f91464f787fb1a51198acc6f560226c3cc977 (diff) |
-fix more build issues
Diffstat (limited to 'src/util/util.c')
-rw-r--r-- | src/util/util.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/util/util.c b/src/util/util.c index da5727487..35f76bcfe 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -405,51 +405,4 @@ strchrnul (const char *s, #endif -void -TALER_CRYPTO_attributes_to_kyc_prox ( - const json_t *attr, - struct GNUNET_ShortHashCode *kyc_prox) -{ - const char *name = NULL; - const char *birthdate = NULL; - struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_mark_optional ( - GNUNET_JSON_spec_string (TALER_ATTRIBUTE_FULL_NAME, - &name), - NULL), - GNUNET_JSON_spec_mark_optional ( - GNUNET_JSON_spec_string (TALER_ATTRIBUTE_BIRTHDATE, - &birthdate), - NULL), - GNUNET_JSON_spec_end () - }; - - if (GNUNET_OK != - GNUNET_JSON_parse (attr, - spec, - NULL, NULL)) - { - GNUNET_break (0); - memset (kyc_prox, - 0, - sizeof (*kyc_prox)); - return; - } - GNUNET_assert (GNUNET_YES == - GNUNET_CRYPTO_kdf ( - kyc_prox, - sizeof (*kyc_prox), - name, - (NULL == name) - ? 0 - : strlen (name), - birthdate, - (NULL == birthdate) - ? 0 - : strlen (birthdate), - NULL, - 0)); -} - - /* end of util.c */ |