From 33525da20575ba0149d1c6bcaac74e52d4e0ddd7 Mon Sep 17 00:00:00 2001 From: Andreas Ebner Date: Tue, 6 Aug 2019 16:17:33 +0200 Subject: Removed GNUNET_CREDENTIAL_Credential, new cmdline parameters, formatting: - removed all files and functions related to GNUNET_CREDENTIAL_Credential, has been replaced by GNUNET_CREDENTIAL_Delegate - renamed cmline parameter 'credential' - added cmline parameter for backward/forward search and a related enum - added cmline parameter to store private delegates - only private delegates are used as start/end of the search algorithm (set to vrh in collect) - run valgrind: no memory exceptions - run clang-format --- src/credential/plugin_gnsrecord_credential.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'src/credential/plugin_gnsrecord_credential.c') diff --git a/src/credential/plugin_gnsrecord_credential.c b/src/credential/plugin_gnsrecord_credential.c index 784c7def1..088c4dd0e 100644 --- a/src/credential/plugin_gnsrecord_credential.c +++ b/src/credential/plugin_gnsrecord_credential.c @@ -27,7 +27,6 @@ #include "gnunet_util_lib.h" -#include "credential_misc.h" #include "delegate_misc.h" #include "credential_serialization.h" #include "gnunet_credential_service.h" @@ -79,7 +78,7 @@ credential_value_to_string (void *cls, { subject_pkey = GNUNET_CRYPTO_ecdsa_public_key_to_string (&set[i].subject_key); - + if (0 == set[i].subject_attribute_len) { if (0 == i) @@ -117,16 +116,6 @@ credential_value_to_string (void *cls, } return attr_str; } - case GNUNET_GNSRECORD_TYPE_CREDENTIAL: - { - struct GNUNET_CREDENTIAL_Credential *cred; - char *cred_str; - - cred = GNUNET_CREDENTIAL_credential_deserialize (data, data_size); - cred_str = GNUNET_CREDENTIAL_credential_to_string (cred); - GNUNET_free (cred); - return cred_str; - } case GNUNET_GNSRECORD_TYPE_DELEGATE: { struct GNUNET_CREDENTIAL_Delegate *cred; @@ -255,14 +244,6 @@ credential_string_to_value (void *cls, GNUNET_free (tmp_str); return GNUNET_OK; } - case GNUNET_GNSRECORD_TYPE_CREDENTIAL: - { - struct GNUNET_CREDENTIAL_Credential *cred; - cred = GNUNET_CREDENTIAL_credential_from_string (s); - - *data_size = GNUNET_CREDENTIAL_credential_serialize (cred, (char **) data); - return GNUNET_OK; - } case GNUNET_GNSRECORD_TYPE_DELEGATE: { struct GNUNET_CREDENTIAL_Delegate *cred; -- cgit v1.2.3