aboutsummaryrefslogtreecommitdiff
path: root/src/credential/credential_serialization.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/credential/credential_serialization.c')
-rw-r--r--src/credential/credential_serialization.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/credential/credential_serialization.c b/src/credential/credential_serialization.c
index 4f3b11450..65a85e37e 100644
--- a/src/credential/credential_serialization.c
+++ b/src/credential/credential_serialization.c
@@ -147,7 +147,7 @@ GNUNET_CREDENTIAL_delegation_set_deserialize (
147 * @return the required size to serialize 147 * @return the required size to serialize
148 */ 148 */
149size_t 149size_t
150GNUNET_CREDENTIAL_credentials_get_size ( 150GNUNET_CREDENTIAL_delegates_get_size (
151 unsigned int c_count, 151 unsigned int c_count,
152 const struct GNUNET_CREDENTIAL_Delegate *cd) 152 const struct GNUNET_CREDENTIAL_Delegate *cd)
153{ 153{
@@ -173,7 +173,7 @@ GNUNET_CREDENTIAL_credentials_get_size (
173 * @return the size of the data, -1 on failure 173 * @return the size of the data, -1 on failure
174 */ 174 */
175ssize_t 175ssize_t
176GNUNET_CREDENTIAL_credentials_serialize ( 176GNUNET_CREDENTIAL_delegates_serialize (
177 unsigned int c_count, 177 unsigned int c_count,
178 const struct GNUNET_CREDENTIAL_Delegate *cd, 178 const struct GNUNET_CREDENTIAL_Delegate *cd,
179 size_t dest_size, 179 size_t dest_size,
@@ -221,7 +221,7 @@ GNUNET_CREDENTIAL_credentials_serialize (
221 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error 221 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
222 */ 222 */
223int 223int
224GNUNET_CREDENTIAL_credentials_deserialize ( 224GNUNET_CREDENTIAL_delegates_deserialize (
225 size_t len, 225 size_t len,
226 const char *src, 226 const char *src,
227 unsigned int c_count, 227 unsigned int c_count,
@@ -281,7 +281,7 @@ GNUNET_CREDENTIAL_delegation_chain_get_size (
281 (ret + dd[i].issuer_attribute_len + dd[i].subject_attribute_len) >= ret); 281 (ret + dd[i].issuer_attribute_len + dd[i].subject_attribute_len) >= ret);
282 ret += dd[i].issuer_attribute_len + dd[i].subject_attribute_len; 282 ret += dd[i].issuer_attribute_len + dd[i].subject_attribute_len;
283 } 283 }
284 return ret + GNUNET_CREDENTIAL_credentials_get_size (c_count, cd); 284 return ret + GNUNET_CREDENTIAL_delegates_get_size (c_count, cd);
285} 285}
286 286
287/** 287/**
@@ -334,7 +334,7 @@ GNUNET_CREDENTIAL_delegation_chain_serialize (
334 dd[i].subject_attribute_len); 334 dd[i].subject_attribute_len);
335 off += dd[i].subject_attribute_len; 335 off += dd[i].subject_attribute_len;
336 } 336 }
337 return off + GNUNET_CREDENTIAL_credentials_serialize (c_count, 337 return off + GNUNET_CREDENTIAL_delegates_serialize (c_count,
338 cd, 338 cd,
339 dest_size - off, 339 dest_size - off,
340 &dest[off]); 340 &dest[off]);
@@ -385,7 +385,7 @@ GNUNET_CREDENTIAL_delegation_chain_deserialize (
385 dd[i].subject_attribute = &src[off]; 385 dd[i].subject_attribute = &src[off];
386 off += dd[i].subject_attribute_len; 386 off += dd[i].subject_attribute_len;
387 } 387 }
388 return GNUNET_CREDENTIAL_credentials_deserialize (len - off, 388 return GNUNET_CREDENTIAL_delegates_deserialize (len - off,
389 &src[off], 389 &src[off],
390 c_count, 390 c_count,
391 cd); 391 cd);