aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-communicator-tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-11 21:43:28 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-11 21:43:34 +0200
commit90ff9edfa9c5fcfa3a36d1653ff105e89b888e21 (patch)
tree780a2071f5072c8e8e044db741eb295c3f3ea2a7 /src/transport/gnunet-communicator-tcp.c
parent3bcfe59f1ce533246bda271f00b3ee957cae304d (diff)
downloadgnunet-90ff9edfa9c5fcfa3a36d1653ff105e89b888e21.tar.gz
gnunet-90ff9edfa9c5fcfa3a36d1653ff105e89b888e21.zip
fixing #6149
Diffstat (limited to 'src/transport/gnunet-communicator-tcp.c')
-rw-r--r--src/transport/gnunet-communicator-tcp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c
index 2786ba184..82ee309a5 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -1270,8 +1270,7 @@ inject_rekey (struct Queue *queue)
1270 1270
1271 GNUNET_assert (0 == queue->pwrite_off); 1271 GNUNET_assert (0 == queue->pwrite_off);
1272 memset (&rekey, 0, sizeof(rekey)); 1272 memset (&rekey, 0, sizeof(rekey));
1273 GNUNET_assert (GNUNET_OK == 1273 GNUNET_CRYPTO_ecdhe_key_create (&queue->ephemeral);
1274 GNUNET_CRYPTO_ecdhe_key_create2 (&queue->ephemeral));
1275 rekey.header.type = ntohs (GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_REKEY); 1274 rekey.header.type = ntohs (GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_REKEY);
1276 rekey.header.size = ntohs (sizeof(rekey)); 1275 rekey.header.size = ntohs (sizeof(rekey));
1277 GNUNET_CRYPTO_ecdhe_key_get_public (&queue->ephemeral, &rekey.ephemeral); 1276 GNUNET_CRYPTO_ecdhe_key_get_public (&queue->ephemeral, &rekey.ephemeral);
@@ -1610,8 +1609,7 @@ start_initial_kx_out (struct Queue *queue)
1610{ 1609{
1611 struct GNUNET_CRYPTO_EcdhePublicKey epub; 1610 struct GNUNET_CRYPTO_EcdhePublicKey epub;
1612 1611
1613 GNUNET_assert (GNUNET_OK == 1612 GNUNET_CRYPTO_ecdhe_key_create (&queue->ephemeral);
1614 GNUNET_CRYPTO_ecdhe_key_create2 (&queue->ephemeral));
1615 GNUNET_CRYPTO_ecdhe_key_get_public (&queue->ephemeral, &epub); 1613 GNUNET_CRYPTO_ecdhe_key_get_public (&queue->ephemeral, &epub);
1616 setup_out_cipher (queue); 1614 setup_out_cipher (queue);
1617 transmit_kx (queue, &epub); 1615 transmit_kx (queue, &epub);