From d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 8 Sep 2019 12:33:09 +0000 Subject: uncrustify as demanded. --- src/credential/credential.h | 38 ++++++++++++++------------------------ 1 file changed, 14 insertions(+), 24 deletions(-) (limited to 'src/credential/credential.h') diff --git a/src/credential/credential.h b/src/credential/credential.h index 23db51e99..fcc81de6c 100644 --- a/src/credential/credential.h +++ b/src/credential/credential.h @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . @@ -32,8 +32,7 @@ GNUNET_NETWORK_STRUCT_BEGIN /** * Message from client to Credential service to collect credentials. */ -struct CollectMessage -{ +struct CollectMessage { /** * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY */ @@ -60,15 +59,13 @@ struct CollectMessage uint32_t id GNUNET_PACKED; /* Followed by the zero-terminated attribute */ - }; /** * Message from client to Credential service to verify attributes. */ -struct VerifyMessage -{ +struct VerifyMessage { /** * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY */ @@ -100,17 +97,15 @@ struct VerifyMessage uint32_t id GNUNET_PACKED; /* Followed by the zero-terminated attribute and credentials to look up */ - }; /** * Message from CREDENTIAL service to client: new results. */ -struct DelegationChainResultMessage -{ +struct DelegationChainResultMessage { /** - * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT + * Header of type #GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT */ struct GNUNET_MessageHeader header; @@ -118,7 +113,7 @@ struct DelegationChainResultMessage * Unique identifier for this request (for key collisions). */ uint32_t id GNUNET_PACKED; - + /** * Indicates if credential has been found at all */ @@ -135,16 +130,14 @@ struct DelegationChainResultMessage uint32_t c_count GNUNET_PACKED; /* followed by ad_count GNUNET_CREDENTIAL_RecordData structs*/ - }; -struct DelegationRecordData -{ +struct DelegationRecordData { /** * Subject key */ struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; - + /** * Subject attributes */ @@ -152,23 +145,22 @@ struct DelegationRecordData }; -struct ChainEntry -{ +struct ChainEntry { /** * Issuer key */ struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key; - + /** * Subject key */ struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; - + /** * Issuer attributes */ uint32_t issuer_attribute_len GNUNET_PACKED; - + /** * Subject attributes */ @@ -176,9 +168,7 @@ struct ChainEntry }; -struct CredentialEntry -{ - +struct CredentialEntry { /** * The signature for this credential by the issuer */ @@ -203,7 +193,7 @@ struct CredentialEntry * Expiration time of this credential */ uint64_t expiration GNUNET_PACKED; - + /** * Issuer attribute length */ -- cgit v1.2.3