* Save all found attributes/issues and prepare forward
* resolution of issuer attribute
*/
- ar_entry = GNUNET_new (struct AttributeRecordEntry);
- ar_entry->record_data = *ard;
- GNUNET_CONTAINER_DLL_insert_tail (vrh->attr_chain_head,
- vrh->attr_chain_tail,
- ar_entry);
+ cr_entry = GNUNET_new (struct CredentialRecordEntry);
+ cr_entry->record_data = *crd;
+ GNUNET_CONTAINER_DLL_insert_tail (vrh->cred_chain_head,
+ vrh->cred_chain_tail,
+ cr_entry);
+
+ if(GNUNET_CRYPTO_ecdsa_verify(GNUNET_SIGNATURE_PURPOSE_CREDENTIAL, purpose, sig, issuer_key))
+ {
+ cred_verified = true;
+ 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
+ * Start resolution of Attribute delegations from issuer
+ *
+ * - Build adequate data structures for attribute(s) to lookup
+ * - Use GNUNET_GNSRECORD_TYPE_XXX
+ * - recursively try to find match(es) with results found top
+ * - return one found credential chain
+ *
+ */
+
/**
* Get serialized record data size
*/