diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-19 09:43:32 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-19 09:43:32 +0200 |
commit | 281ec383c0650e0a7b6e28f2d7e00bdeccede172 (patch) | |
tree | a0698d6ad6b31affa3d240d2797948bbee72e987 | |
parent | 47f891753197e99ce5af85c18dbf3a00f5db3b62 (diff) | |
download | gnunet-281ec383c0650e0a7b6e28f2d7e00bdeccede172.tar.gz gnunet-281ec383c0650e0a7b6e28f2d7e00bdeccede172.zip |
fix pk struct in plaintext plugin operation
-rw-r--r-- | src/escrow/plugin_escrow_plaintext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/escrow/plugin_escrow_plaintext.c b/src/escrow/plugin_escrow_plaintext.c index 4acc3bc47..0dab8fd1e 100644 --- a/src/escrow/plugin_escrow_plaintext.c +++ b/src/escrow/plugin_escrow_plaintext.c | |||
@@ -54,7 +54,7 @@ struct ESCROW_PlaintextPluginOperation | |||
54 | /** | 54 | /** |
55 | * Private key of the created ego | 55 | * Private key of the created ego |
56 | */ | 56 | */ |
57 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pk; | 57 | struct GNUNET_CRYPTO_EcdsaPrivateKey pk; |
58 | 58 | ||
59 | /** | 59 | /** |
60 | * Continuation for a plugin operation (e.g. used for restore, as this | 60 | * Continuation for a plugin operation (e.g. used for restore, as this |
@@ -281,7 +281,7 @@ ego_created (const struct GNUNET_IDENTITY_Ego *ego) | |||
281 | for (curr = ph.plugin_op_head; NULL != curr; curr = curr->next) | 281 | for (curr = ph.plugin_op_head; NULL != curr; curr = curr->next) |
282 | { | 282 | { |
283 | curr_p_op = (struct ESCROW_PlaintextPluginOperation *)curr->plugin_op; | 283 | curr_p_op = (struct ESCROW_PlaintextPluginOperation *)curr->plugin_op; |
284 | curr_pk_string = GNUNET_CRYPTO_ecdsa_private_key_to_string (curr_p_op->pk); | 284 | curr_pk_string = GNUNET_CRYPTO_ecdsa_private_key_to_string (&curr_p_op->pk); |
285 | // compare the strings of the private keys | 285 | // compare the strings of the private keys |
286 | if (0 == strcmp (ego_pk_string, curr_pk_string)) | 286 | if (0 == strcmp (ego_pk_string, curr_pk_string)) |
287 | { | 287 | { |
@@ -336,7 +336,7 @@ create_finished (void *cls, | |||
336 | 336 | ||
337 | /* no error occurred, p_op->restore_cont will be called in ego_created, which | 337 | /* no error occurred, p_op->restore_cont will be called in ego_created, which |
338 | is called from ESCROW_list_ego after adding the new ego to our list */ | 338 | is called from ESCROW_list_ego after adding the new ego to our list */ |
339 | p_op->pk = pk; | 339 | p_op->pk = *pk; |
340 | } | 340 | } |
341 | 341 | ||
342 | 342 | ||