{
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,
{
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;
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),
GNUNET_NETWORK_STRUCT_BEGIN
/**
- * The attribute record
+ * The credential record
*/
-struct GNUNET_CREDENTIAL_AttributeRecordData {
+struct GNUNET_CREDENTIAL_CredentialRecordData {
/**
* Public key of the subject this credential was issued to
/**
* The attribute delegation record
*/
-struct GNUNET_CREDENTIAL_AttributeDelegationRecordData {
+struct GNUNET_CREDENTIAL_AttributeRecordData {
/**
* Public key of the subject this attribute was delegated to
/**
* Followed by the attribute that was delegated to as string
+ * May be empty
*/
};