[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 29/171: Merge branch 'credentials' of git+ssh://gn
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 29/171: Merge branch 'credentials' of git+ssh://gnunet.org/gnunet into credentials |
Date: |
Thu, 04 Jan 2018 16:08:57 +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 38153c76241311666e9aa26f2cec534f62900c72
Merge: 0f854e736 01fcfd11a
Author: Adnan H <address@hidden>
AuthorDate: Mon Dec 5 22:17:37 2016 +0100
Merge branch 'credentials' of git+ssh://gnunet.org/gnunet into credentials
src/credential/credential.h | 10 ++++
src/credential/credential_api.c | 34 +++++++----
src/credential/gnunet-credential.c | 37 +++++++-----
src/credential/gnunet-service-credential.c | 52 +++++++++-------
src/credential/plugin_gnsrecord_credential.c | 79 ++++++++++++++-----------
src/credential/test_credential_issue.sh | 36 +++++++++++
src/credential/test_credential_verify_simple.sh | 52 ++++++++++++++++
src/include/gnunet_credential_service.h | 5 --
8 files changed, 219 insertions(+), 86 deletions(-)
diff --cc src/credential/gnunet-service-credential.c
index 047ea0075,20f6fe4e0..792d8741e
--- a/src/credential/gnunet-service-credential.c
+++ b/src/credential/gnunet-service-credential.c
@@@ -328,20 -262,10 +325,20 @@@ send_lookup_response (void* cls
struct GNUNET_MQ_Envelope *env;
struct VerifyResultMessage *rmsg;
const struct GNUNET_CREDENTIAL_CredentialRecordData *crd;
+ struct GNUNET_CRYPTO_EccSignaturePurpose *purp;
struct CredentialRecordEntry *cr_entry;
- int cred_verified;
cred_record_count = 0;
+ struct AttributeRecordEntry *attr_entry;
+
+ struct GNUNET_CREDENTIAL_AttributeRecordData *ard =
+ GNUNET_new(struct GNUNET_CREDENTIAL_AttributeRecordData);
+
+ attr_entry->record_data = *ard;
+ ard->subject_key = vrh->issuer_key;
+ GNUNET_CONTAINER_DLL_insert_tail (vrh->attr_queue_head,
+ vrh->attr_queue_tail,
+ attr_entry);
for (i=0; i < rd_count; i++)
{
if (GNUNET_GNSRECORD_TYPE_CREDENTIAL != rd[i].record_type)
@@@ -373,28 -306,7 +379,27 @@@
}
+ /**
+ * Check for attributes from the issuer and follow the chain
+ * till you get the required subject's attributes
+ */
+ if(cred_verified != GNUNET_YES){
+
+
+ vrh->attr_pointer = vrh->attr_queue_head;
+
+ //Start with backward resolution
+ GNUNET_GNS_lookup (gns,
+ vrh->issuer_attribute,
+ &vrh->issuer_key, //issuer_key,
+ GNUNET_GNSRECORD_TYPE_ATTRIBUTE,
+ GNUNET_GNS_LO_DEFAULT,
+ NULL, //shorten_key, always NULL
+ &start_backward_resolution,
+ vrh);
+ }
+
-
/**
* TODO
* Start resolution of Attribute delegations from issuer
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] 20/171: -fix compile, (continued)
- [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
- [GNUnet-SVN] [gnunet] 21/171: - add verify and issue to cli, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 03/171: - move towards verification, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 14/171: -cleanup cli tool, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 22/171: -add issue test, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 24/171: -add tests, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 29/171: Merge branch 'credentials' of git+ssh://gnunet.org/gnunet into credentials,
gnunet <=
- [GNUnet-SVN] [gnunet] 36/171: -fix, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 26/171: - add signature to cred, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 28/171: - starting backward resolution, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 31/171: Merge branch 'credentials' of git+ssh://gnunet.org/gnunet into credentials, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 41/171: - fix test, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 34/171: - minor fixes, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 33/171: -fix, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 32/171: -add expiration to cred, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 42/171: -add confs, gnunet, 2018/01/04
- [GNUnet-SVN] [gnunet] 35/171: Merge branch 'credentials' of git+ssh://gnunet.org/gnunet into credentials, gnunet, 2018/01/04