2 This file is part of GNUnet
3 Copyright (C) 2012-2013 GNUnet e.V.
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
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 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 * @file credential/credential.h
22 * @brief IPC messages between CREDENTIAL API and CREDENTIAL service
23 * @author Adnan Husain
28 #include "gnunet_credential_service.h"
30 GNUNET_NETWORK_STRUCT_BEGIN
33 * Message from client to Credential service to verify attributes.
38 * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY
40 struct GNUNET_MessageHeader header;
45 struct GNUNET_CRYPTO_EcdsaPublicKey subject_key;
50 struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key;
53 * Length of the issuer attribute
55 uint16_t issuer_attribute_len;
58 * Length of the subject attribute
60 uint16_t subject_attribute_len;
63 * Unique identifier for this request (for key collisions).
65 uint32_t id GNUNET_PACKED;
67 /* Followed by the zero-terminated attributes to look up */
73 * Message from CREDENTIAL service to client: new results.
75 struct VerifyResultMessage
78 * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT
80 struct GNUNET_MessageHeader header;
83 * Unique identifier for this request (for key collisions).
85 uint32_t id GNUNET_PACKED;
89 * The number of credentials in the response
91 uint32_t ad_count GNUNET_PACKED;
93 /* followed by ad_count GNUNET_CREDENTIAL_RecordData structs*/
98 GNUNET_NETWORK_STRUCT_END