gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r35613 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r35613 - gnunet/src/cadet
Date: Mon, 27 Apr 2015 21:15:02 +0200

Author: bartpolot
Date: 2015-04-27 21:15:02 +0200 (Mon, 27 Apr 2015)
New Revision: 35613

Modified:
   gnunet/src/cadet/gnunet-service-cadet_tunnel.c
Log:
- don't do otr-rekey if a tunnel is Ax type

Modified: gnunet/src/cadet/gnunet-service-cadet_tunnel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2015-04-27 19:15:01 UTC 
(rev 35612)
+++ gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2015-04-27 19:15:02 UTC 
(rev 35613)
@@ -148,7 +148,7 @@
   /**
    * Fallback OTR-style encryption.
    */
-  CADET_Fallback
+  CADET_OTR
 };
 
 struct CadetTunnelSkippedKey
@@ -1882,6 +1882,9 @@
   if (GNUNET_YES == GCT_is_loopback (t))
     return GNUNET_YES;
 
+  if (CADET_OTR != t->enc_type)
+    return GNUNET_YES;
+
   r = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, (uint32_t) n * 
100);
   delay = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, r);
   t->rekey_task = GNUNET_SCHEDULER_add_delayed (delay, &rekey_tunnel, t);
@@ -2271,7 +2274,7 @@
   if (NULL != t->ax)
   {
     destroy_ax (t);
-    t->enc_type = CADET_Fallback;
+    t->enc_type = CADET_OTR;
     if (NULL != t->rekey_task)
       GNUNET_SCHEDULER_cancel (t->rekey_task);
     create_kx_ctx (t);
@@ -2394,7 +2397,7 @@
   if (NULL == t->ax)
   {
     /* Something is wrong if ax is NULL. Whose fault it is? */
-    GNUNET_break_op (CADET_Fallback == t->enc_type);
+    GNUNET_break_op (CADET_OTR == t->enc_type);
     GNUNET_break (CADET_Axolotl == t->enc_type);
     return;
   }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]