diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-02 13:50:43 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-02 13:50:43 +0100 |
commit | 45c17975732ef486a7ef4c64fb7161c89275bf05 (patch) | |
tree | dc0d7be0b1832159bbaf7b628ddb07d12b3e68ad /src/credential/plugin_gnsrecord_credential.c | |
parent | 3664423a917b4cf3773445b40b5ad8f5dd8e35e8 (diff) |
- change record data name
Diffstat (limited to 'src/credential/plugin_gnsrecord_credential.c')
-rw-r--r-- | src/credential/plugin_gnsrecord_credential.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/credential/plugin_gnsrecord_credential.c b/src/credential/plugin_gnsrecord_credential.c index cc645468d..480dc4c62 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, { case GNUNET_GNSRECORD_TYPE_CREDENTIAL: { - struct GNUNET_CREDENTIAL_AttributeRecordData cred; + struct GNUNET_CREDENTIAL_CredentialRecordData cred; char *cred_str; char *subject_pkey; char *issuer_pkey; uint32_t cf; // Credential flags - if (data_size < sizeof (struct GNUNET_CREDENTIAL_AttributeRecordData)) + if (data_size < sizeof (struct GNUNET_CREDENTIAL_CredentialRecordData)) return NULL; /* malformed */ memcpy (&cred, data, @@ -111,7 +111,7 @@ credential_string_to_value (void *cls, { case GNUNET_GNSRECORD_TYPE_CREDENTIAL: { - struct GNUNET_CREDENTIAL_AttributeRecordData *cred; + struct GNUNET_CREDENTIAL_CredentialRecordData *cred; unsigned int cf; // credential flags size_t enclen = (sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey)) * 8; @@ -134,7 +134,7 @@ credential_string_to_value (void *cls, s); return GNUNET_SYSERR; } - *data_size = sizeof (struct GNUNET_CREDENTIAL_AttributeRecordData) + strlen (name) + 1; + *data_size = sizeof (struct GNUNET_CREDENTIAL_CredentialRecordData) + strlen (name) + 1; *data = cred = GNUNET_malloc (*data_size); GNUNET_CRYPTO_ecdsa_public_key_from_string (subject_pkey, strlen (subject_pkey), |