diff options
author | Andreas Ebner <pansy007@googlemail.com> | 2019-08-06 16:17:33 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-10-07 12:17:28 +0200 |
commit | 33525da20575ba0149d1c6bcaac74e52d4e0ddd7 (patch) | |
tree | 91966b82a290b9b9d34c9d6e1c10f13d1b8156ed /src/credential/plugin_gnsrecord_credential.c | |
parent | 15b0d71a635f02f5e0291a695d35a65698fdea05 (diff) |
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
Diffstat (limited to 'src/credential/plugin_gnsrecord_credential.c')
-rw-r--r-- | src/credential/plugin_gnsrecord_credential.c | 21 |
1 files changed, 1 insertions, 20 deletions
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; |