diff options
Diffstat (limited to 'src/credential/delegate.h')
-rw-r--r-- | src/credential/delegate.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/src/credential/delegate.h b/src/credential/delegate.h new file mode 100644 index 000000000..e1bf112ef --- /dev/null +++ b/src/credential/delegate.h | |||
@@ -0,0 +1,79 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet | ||
3 | Copyright (C) 2012-2013 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file credential/delegate.h | ||
22 | * @brief IPC messages between CREDENTIAL API and CREDENTIAL service | ||
23 | * @author Martin Schanzenbach | ||
24 | */ | ||
25 | #ifndef DELEGATE_H | ||
26 | #define DELEGATE_H | ||
27 | |||
28 | #include "gnunet_credential_service.h" | ||
29 | |||
30 | GNUNET_NETWORK_STRUCT_BEGIN | ||
31 | |||
32 | struct DelegateEntry | ||
33 | { | ||
34 | |||
35 | /** | ||
36 | * The signature for this credential by the issuer | ||
37 | */ | ||
38 | struct GNUNET_CRYPTO_EcdsaSignature signature; | ||
39 | |||
40 | /** | ||
41 | * Signature meta | ||
42 | */ | ||
43 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | ||
44 | |||
45 | /** | ||
46 | * Public key of the issuer | ||
47 | */ | ||
48 | struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key; | ||
49 | |||
50 | /** | ||
51 | * Public key of the subject this credential was issued to | ||
52 | */ | ||
53 | struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; | ||
54 | |||
55 | /** | ||
56 | * Expiration time of this credential | ||
57 | */ | ||
58 | uint64_t expiration GNUNET_PACKED; | ||
59 | |||
60 | /** | ||
61 | * Issuer subject attribute length | ||
62 | */ | ||
63 | uint32_t issuer_attribute_len; | ||
64 | |||
65 | /** | ||
66 | * Issuer attribute length | ||
67 | */ | ||
68 | uint32_t subject_attribute_len; | ||
69 | |||
70 | /** | ||
71 | * Followed by the subject attribute string | ||
72 | */ | ||
73 | }; | ||
74 | |||
75 | |||
76 | GNUNET_NETWORK_STRUCT_END | ||
77 | |||
78 | #endif | ||
79 | |||