diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-01-27 16:09:25 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-01-27 16:09:25 +0100 |
commit | 59716ffdc48ad71a0f047f7e68f04b64d449d408 (patch) | |
tree | 8f913d7c24140df6ea6c2b46e389ffdf4363f618 /src/exchange/taler-exchange-httpd_kyc-proof.c | |
parent | d79c23aaabb5dc1c9073555d574bea01b75668cd (diff) | |
download | exchange-59716ffdc48ad71a0f047f7e68f04b64d449d408.tar.gz exchange-59716ffdc48ad71a0f047f7e68f04b64d449d408.tar.bz2 exchange-59716ffdc48ad71a0f047f7e68f04b64d449d408.zip |
add logic to store attributes
Diffstat (limited to 'src/exchange/taler-exchange-httpd_kyc-proof.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_kyc-proof.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-httpd_kyc-proof.c b/src/exchange/taler-exchange-httpd_kyc-proof.c index 11d179667..6d06f0c82 100644 --- a/src/exchange/taler-exchange-httpd_kyc-proof.c +++ b/src/exchange/taler-exchange-httpd_kyc-proof.c @@ -24,6 +24,7 @@ #include <jansson.h> #include <microhttpd.h> #include <pthread.h> +#include "taler_attributes.h" #include "taler_json_lib.h" #include "taler_kyclogic_lib.h" #include "taler_mhd_lib.h" @@ -200,12 +201,10 @@ proof_cb ( const char *birthdate; struct GNUNET_ShortHashCode kyc_prox; - // FIXME: compute kyc_prox properly! - memset (&kyc_prox, - 0, - sizeof (kyc_prox)); + TALER_CRYPTO_attributes_to_kyc_prox (attributes, + &kyc_prox); birthdate = json_string_value (json_object_get (attributes, - "birthdate")); + TALER_ATTRIBUTE_BIRTHDATE)); TALER_CRYPTO_kyc_attributes_encrypt (&TEH_attribute_key, attributes, &ea, |