[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 20/171: -fix compile
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 20/171: -fix compile |
Date: |
Thu, 04 Jan 2018 16:08:48 +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 59f9630b8be3dcde087a4ef6956217704d0dacb4
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Fri Dec 2 15:57:58 2016 +0100
-fix compile
---
src/credential/gnunet-service-credential.c | 32 ++++++++++--------------------
1 file changed, 11 insertions(+), 21 deletions(-)
diff --git a/src/credential/gnunet-service-credential.c
b/src/credential/gnunet-service-credential.c
index ed7d249e3..aa3c02003 100644
--- a/src/credential/gnunet-service-credential.c
+++ b/src/credential/gnunet-service-credential.c
@@ -28,6 +28,7 @@
#include "gnunet_statistics_service.h"
#include "credential.h"
#include "gnunet_protocols.h"
+#include "gnunet_signatures.h"
// For Looking up GNS request
#include <gnunet_dnsparser_lib.h>
@@ -83,8 +84,8 @@ struct AttributeRecordEntry
/**
*
*/
- struct GNUNET_CREDENTIAL_AttributeDelegationRecordData;
-}
+ struct GNUNET_CREDENTIAL_AttributeRecordData record_data;
+};
/**
* Handle to a lookup operation from api
@@ -264,16 +265,10 @@ send_lookup_response (void* cls,
struct GNUNET_MQ_Envelope *env;
struct VerifyResultMessage *rmsg;
const struct GNUNET_CREDENTIAL_CredentialRecordData *crd;
- struct GNUNET_CREDENTIAL_AttributeDelegationRecordData *adrd;
struct CredentialRecordEntry *cr_entry;
- struct AttributeRecordEntry *attr_entry;
- bool cred_verified;
+ int cred_verified;
cred_record_count = 0;
- adrd = GNUNET_CREDENTIAL_AttributeDelegationRecordData
- 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)
@@ -294,22 +289,17 @@ send_lookup_response (void* cls,
vrh->cred_chain_tail,
cr_entry);
- if(GNUNET_CRYPTO_ecdsa_verify(GNUNET_SIGNATURE_PURPOSE_CREDENTIAL,
purpose, sig, issuer_key))
+ if(GNUNET_OK ==
GNUNET_CRYPTO_ecdsa_verify(GNUNET_SIGNATURE_PURPOSE_CREDENTIAL,
+ &crd->purpose,
+ &crd->sig, &crd->issuer_key))
{
- cred_verified = true;
+ cred_verified = GNUNET_YES;
break;
}
}
- /**
- * Check for attributes from the issuer and follow the chain
- * till you get the required subject's attributes
- */
- if(cred_verified != true){
- for(i=0 ; i < rd_count ; i++){
-
/**
* TODO
@@ -335,7 +325,7 @@ send_lookup_response (void* cls,
GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT);
//Assign id so that client can find associated request
rmsg->id = vrh->request_id;
- rmsg->ad_count = htonl (attr_record_count);
+ rmsg->ad_count = htonl (cred_record_count);
/**
* Get serialized record data
@@ -343,10 +333,10 @@ send_lookup_response (void* cls,
*/
i = 0;
struct GNUNET_CREDENTIAL_CredentialRecordData *tmp_record = (struct
GNUNET_CREDENTIAL_CredentialRecordData*) &rmsg[1];
- for (ar_entry = vrh->attr_chain_head; NULL != ar_entry; ar_entry =
ar_entry->next)
+ for (cr_entry = vrh->cred_chain_head; NULL != cr_entry; cr_entry =
cr_entry->next)
{
memcpy (tmp_record,
- &ar_entry->record_data,
+ &cr_entry->record_data,
sizeof (struct GNUNET_CREDENTIAL_CredentialRecordData));
tmp_record++;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] 01/171: add credential, (continued)
- [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, 2018/01/04
- [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 <=
- [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, 2018/01/04