diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-08-19 23:53:02 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-08-20 17:59:02 +0200 |
commit | a57d476abbe857365aff157f389cc1188b5dd090 (patch) | |
tree | e8f7163ef7e6f5426748fed8d2eaa5183038a5d6 /src/reclaim/plugin_rest_reclaim.c | |
parent | e75869506cc08e08056168383bd4ab02e1f007de (diff) | |
download | gnunet-a57d476abbe857365aff157f389cc1188b5dd090.tar.gz gnunet-a57d476abbe857365aff157f389cc1188b5dd090.zip |
reclaim: Attestations now called credentials. Credentials are presented to third parties as presentations.
Diffstat (limited to 'src/reclaim/plugin_rest_reclaim.c')
-rw-r--r-- | src/reclaim/plugin_rest_reclaim.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reclaim/plugin_rest_reclaim.c b/src/reclaim/plugin_rest_reclaim.c index a51d992e1..ff11d2a56 100644 --- a/src/reclaim/plugin_rest_reclaim.c +++ b/src/reclaim/plugin_rest_reclaim.c | |||
@@ -474,7 +474,7 @@ add_credential_cont (struct GNUNET_REST_RequestHandle *con_handle, | |||
474 | json_t *data_json; | 474 | json_t *data_json; |
475 | json_error_t err; | 475 | json_error_t err; |
476 | struct GNUNET_JSON_Specification attrspec[] = | 476 | struct GNUNET_JSON_Specification attrspec[] = |
477 | { GNUNET_RECLAIM_JSON_spec_claim_cred (&attribute), | 477 | { GNUNET_RECLAIM_JSON_spec_credential (&attribute), |
478 | GNUNET_JSON_spec_end () }; | 478 | GNUNET_JSON_spec_end () }; |
479 | 479 | ||
480 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 480 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -811,7 +811,7 @@ add_attribute_cont (struct GNUNET_REST_RequestHandle *con_handle, | |||
811 | json_t *data_json; | 811 | json_t *data_json; |
812 | json_error_t err; | 812 | json_error_t err; |
813 | struct GNUNET_JSON_Specification attrspec[] = | 813 | struct GNUNET_JSON_Specification attrspec[] = |
814 | { GNUNET_RECLAIM_JSON_spec_claim (&attribute), GNUNET_JSON_spec_end () }; | 814 | { GNUNET_RECLAIM_JSON_spec_attribute (&attribute), GNUNET_JSON_spec_end () }; |
815 | 815 | ||
816 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 816 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
817 | "Adding an attribute for %s.\n", | 817 | "Adding an attribute for %s.\n", |
@@ -1180,7 +1180,7 @@ static void | |||
1180 | consume_cont (void *cls, | 1180 | consume_cont (void *cls, |
1181 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, | 1181 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, |
1182 | const struct GNUNET_RECLAIM_Attribute *attr, | 1182 | const struct GNUNET_RECLAIM_Attribute *attr, |
1183 | const struct GNUNET_RECLAIM_Credential *cred) | 1183 | const struct GNUNET_RECLAIM_Presentation *pres) |
1184 | { | 1184 | { |
1185 | struct RequestHandle *handle = cls; | 1185 | struct RequestHandle *handle = cls; |
1186 | char *val_str; | 1186 | char *val_str; |