diff options
author | ulfvonbelow <strilen@tilde.club> | 2023-01-29 06:06:47 -0600 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-02-06 14:08:37 +0900 |
commit | 89dfff6d9b003c13eb6ebfad7be17140cd46a1b4 (patch) | |
tree | 34c70919ec7b44711a099b95b9d71ede2df63f60 | |
parent | ecea740a0ca2801db85482e5f26c550fe05c9ac3 (diff) | |
download | gnunet-89dfff6d9b003c13eb6ebfad7be17140cd46a1b4.tar.gz gnunet-89dfff6d9b003c13eb6ebfad7be17140cd46a1b4.zip |
RECLAIM: rename G_D_key_covert_... to G_D_key_convert_...
I think this misspelling would tend to distract the reader.
Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
-rw-r--r-- | src/reclaim/did_helper.c | 6 | ||||
-rw-r--r-- | src/reclaim/did_helper.h | 4 | ||||
-rw-r--r-- | 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) | |||
98 | * @brief Convert a base 64 encoded public key to a GNUNET key | 98 | * @brief Convert a base 64 encoded public key to a GNUNET key |
99 | */ | 99 | */ |
100 | struct GNUNET_IDENTITY_PublicKey * | 100 | struct GNUNET_IDENTITY_PublicKey * |
101 | GNUNET_DID_key_covert_multibase_base64_to_gnunet (char *pkey_str) | 101 | GNUNET_DID_key_convert_multibase_base64_to_gnunet (char *pkey_str) |
102 | { | 102 | { |
103 | return NULL; | 103 | return NULL; |
104 | } | 104 | } |
@@ -107,7 +107,7 @@ GNUNET_DID_key_covert_multibase_base64_to_gnunet (char *pkey_str) | |||
107 | * @brief Convert GNUNET key to a base 64 encoded public key | 107 | * @brief Convert GNUNET key to a base 64 encoded public key |
108 | */ | 108 | */ |
109 | char * | 109 | char * |
110 | DID_key_covert_gnunet_to_multibase_base64 (struct | 110 | DID_key_convert_gnunet_to_multibase_base64 (struct |
111 | GNUNET_IDENTITY_PublicKey * | 111 | GNUNET_IDENTITY_PublicKey * |
112 | pkey) | 112 | pkey) |
113 | { | 113 | { |
@@ -154,7 +154,7 @@ DID_pkey_to_did_document (struct GNUNET_IDENTITY_PublicKey *pkey) | |||
154 | did_str = DID_pkey_to_did (pkey); | 154 | did_str = DID_pkey_to_did (pkey); |
155 | GNUNET_asprintf (&verify_id_str, "%s#key-1", did_str); | 155 | GNUNET_asprintf (&verify_id_str, "%s#key-1", did_str); |
156 | 156 | ||
157 | pkey_multibase_str = DID_key_covert_gnunet_to_multibase_base64 (pkey); | 157 | pkey_multibase_str = DID_key_convert_gnunet_to_multibase_base64 (pkey); |
158 | 158 | ||
159 | didd_json = json_pack ( | 159 | didd_json = json_pack ( |
160 | "{s:[ss], s:s, s:[{s:s, s:s, s:s, s:s}], s:[s], s:[s]}", | 160 | "{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); | |||
52 | // * @brief Convert a base 64 encoded public key to a GNUNET key | 52 | // * @brief Convert a base 64 encoded public key to a GNUNET key |
53 | // */ | 53 | // */ |
54 | // struct GNUNET_IDENTITY_PublicKey * | 54 | // struct GNUNET_IDENTITY_PublicKey * |
55 | // GNUNET_DID_key_covert_multibase_base64_to_gnunet(char *); | 55 | // GNUNET_DID_key_convert_multibase_base64_to_gnunet(char *); |
56 | 56 | ||
57 | /** | 57 | /** |
58 | * @brief Convert GNUNET key to a base 64 encoded public key | 58 | * @brief Convert GNUNET key to a base 64 encoded public key |
59 | */ | 59 | */ |
60 | char * | 60 | char * |
61 | DID_key_covert_gnunet_to_multibase_base64 (struct | 61 | DID_key_convert_gnunet_to_multibase_base64 (struct |
62 | GNUNET_IDENTITY_PublicKey *); | 62 | GNUNET_IDENTITY_PublicKey *); |
63 | 63 | ||
64 | /** | 64 | /** |
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 () | |||
84 | } | 84 | } |
85 | 85 | ||
86 | // void | 86 | // void |
87 | // test_GNUNET_DID_key_covert_multibase_base64_to_gnunet (); | 87 | // test_GNUNET_DID_key_convert_multibase_base64_to_gnunet (); |
88 | 88 | ||
89 | void | 89 | void |
90 | test_GNUNET_DID_key_covert_gnunet_to_multibase_base64 () | 90 | test_GNUNET_DID_key_convert_gnunet_to_multibase_base64 () |
91 | { | 91 | { |
92 | char *multibase_key; | 92 | char *multibase_key; |
93 | multibase_key = DID_key_covert_gnunet_to_multibase_base64 (&test_pkey); | 93 | multibase_key = DID_key_convert_gnunet_to_multibase_base64 (&test_pkey); |
94 | 94 | ||
95 | GNUNET_assert (strcmp (test_multibase_key, multibase_key) == 0); | 95 | GNUNET_assert (strcmp (test_multibase_key, multibase_key) == 0); |
96 | } | 96 | } |
@@ -127,6 +127,6 @@ main () | |||
127 | test_GNUNET_DID_pkey_to_did (); | 127 | test_GNUNET_DID_pkey_to_did (); |
128 | test_GNUNET_DID_did_to_pkey (); | 128 | test_GNUNET_DID_did_to_pkey (); |
129 | test_GNUNET_DID_pkey_to_did_document (); | 129 | test_GNUNET_DID_pkey_to_did_document (); |
130 | test_GNUNET_DID_key_covert_gnunet_to_multibase_base64 (); | 130 | test_GNUNET_DID_key_convert_gnunet_to_multibase_base64 (); |
131 | return 0; | 131 | return 0; |
132 | } | 132 | } |