gnunet-svn
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]