From 7001b82228492d710da275bf4e6056a547b56f9a Mon Sep 17 00:00:00 2001 From: ulfvonbelow Date: Sun, 29 Jan 2023 06:06:47 -0600 Subject: [PATCH] RECLAIM: rename G_D_key_covert_... to G_D_key_convert_... I think this misspelling would tend to distract the reader. --- src/reclaim/did_helper.c | 6 +++--- src/reclaim/did_helper.h | 4 ++-- src/reclaim/test_did_helper.c | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/reclaim/did_helper.c b/src/reclaim/did_helper.c index 1c04ede33..5600b7440 100644 --- a/src/reclaim/did_helper.c +++ b/src/reclaim/did_helper.c @@ -98,7 +98,7 @@ DID_did_to_pkey (const char *did, struct GNUNET_IDENTITY_PublicKey *pkey) * @brief Convert a base 64 encoded public key to a GNUNET key */ struct GNUNET_IDENTITY_PublicKey * -GNUNET_DID_key_covert_multibase_base64_to_gnunet (char *pkey_str) +GNUNET_DID_key_convert_multibase_base64_to_gnunet (char *pkey_str) { return NULL; } @@ -107,7 +107,7 @@ GNUNET_DID_key_covert_multibase_base64_to_gnunet (char *pkey_str) * @brief Convert GNUNET key to a base 64 encoded public key */ char * -DID_key_covert_gnunet_to_multibase_base64 (struct +DID_key_convert_gnunet_to_multibase_base64 (struct GNUNET_IDENTITY_PublicKey * pkey) { @@ -154,7 +154,7 @@ DID_pkey_to_did_document (struct GNUNET_IDENTITY_PublicKey *pkey) did_str = DID_pkey_to_did (pkey); GNUNET_asprintf (&verify_id_str, "%s#key-1", did_str); - pkey_multibase_str = DID_key_covert_gnunet_to_multibase_base64 (pkey); + pkey_multibase_str = DID_key_convert_gnunet_to_multibase_base64 (pkey); didd_json = json_pack ( "{s:[ss], s:s, s:[{s:s, s:s, s:s, s:s}], s:[s], s:[s]}", diff --git a/src/reclaim/did_helper.h b/src/reclaim/did_helper.h index 5cad48ca8..fea86af5e 100644 --- a/src/reclaim/did_helper.h +++ b/src/reclaim/did_helper.h @@ -52,13 +52,13 @@ DID_did_to_pkey (const char *did, struct GNUNET_IDENTITY_PublicKey *pkey); // * @brief Convert a base 64 encoded public key to a GNUNET key // */ // struct GNUNET_IDENTITY_PublicKey * -// GNUNET_DID_key_covert_multibase_base64_to_gnunet(char *); +// GNUNET_DID_key_convert_multibase_base64_to_gnunet(char *); /** * @brief Convert GNUNET key to a base 64 encoded public key */ char * -DID_key_covert_gnunet_to_multibase_base64 (struct +DID_key_convert_gnunet_to_multibase_base64 (struct GNUNET_IDENTITY_PublicKey *); /** diff --git a/src/reclaim/test_did_helper.c b/src/reclaim/test_did_helper.c index 446c199fc..c7c6f3110 100644 --- a/src/reclaim/test_did_helper.c +++ b/src/reclaim/test_did_helper.c @@ -84,13 +84,13 @@ test_GNUNET_DID_did_to_pkey () } // void -// test_GNUNET_DID_key_covert_multibase_base64_to_gnunet (); +// test_GNUNET_DID_key_convert_multibase_base64_to_gnunet (); void -test_GNUNET_DID_key_covert_gnunet_to_multibase_base64 () +test_GNUNET_DID_key_convert_gnunet_to_multibase_base64 () { char *multibase_key; - multibase_key = DID_key_covert_gnunet_to_multibase_base64 (&test_pkey); + multibase_key = DID_key_convert_gnunet_to_multibase_base64 (&test_pkey); GNUNET_assert (strcmp (test_multibase_key, multibase_key) == 0); } @@ -127,6 +127,6 @@ main () test_GNUNET_DID_pkey_to_did (); test_GNUNET_DID_did_to_pkey (); test_GNUNET_DID_pkey_to_did_document (); - test_GNUNET_DID_key_covert_gnunet_to_multibase_base64 (); + test_GNUNET_DID_key_convert_gnunet_to_multibase_base64 (); return 0; } -- 2.38.1