aboutsummaryrefslogtreecommitdiff
path: root/src/identity
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2020-07-21 12:30:37 +0200
committert3sserakt <t3ss@posteo.de>2020-07-21 12:30:37 +0200
commit5fa1c7dc809aebb55ef062cb3a2757c54eb6b7e7 (patch)
treec26167460724fea683ef51a88ffd93d1fa830412 /src/identity
parent17d84245fdfeeb1a6da4ffb97898903cb55f702c (diff)
parent7f4ddbcab8598e3d5e29c23ce883cdfa664408f1 (diff)
downloadgnunet-5fa1c7dc809aebb55ef062cb3a2757c54eb6b7e7.tar.gz
gnunet-5fa1c7dc809aebb55ef062cb3a2757c54eb6b7e7.zip
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src/identity')
-rw-r--r--src/identity/gnunet-identity.c6
-rw-r--r--src/identity/identity_api.c4
-rw-r--r--src/identity/plugin_rest_identity.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/src/identity/gnunet-identity.c b/src/identity/gnunet-identity.c
index cf44afd1f..d0f5546f3 100644
--- a/src/identity/gnunet-identity.c
+++ b/src/identity/gnunet-identity.c
@@ -406,7 +406,8 @@ run (void *cls,
406 GNUNET_STRINGS_string_to_data (privkey_ego, 406 GNUNET_STRINGS_string_to_data (privkey_ego,
407 strlen (privkey_ego), 407 strlen (privkey_ego),
408 &pk, 408 &pk,
409 sizeof(struct GNUNET_CRYPTO_EcdsaPrivateKey)); 409 sizeof(struct
410 GNUNET_CRYPTO_EcdsaPrivateKey));
410 create_op = 411 create_op =
411 GNUNET_IDENTITY_create (sh, 412 GNUNET_IDENTITY_create (sh,
412 create_ego, 413 create_ego,
@@ -452,7 +453,8 @@ main (int argc, char *const *argv)
452 GNUNET_GETOPT_option_string ('P', 453 GNUNET_GETOPT_option_string ('P',
453 "privkey", 454 "privkey",
454 "PRIVATE_KEY", 455 "PRIVATE_KEY",
455 gettext_noop ("set the private key for the identity to PRIVATE_KEY (use together with -C)"), 456 gettext_noop (
457 "set the private key for the identity to PRIVATE_KEY (use together with -C)"),
456 &privkey_ego), 458 &privkey_ego),
457 GNUNET_GETOPT_option_flag ('d', 459 GNUNET_GETOPT_option_flag ('d',
458 "display", 460 "display",
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index 5d17ac5d5..f7aca1655 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -150,9 +150,9 @@ struct GNUNET_IDENTITY_Handle
150/** 150/**
151 * Obtain the ego representing 'anonymous' users. 151 * Obtain the ego representing 'anonymous' users.
152 * 152 *
153 * @return handle for the anonymous user, must not be freed 153 * @return handle for the anonymous user, MUST NOT be freed
154 */ 154 */
155const struct GNUNET_IDENTITY_Ego * 155struct GNUNET_IDENTITY_Ego *
156GNUNET_IDENTITY_ego_get_anonymous () 156GNUNET_IDENTITY_ego_get_anonymous ()
157{ 157{
158 static struct GNUNET_IDENTITY_Ego anon; 158 static struct GNUNET_IDENTITY_Ego anon;
diff --git a/src/identity/plugin_rest_identity.c b/src/identity/plugin_rest_identity.c
index 009a01f16..02e42d03f 100644
--- a/src/identity/plugin_rest_identity.c
+++ b/src/identity/plugin_rest_identity.c
@@ -1065,7 +1065,8 @@ ego_create (struct GNUNET_REST_RequestHandle *con_handle,
1065 GNUNET_STRINGS_string_to_data (privkey, 1065 GNUNET_STRINGS_string_to_data (privkey,
1066 strlen (privkey), 1066 strlen (privkey),
1067 &pk, 1067 &pk,
1068 sizeof(struct GNUNET_CRYPTO_EcdsaPrivateKey)); 1068 sizeof(struct
1069 GNUNET_CRYPTO_EcdsaPrivateKey));
1069 pk_ptr = &pk; 1070 pk_ptr = &pk;
1070 } 1071 }
1071 else 1072 else
@@ -1422,7 +1423,7 @@ libgnunet_plugin_rest_identity_done (void *cls)
1422 1423
1423 plugin->cfg = NULL; 1424 plugin->cfg = NULL;
1424 1425
1425 GNUNET_free_non_null (allow_methods); 1426 GNUNET_free (allow_methods);
1426 GNUNET_free (api); 1427 GNUNET_free (api);
1427 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Identity REST plugin is finished\n"); 1428 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Identity REST plugin is finished\n");
1428 return NULL; 1429 return NULL;