diff options
author | Andreas Ebner <pansy007@googlemail.com> | 2019-08-03 13:01:22 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-10-07 12:16:50 +0200 |
commit | 93cd93a1330fb38add615f797ac9a87fc252ff98 (patch) | |
tree | 89766b502d47d576531dc481fd488a9bdb1a701e /src/credential/credential.h | |
parent | 40624873cbd2eaf3a94185995b14899ea6ab36bf (diff) | |
download | gnunet-93cd93a1330fb38add615f797ac9a87fc252ff98.tar.gz gnunet-93cd93a1330fb38add615f797ac9a87fc252ff98.zip |
Updated fw/bw algo, collect, and verify (still some things left to do)
- collect/verify now use delegate instead of credential
- parameter in api messages to indicate the direction of the resolution
- fw algo sets delegation_chain and ref_count on solution find
- namestore lookup instead of iteration to get all delegates from starting/goal subject
Diffstat (limited to 'src/credential/credential.h')
-rw-r--r-- | src/credential/credential.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/credential/credential.h b/src/credential/credential.h index 9de137275..97fdfecbf 100644 --- a/src/credential/credential.h +++ b/src/credential/credential.h | |||
@@ -29,6 +29,8 @@ | |||
29 | 29 | ||
30 | GNUNET_NETWORK_STRUCT_BEGIN | 30 | GNUNET_NETWORK_STRUCT_BEGIN |
31 | 31 | ||
32 | enum direction{Backward, Forward, Bidirectional}; | ||
33 | |||
32 | /** | 34 | /** |
33 | * Message from client to Credential service to collect credentials. | 35 | * Message from client to Credential service to collect credentials. |
34 | */ | 36 | */ |
@@ -55,6 +57,11 @@ struct CollectMessage | |||
55 | uint16_t issuer_attribute_len; | 57 | uint16_t issuer_attribute_len; |
56 | 58 | ||
57 | /** | 59 | /** |
60 | * Direction of the resolution algo | ||
61 | */ | ||
62 | uint16_t resolution_algo; | ||
63 | |||
64 | /** | ||
58 | * Unique identifier for this request (for key collisions). | 65 | * Unique identifier for this request (for key collisions). |
59 | */ | 66 | */ |
60 | uint32_t id GNUNET_PACKED; | 67 | uint32_t id GNUNET_PACKED; |
@@ -94,6 +101,11 @@ struct VerifyMessage | |||
94 | uint16_t issuer_attribute_len; | 101 | uint16_t issuer_attribute_len; |
95 | 102 | ||
96 | /** | 103 | /** |
104 | * Direction of the resolution algo | ||
105 | */ | ||
106 | uint16_t resolution_algo; | ||
107 | |||
108 | /** | ||
97 | * Unique identifier for this request (for key collisions). | 109 | * Unique identifier for this request (for key collisions). |
98 | */ | 110 | */ |
99 | uint32_t id GNUNET_PACKED; | 111 | uint32_t id GNUNET_PACKED; |