diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-28 18:40:17 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-28 18:40:17 +0100 |
commit | a84624407eedd5418d36de590571da47d2f47015 (patch) | |
tree | 2f8d9fd84df5f1dba55a4e85c7d98722cc42cada /src/credential/credential.h | |
parent | 43b34377e10d329075327104e4a295ee9d3c53b4 (diff) | |
download | gnunet-a84624407eedd5418d36de590571da47d2f47015.tar.gz gnunet-a84624407eedd5418d36de590571da47d2f47015.zip |
-change api
Diffstat (limited to 'src/credential/credential.h')
-rw-r--r-- | src/credential/credential.h | 47 |
1 files changed, 41 insertions, 6 deletions
diff --git a/src/credential/credential.h b/src/credential/credential.h index c5c0183cc..f16249c1b 100644 --- a/src/credential/credential.h +++ b/src/credential/credential.h | |||
@@ -30,6 +30,41 @@ | |||
30 | GNUNET_NETWORK_STRUCT_BEGIN | 30 | GNUNET_NETWORK_STRUCT_BEGIN |
31 | 31 | ||
32 | /** | 32 | /** |
33 | * Message from client to Credential service to collect credentials. | ||
34 | */ | ||
35 | struct CollectMessage | ||
36 | { | ||
37 | /** | ||
38 | * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY | ||
39 | */ | ||
40 | struct GNUNET_MessageHeader header; | ||
41 | |||
42 | /** | ||
43 | * Subject public key | ||
44 | */ | ||
45 | struct GNUNET_CRYPTO_EcdsaPrivateKey subject_key; | ||
46 | |||
47 | /** | ||
48 | * Trust anchor | ||
49 | */ | ||
50 | struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key; | ||
51 | |||
52 | /** | ||
53 | * Length of the issuer attribute | ||
54 | */ | ||
55 | uint16_t issuer_attribute_len; | ||
56 | |||
57 | /** | ||
58 | * Unique identifier for this request (for key collisions). | ||
59 | */ | ||
60 | uint32_t id GNUNET_PACKED; | ||
61 | |||
62 | /* Followed by the zero-terminated attribute */ | ||
63 | |||
64 | }; | ||
65 | |||
66 | |||
67 | /** | ||
33 | * Message from client to Credential service to verify attributes. | 68 | * Message from client to Credential service to verify attributes. |
34 | */ | 69 | */ |
35 | struct VerifyMessage | 70 | struct VerifyMessage |
@@ -50,21 +85,21 @@ struct VerifyMessage | |||
50 | struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key; | 85 | struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key; |
51 | 86 | ||
52 | /** | 87 | /** |
53 | * Length of the issuer attribute | 88 | * Number of credentials |
54 | */ | 89 | */ |
55 | uint16_t issuer_attribute_len; | 90 | uint32_t c_count; |
56 | 91 | ||
57 | /** | 92 | /** |
58 | * Length of the subject attribute | 93 | * Length of the issuer attribute |
59 | */ | 94 | */ |
60 | uint16_t subject_attribute_len; | 95 | uint16_t issuer_attribute_len; |
61 | 96 | ||
62 | /** | 97 | /** |
63 | * Unique identifier for this request (for key collisions). | 98 | * Unique identifier for this request (for key collisions). |
64 | */ | 99 | */ |
65 | uint32_t id GNUNET_PACKED; | 100 | uint32_t id GNUNET_PACKED; |
66 | 101 | ||
67 | /* Followed by the zero-terminated attributes to look up */ | 102 | /* Followed by the zero-terminated attribute and credentials to look up */ |
68 | 103 | ||
69 | }; | 104 | }; |
70 | 105 | ||
@@ -72,7 +107,7 @@ struct VerifyMessage | |||
72 | /** | 107 | /** |
73 | * Message from CREDENTIAL service to client: new results. | 108 | * Message from CREDENTIAL service to client: new results. |
74 | */ | 109 | */ |
75 | struct VerifyResultMessage | 110 | struct DelegationChainResultMessage |
76 | { | 111 | { |
77 | /** | 112 | /** |
78 | * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT | 113 | * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT |