aboutsummaryrefslogtreecommitdiff
path: root/src/credential/credential_serialization.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/credential/credential_serialization.h')
-rw-r--r--src/credential/credential_serialization.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/credential/credential_serialization.h b/src/credential/credential_serialization.h
index 7f6d0dda9..39ac0103b 100644
--- a/src/credential/credential_serialization.h
+++ b/src/credential/credential_serialization.h
@@ -79,12 +79,14 @@ GNUNET_CREDENTIAL_delegation_set_deserialize (size_t len,
79 * 79 *
80 * @param d_count number of delegation chain entries 80 * @param d_count number of delegation chain entries
81 * @param dd array of #GNUNET_CREDENTIAL_Delegation 81 * @param dd array of #GNUNET_CREDENTIAL_Delegation
82 * @param c_count number of credential entries
82 * @param cd a #GNUNET_CREDENTIAL_Credential 83 * @param cd a #GNUNET_CREDENTIAL_Credential
83 * @return the required size to serialize 84 * @return the required size to serialize
84 */ 85 */
85 size_t 86 size_t
86 GNUNET_CREDENTIAL_delegation_chain_get_size (unsigned int d_count, 87 GNUNET_CREDENTIAL_delegation_chain_get_size (unsigned int d_count,
87 const struct GNUNET_CREDENTIAL_Delegation *dd, 88 const struct GNUNET_CREDENTIAL_Delegation *dd,
89 unsigned int c_count,
88 const struct GNUNET_CREDENTIAL_Credential *cd); 90 const struct GNUNET_CREDENTIAL_Credential *cd);
89 91
90 /** 92 /**
@@ -92,6 +94,7 @@ GNUNET_CREDENTIAL_delegation_set_deserialize (size_t len,
92 * 94 *
93 * @param d_count number of delegation chain entries 95 * @param d_count number of delegation chain entries
94 * @param dd array of #GNUNET_CREDENTIAL_Delegation 96 * @param dd array of #GNUNET_CREDENTIAL_Delegation
97 * @param c_count number of credential entries
95 * @param cd a #GNUNET_CREDENTIAL_Credential 98 * @param cd a #GNUNET_CREDENTIAL_Credential
96 * @param dest_size size of the destination 99 * @param dest_size size of the destination
97 * @param dest where to store the result 100 * @param dest where to store the result
@@ -100,6 +103,7 @@ GNUNET_CREDENTIAL_delegation_set_deserialize (size_t len,
100 ssize_t 103 ssize_t
101 GNUNET_CREDENTIAL_delegation_chain_serialize (unsigned int d_count, 104 GNUNET_CREDENTIAL_delegation_chain_serialize (unsigned int d_count,
102 const struct GNUNET_CREDENTIAL_Delegation *dd, 105 const struct GNUNET_CREDENTIAL_Delegation *dd,
106 unsigned int c_count,
103 const struct GNUNET_CREDENTIAL_Credential *cd, 107 const struct GNUNET_CREDENTIAL_Credential *cd,
104 size_t dest_size, 108 size_t dest_size,
105 char *dest); 109 char *dest);
@@ -112,6 +116,7 @@ GNUNET_CREDENTIAL_delegation_set_deserialize (size_t len,
112 * @param src the serialized data 116 * @param src the serialized data
113 * @param d_count the number of delegation chain entries 117 * @param d_count the number of delegation chain entries
114 * @param dd where to put the delegation chain entries 118 * @param dd where to put the delegation chain entries
119 * @param c_count number of credential entries
115 * @param cd where to put the credential data 120 * @param cd where to put the credential data
116 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error 121 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
117 */ 122 */
@@ -120,5 +125,6 @@ GNUNET_CREDENTIAL_delegation_set_deserialize (size_t len,
120 const char *src, 125 const char *src,
121 unsigned int d_count, 126 unsigned int d_count,
122 struct GNUNET_CREDENTIAL_Delegation *dd, 127 struct GNUNET_CREDENTIAL_Delegation *dd,
128 unsigned int c_count,
123 struct GNUNET_CREDENTIAL_Credential *cd); 129 struct GNUNET_CREDENTIAL_Credential *cd);
124 /* end of credential_serialization.h */ 130 /* end of credential_serialization.h */