diff options
Diffstat (limited to 'src/transport/gnunet-communicator-tcp.c')
-rw-r--r-- | src/transport/gnunet-communicator-tcp.c | 6 |
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); |