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/include/gnunet_reclaim_lib.h | |
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/include/gnunet_reclaim_lib.h')
-rw-r--r-- | src/include/gnunet_reclaim_lib.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/include/gnunet_reclaim_lib.h b/src/include/gnunet_reclaim_lib.h index f5c3d3864..bbf1c3ad3 100644 --- a/src/include/gnunet_reclaim_lib.h +++ b/src/include/gnunet_reclaim_lib.h | |||
@@ -780,6 +780,11 @@ GNUNET_RECLAIM_presentation_value_to_string (uint32_t type, | |||
780 | const void *data, | 780 | const void *data, |
781 | size_t data_size); | 781 | size_t data_size); |
782 | 782 | ||
783 | struct GNUNET_RECLAIM_Presentation * | ||
784 | GNUNET_RECLAIM_presentation_new (uint32_t type, | ||
785 | const void *data, | ||
786 | size_t data_size); | ||
787 | |||
783 | /** | 788 | /** |
784 | * Convert human-readable version of a 'claim' of a presentation to the binary | 789 | * Convert human-readable version of a 'claim' of a presentation to the binary |
785 | * representation | 790 | * representation |
@@ -828,14 +833,16 @@ GNUNET_RECLAIM_presentation_get_expiration (const struct | |||
828 | * | 833 | * |
829 | * @param cred the credential to use | 834 | * @param cred the credential to use |
830 | * @param attrs the attributes to present from the credential | 835 | * @param attrs the attributes to present from the credential |
831 | * @return the credential presentation presenting the attributes according | 836 | * @param presentation the credential presentation presenting the attributes according |
832 | * to the presentation mechanism of the credential | 837 | * to the presentation mechanism of the credential |
833 | * or NULL on error. | 838 | * or NULL on error. |
839 | * @return GNUNET_OK on success. | ||
834 | */ | 840 | */ |
835 | struct GNUNET_RECLAIM_Presentation* | 841 | int |
836 | GNUNET_RECLAIM_credential_get_presentation ( | 842 | GNUNET_RECLAIM_credential_get_presentation ( |
837 | const struct GNUNET_RECLAIM_Credential *cred, | 843 | const struct GNUNET_RECLAIM_Credential *cred, |
838 | const struct GNUNET_RECLAIM_AttributeList *attrs); | 844 | const struct GNUNET_RECLAIM_AttributeList *attrs, |
845 | struct GNUNET_RECLAIM_Presentation **presentation); | ||
839 | 846 | ||
840 | 847 | ||
841 | #if 0 /* keep Emacsens' auto-indent happy */ | 848 | #if 0 /* keep Emacsens' auto-indent happy */ |