diff options
Diffstat (limited to 'src/transport/gnunet-communicator-udp.c')
-rw-r--r-- | src/transport/gnunet-communicator-udp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c index d767689b9..1542a7702 100644 --- a/src/transport/gnunet-communicator-udp.c +++ b/src/transport/gnunet-communicator-udp.c | |||
@@ -1533,7 +1533,7 @@ verify_confirmation (const struct GNUNET_CRYPTO_EcdhePublicKey *ephemeral, | |||
1533 | uhs.monotonic_time = uc->monotonic_time; | 1533 | uhs.monotonic_time = uc->monotonic_time; |
1534 | return GNUNET_CRYPTO_eddsa_verify ( | 1534 | return GNUNET_CRYPTO_eddsa_verify ( |
1535 | GNUNET_SIGNATURE_COMMUNICATOR_UDP_HANDSHAKE, | 1535 | GNUNET_SIGNATURE_COMMUNICATOR_UDP_HANDSHAKE, |
1536 | &uhs.purpose, | 1536 | &uhs, |
1537 | &uc->sender_sig, | 1537 | &uc->sender_sig, |
1538 | &uc->sender.public_key); | 1538 | &uc->sender.public_key); |
1539 | } | 1539 | } |
@@ -1634,7 +1634,7 @@ sock_read (void *cls) | |||
1634 | GNUNET_CRYPTO_hash (&sa, salen, &uhs.h_address); | 1634 | GNUNET_CRYPTO_hash (&sa, salen, &uhs.h_address); |
1635 | if (GNUNET_OK == | 1635 | if (GNUNET_OK == |
1636 | GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_COMMUNICATOR_UDP_BROADCAST, | 1636 | GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_COMMUNICATOR_UDP_BROADCAST, |
1637 | &uhs.purpose, | 1637 | &uhs, |
1638 | &ub->sender_sig, | 1638 | &ub->sender_sig, |
1639 | &ub->sender.public_key)) | 1639 | &ub->sender.public_key)) |
1640 | { | 1640 | { |
@@ -1932,9 +1932,9 @@ mq_send (struct GNUNET_MQ_Handle *mq, | |||
1932 | uhs.receiver = receiver->target; | 1932 | uhs.receiver = receiver->target; |
1933 | GNUNET_CRYPTO_ecdhe_key_get_public (&epriv, &uhs.ephemeral); | 1933 | GNUNET_CRYPTO_ecdhe_key_get_public (&epriv, &uhs.ephemeral); |
1934 | uhs.monotonic_time = uc.monotonic_time; | 1934 | uhs.monotonic_time = uc.monotonic_time; |
1935 | GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_sign (my_private_key, | 1935 | GNUNET_CRYPTO_eddsa_sign (my_private_key, |
1936 | &uhs.purpose, | 1936 | &uhs, |
1937 | &uc.sender_sig)); | 1937 | &uc.sender_sig); |
1938 | /* Leave space for kx */ | 1938 | /* Leave space for kx */ |
1939 | dpos = sizeof(kx); | 1939 | dpos = sizeof(kx); |
1940 | /* Append encrypted uc to dgram */ | 1940 | /* Append encrypted uc to dgram */ |
@@ -2534,9 +2534,9 @@ iface_proc (void *cls, | |||
2534 | ubs.purpose.size = htonl (sizeof(ubs)); | 2534 | ubs.purpose.size = htonl (sizeof(ubs)); |
2535 | ubs.sender = my_identity; | 2535 | ubs.sender = my_identity; |
2536 | GNUNET_CRYPTO_hash (addr, addrlen, &ubs.h_address); | 2536 | GNUNET_CRYPTO_hash (addr, addrlen, &ubs.h_address); |
2537 | GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_sign (my_private_key, | 2537 | GNUNET_CRYPTO_eddsa_sign (my_private_key, |
2538 | &ubs.purpose, | 2538 | &ubs, |
2539 | &bi->bcm.sender_sig)); | 2539 | &bi->bcm.sender_sig); |
2540 | if (NULL != broadcast_addr) | 2540 | if (NULL != broadcast_addr) |
2541 | { | 2541 | { |
2542 | bi->broadcast_task = GNUNET_SCHEDULER_add_now (&ifc_broadcast, bi); | 2542 | bi->broadcast_task = GNUNET_SCHEDULER_add_now (&ifc_broadcast, bi); |