[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 12/171: - change record data name
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 12/171: - change record data name |
Date: |
Thu, 04 Jan 2018 16:08:40 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 45c17975732ef486a7ef4c64fb7161c89275bf05
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Fri Dec 2 13:50:43 2016 +0100
- change record data name
---
src/credential/plugin_gnsrecord_credential.c | 8 ++++----
src/include/gnunet_credential_service.h | 7 ++++---
2 files changed, 8 insertions(+), 7 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),
diff --git a/src/include/gnunet_credential_service.h
b/src/include/gnunet_credential_service.h
index a5dc49cfb..5675cd990 100644
--- a/src/include/gnunet_credential_service.h
+++ b/src/include/gnunet_credential_service.h
@@ -74,9 +74,9 @@ enum GNUNET_CREDENTIAL_CredentialFlags {
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
@@ -112,7 +112,7 @@ struct GNUNET_CREDENTIAL_AttributeRecordData {
/**
* The attribute delegation record
*/
-struct GNUNET_CREDENTIAL_AttributeDelegationRecordData {
+struct GNUNET_CREDENTIAL_AttributeRecordData {
/**
* Public key of the subject this attribute was delegated to
@@ -121,6 +121,7 @@ struct GNUNET_CREDENTIAL_AttributeDelegationRecordData {
/**
* Followed by the attribute that was delegated to as string
+ * May be empty
*/
};
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] 02/171: Merge branch 'master' into credentials, (continued)
- [GNUnet-SVN] [gnunet] 02/171: Merge branch 'master' into credentials, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 05/171: Merge remote-tracking branch 'origin/master' into credentials, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 07/171: Merge remote-tracking branch 'origin/master' into credentials, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 06/171: Merge remote-tracking branch 'origin/master' into credentials, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 09/171: Merge branch 'credentials' of git+ssh://gnunet.org/gnunet into credentials, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 08/171: - Test commit - adding author, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 01/171: add credential, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 11/171: -add todos, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 10/171: - fix call, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 15/171: Merge remote-tracking branch 'origin/master' into credentials, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 12/171: - change record data name,
gnunet <=
- [GNUnet-SVN] [gnunet] 17/171: - added DLL and some checks, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 04/171: - add missing API; no impl, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 13/171: - add signatures to creds, add converter, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 23/171: -add simple test, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 19/171: Merge branch 'credentials' of git+ssh://gnunet.org/gnunet into credentials, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 20/171: -fix compile, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 18/171: Merge branch 'credentials' of git+ssh://gnunet.org/gnunet into credentials, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 27/171: - remove purpose from cred, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 25/171: -fix verifymessage, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 16/171: -update test, gnunet, 2018/01/04