diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_credential_service.h | 25 | ||||
-rw-r--r-- | src/include/gnunet_gnsrecord_lib.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 4 |
3 files changed, 17 insertions, 16 deletions
diff --git a/src/include/gnunet_credential_service.h b/src/include/gnunet_credential_service.h index 55deb786e..739e6fe95 100644 --- a/src/include/gnunet_credential_service.h +++ b/src/include/gnunet_credential_service.h | |||
@@ -87,7 +87,6 @@ struct GNUNET_CREDENTIAL_RecordData { | |||
87 | 87 | ||
88 | uint32_t credential_flags GNUNET_PACKED; | 88 | uint32_t credential_flags GNUNET_PACKED; |
89 | 89 | ||
90 | uint32_t max_delegation_depth GNUNET_PACKED; | ||
91 | }; | 90 | }; |
92 | 91 | ||
93 | GNUNET_NETWORK_STRUCT_END | 92 | GNUNET_NETWORK_STRUCT_END |
@@ -121,7 +120,7 @@ GNUNET_CREDENTIAL_disconnect (struct GNUNET_CREDENTIAL_Handle *handle); | |||
121 | * @param issuer_len length of issuer chain | 120 | * @param issuer_len length of issuer chain |
122 | * @param rd the records in reply | 121 | * @param rd the records in reply |
123 | */ | 122 | */ |
124 | typedef void (*GNUNET_CREDENTIAL_LookupResultProcessor) (void *cls, | 123 | typedef void (*GNUNET_CREDENTIAL_VerifyResultProcessor) (void *cls, |
125 | struct GNUNET_IDENTITY_Ego *issuer, | 124 | struct GNUNET_IDENTITY_Ego *issuer, |
126 | uint16_t issuer_len, | 125 | uint16_t issuer_len, |
127 | const struct GNUNET_CREDENTIAL_RecordData *data); | 126 | const struct GNUNET_CREDENTIAL_RecordData *data); |
@@ -137,17 +136,15 @@ typedef void (*GNUNET_CREDENTIAL_LookupResultProcessor) (void *cls, | |||
137 | * @param proc_cls closure for processor | 136 | * @param proc_cls closure for processor |
138 | * @return handle to the queued request | 137 | * @return handle to the queued request |
139 | */ | 138 | */ |
140 | struct GNUNET_CREDENTIAL_LookupRequest * | 139 | struct GNUNET_CREDENTIAL_VerifyRequest* |
141 | GNUNET_CREDENTIAL_lookup (struct GNUNET_CREDENTIAL_Handle *handle, | 140 | GNUNET_CREDENTIAL_verify (struct GNUNET_CREDENTIAL_Handle *handle, |
142 | const char *credential, | 141 | const char *issuer_attribute, |
143 | const struct GNUNET_IDENTITY_Ego *subject, | 142 | const char *subject_attribute, |
144 | const struct GNUNET_CRYPTO_EcdsaPublicKey *subject_key, | 143 | const struct GNUNET_CRYPTO_EcdsaPublicKey *subject_key, |
145 | const struct GNUNET_CRYPTO_EcdsaPublicKey *issuer_key, | 144 | const struct GNUNET_CRYPTO_EcdsaPublicKey *issuer_key, |
146 | uint32_t credential_flags, | 145 | uint32_t credential_flags, |
147 | uint32_t max_delegation_depth, | 146 | GNUNET_CREDENTIAL_VerifyResultProcessor proc, |
148 | GNUNET_CREDENTIAL_LookupResultProcessor proc, | 147 | void *proc_cls); |
149 | void *proc_cls); | ||
150 | |||
151 | 148 | ||
152 | /** | 149 | /** |
153 | * Issue a credential to an identity | 150 | * Issue a credential to an identity |
@@ -194,7 +191,7 @@ GNUNET_CREDENTIAL_remove (struct GNUNET_CREDENTIAL_Handle *handle, | |||
194 | * @param lr the lookup request to cancel | 191 | * @param lr the lookup request to cancel |
195 | */ | 192 | */ |
196 | void | 193 | void |
197 | GNUNET_CREDENTIAL_lookup_cancel (struct GNUNET_CREDENTIAL_LookupRequest *lr); | 194 | GNUNET_CREDENTIAL_verify_cancel (struct GNUNET_CREDENTIAL_VerifyRequest *vr); |
198 | 195 | ||
199 | 196 | ||
200 | #if 0 /* keep Emacsens' auto-indent happy */ | 197 | #if 0 /* keep Emacsens' auto-indent happy */ |
diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h index 7e0a1a9e9..4f96d50d5 100644 --- a/src/include/gnunet_gnsrecord_lib.h +++ b/src/include/gnunet_gnsrecord_lib.h | |||
@@ -118,6 +118,10 @@ extern "C" | |||
118 | */ | 118 | */ |
119 | #define GNUNET_GNSRECORD_TYPE_REVERSE 65548 | 119 | #define GNUNET_GNSRECORD_TYPE_REVERSE 65548 |
120 | 120 | ||
121 | /** | ||
122 | * Record type for reverse lookups | ||
123 | */ | ||
124 | #define GNUNET_GNSRECORD_TYPE_ATTRIBUTE 65549 | ||
121 | 125 | ||
122 | 126 | ||
123 | /** | 127 | /** |
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 3e16350c1..c11792054 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -2612,9 +2612,9 @@ extern "C" | |||
2612 | * | 2612 | * |
2613 | * CREDENTIAL MESSAGE TYPES | 2613 | * CREDENTIAL MESSAGE TYPES |
2614 | */ | 2614 | */ |
2615 | #define GNUNET_MESSAGE_TYPE_CREDENTIAL_LOOKUP 971 | 2615 | #define GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY 971 |
2616 | 2616 | ||
2617 | #define GNUNET_MESSAGE_TYPE_CREDENTIAL_LOOKUP_RESULT 972 | 2617 | #define GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT 972 |
2618 | 2618 | ||
2619 | /******************************************************************************/ | 2619 | /******************************************************************************/ |
2620 | 2620 | ||