diff options
Diffstat (limited to 'src/reclaim/reclaim_credential.c')
-rw-r--r-- | src/reclaim/reclaim_credential.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/reclaim/reclaim_credential.c b/src/reclaim/reclaim_credential.c index da5cee988..b4aeedf29 100644 --- a/src/reclaim/reclaim_credential.c +++ b/src/reclaim/reclaim_credential.c | |||
@@ -135,7 +135,6 @@ RECLAIM_CREDENTIAL_fini () | |||
135 | } | 135 | } |
136 | 136 | ||
137 | 137 | ||
138 | |||
139 | /** | 138 | /** |
140 | * Convert an credential type name to the corresponding number | 139 | * Convert an credential type name to the corresponding number |
141 | * | 140 | * |
@@ -1030,6 +1029,7 @@ GNUNET_RECLAIM_presentation_get_expiration (const struct | |||
1030 | return GNUNET_SYSERR; | 1029 | return GNUNET_SYSERR; |
1031 | } | 1030 | } |
1032 | 1031 | ||
1032 | |||
1033 | /** | 1033 | /** |
1034 | * Create a presentation from a credential and a lift of (selected) | 1034 | * Create a presentation from a credential and a lift of (selected) |
1035 | * attributes in the credential. | 1035 | * attributes in the credential. |
@@ -1042,9 +1042,9 @@ GNUNET_RECLAIM_presentation_get_expiration (const struct | |||
1042 | */ | 1042 | */ |
1043 | int | 1043 | int |
1044 | GNUNET_RECLAIM_credential_get_presentation ( | 1044 | GNUNET_RECLAIM_credential_get_presentation ( |
1045 | const struct GNUNET_RECLAIM_Credential *cred, | 1045 | const struct GNUNET_RECLAIM_Credential *cred, |
1046 | const struct GNUNET_RECLAIM_AttributeList *attrs, | 1046 | const struct GNUNET_RECLAIM_AttributeList *attrs, |
1047 | struct GNUNET_RECLAIM_Presentation **pres) | 1047 | struct GNUNET_RECLAIM_Presentation **presentation) |
1048 | { | 1048 | { |
1049 | unsigned int i; | 1049 | unsigned int i; |
1050 | struct Plugin *plugin; | 1050 | struct Plugin *plugin; |
@@ -1055,13 +1055,10 @@ GNUNET_RECLAIM_credential_get_presentation ( | |||
1055 | if (GNUNET_OK != plugin->api->create_presentation (plugin->api->cls, | 1055 | if (GNUNET_OK != plugin->api->create_presentation (plugin->api->cls, |
1056 | cred, | 1056 | cred, |
1057 | attrs, | 1057 | attrs, |
1058 | pres)) | 1058 | presentation)) |
1059 | continue; | 1059 | continue; |
1060 | (*pres)->credential_id = cred->id; | 1060 | (*presentation)->credential_id = cred->id; |
1061 | return GNUNET_OK; | 1061 | return GNUNET_OK; |
1062 | } | 1062 | } |
1063 | return GNUNET_SYSERR; | 1063 | return GNUNET_SYSERR; |
1064 | } | 1064 | } |
1065 | |||
1066 | |||
1067 | |||