Permalink
Browse files

Removed an annoying assertion which kept on failing.

  • Loading branch information...
1 parent a91e1cb commit d596a8b2d12371590c6a415b9073dc5f4ed2584a Caleb James DeLisle committed Nov 10, 2012
Showing with 2 additions and 6 deletions.
  1. +1 −6 crypto/CryptoAuth.c
  2. +1 −0 net/Ducttape.c
View
@@ -476,14 +476,9 @@ static uint8_t encryptHandshake(struct Message* message, struct CryptoAuth_Wrapp
wrapper->herPerminentPubKey,
passwordHash,
wrapper->context->logger);
+
wrapper->isInitiator = true;
wrapper->nextNonce = 1;
- #ifdef Log_DEBUG
- Assert_true(!Bits_isZero(header->handshake.encryptedTempKey, 32));
- uint8_t myTempPubKey[32];
- crypto_scalarmult_curve25519_base(myTempPubKey, wrapper->secret);
- Assert_true(!Bits_memcmp(header->handshake.encryptedTempKey, myTempPubKey, 32));
- #endif
} else {
if (wrapper->nextNonce == 2) {
Log_debug(wrapper->context->logger, "@%p Sending key packet\n", (void*) wrapper);
View
@@ -1055,6 +1055,7 @@ struct Ducttape* Ducttape_register(uint8_t privateKey[32],
context->routerModule = routerModule;
context->logger = logger;
context->forwardTo = NULL;
+ context->eventBase = eventBase;
Identity_set(context);
#ifdef Version_0_COMPAT

0 comments on commit d596a8b

Please sign in to comment.