aboutsummaryrefslogtreecommitdiff
path: root/src/util/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/util.c')
-rw-r--r--src/util/util.c47
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 */