Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed an annoying assertion which kept on failing.

  • Loading branch information...
commit d596a8b2d12371590c6a415b9073dc5f4ed2584a 1 parent a91e1cb
Caleb James DeLisle authored
Showing with 2 additions and 6 deletions.
  1. +1 −6 crypto/CryptoAuth.c
  2. +1 −0  net/Ducttape.c
View
7 crypto/CryptoAuth.c
@@ -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
1  net/Ducttape.c
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.