diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-20 17:04:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-20 17:04:56 +0000 |
commit | dfc14c78063c52aaee7301b04fd7c691d8a2df09 (patch) | |
tree | 5e09ffd1815f5f2751cd9d5712c726fff8734dbf /src/transport/gnunet-service-transport_validation.c | |
parent | c8be0a0d42d7bf5ca96cc050fc12d71a43d8dca3 (diff) | |
download | gnunet-dfc14c78063c52aaee7301b04fd7c691d8a2df09.tar.gz gnunet-dfc14c78063c52aaee7301b04fd7c691d8a2df09.zip |
-indentation, doxygen
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index 7dfe28ae8..3742522da 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c | |||
@@ -1434,7 +1434,9 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender, | |||
1434 | { | 1434 | { |
1435 | /* We have a cached and valid signature for this peer, | 1435 | /* We have a cached and valid signature for this peer, |
1436 | * try to compare instead of verify */ | 1436 | * try to compare instead of verify */ |
1437 | if (0 == memcmp (&ve->pong_sig_cache, &pong->signature, sizeof (struct GNUNET_CRYPTO_EddsaSignature))) | 1437 | if (0 == memcmp (&ve->pong_sig_cache, |
1438 | &pong->signature, | ||
1439 | sizeof (struct GNUNET_CRYPTO_EddsaSignature))) | ||
1438 | { | 1440 | { |
1439 | /* signatures are identical, we can skip verification */ | 1441 | /* signatures are identical, we can skip verification */ |
1440 | sig_res = GNUNET_OK; | 1442 | sig_res = GNUNET_OK; |
@@ -1451,7 +1453,8 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender, | |||
1451 | { | 1453 | { |
1452 | /* Do expensive verification */ | 1454 | /* Do expensive verification */ |
1453 | sig_res = GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN, | 1455 | sig_res = GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN, |
1454 | &pong->purpose, &pong->signature, | 1456 | &pong->purpose, |
1457 | &pong->signature, | ||
1455 | &ve->address->peer.public_key); | 1458 | &ve->address->peer.public_key); |
1456 | if (sig_res == GNUNET_SYSERR) | 1459 | if (sig_res == GNUNET_SYSERR) |
1457 | { | 1460 | { |