aboutsummaryrefslogtreecommitdiff
path: root/src/credential/plugin_gnsrecord_credential.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2016-11-20 17:49:04 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2016-11-20 17:49:04 +0100
commitfad73f2435336733ae585c7a018df860bec3bdf1 (patch)
tree912becfd30ae7d6a4d1fcc53095eef5205daf5ec /src/credential/plugin_gnsrecord_credential.c
parent18f106166cf64cc72206cd35301276aa21ca100a (diff)
downloadgnunet-fad73f2435336733ae585c7a018df860bec3bdf1.tar.gz
gnunet-fad73f2435336733ae585c7a018df860bec3bdf1.zip
- add missing API; no impl
Diffstat (limited to 'src/credential/plugin_gnsrecord_credential.c')
-rw-r--r--src/credential/plugin_gnsrecord_credential.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/credential/plugin_gnsrecord_credential.c b/src/credential/plugin_gnsrecord_credential.c
index 3ff00737b..cc645468d 100644
--- a/src/credential/plugin_gnsrecord_credential.c
+++ b/src/credential/plugin_gnsrecord_credential.c
@@ -53,12 +53,12 @@ credential_value_to_string (void *cls,
53 { 53 {
54 case GNUNET_GNSRECORD_TYPE_CREDENTIAL: 54 case GNUNET_GNSRECORD_TYPE_CREDENTIAL:
55 { 55 {
56 struct GNUNET_CREDENTIAL_RecordData cred; 56 struct GNUNET_CREDENTIAL_AttributeRecordData cred;
57 char *cred_str; 57 char *cred_str;
58 char *subject_pkey; 58 char *subject_pkey;
59 char *issuer_pkey; 59 char *issuer_pkey;
60 uint32_t cf; // Credential flags 60 uint32_t cf; // Credential flags
61 if (data_size < sizeof (struct GNUNET_CREDENTIAL_RecordData)) 61 if (data_size < sizeof (struct GNUNET_CREDENTIAL_AttributeRecordData))
62 return NULL; /* malformed */ 62 return NULL; /* malformed */
63 memcpy (&cred, 63 memcpy (&cred,
64 data, 64 data,
@@ -111,7 +111,7 @@ credential_string_to_value (void *cls,
111 { 111 {
112 case GNUNET_GNSRECORD_TYPE_CREDENTIAL: 112 case GNUNET_GNSRECORD_TYPE_CREDENTIAL:
113 { 113 {
114 struct GNUNET_CREDENTIAL_RecordData *cred; 114 struct GNUNET_CREDENTIAL_AttributeRecordData *cred;
115 unsigned int cf; // credential flags 115 unsigned int cf; // credential flags
116 116
117 size_t enclen = (sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey)) * 8; 117 size_t enclen = (sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey)) * 8;
@@ -134,7 +134,7 @@ credential_string_to_value (void *cls,
134 s); 134 s);
135 return GNUNET_SYSERR; 135 return GNUNET_SYSERR;
136 } 136 }
137 *data_size = sizeof (struct GNUNET_CREDENTIAL_RecordData) + strlen (name) + 1; 137 *data_size = sizeof (struct GNUNET_CREDENTIAL_AttributeRecordData) + strlen (name) + 1;
138 *data = cred = GNUNET_malloc (*data_size); 138 *data = cred = GNUNET_malloc (*data_size);
139 GNUNET_CRYPTO_ecdsa_public_key_from_string (subject_pkey, 139 GNUNET_CRYPTO_ecdsa_public_key_from_string (subject_pkey,
140 strlen (subject_pkey), 140 strlen (subject_pkey),