- Don't forget to set packet cipher for added hosts.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 4 Nov 2000 16:39:19 +0000 (16:39 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 4 Nov 2000 16:39:19 +0000 (16:39 +0000)
src/protocol.c

index aeeec1be63be18985aa9cde7302b89b5478d4345..31c9aeeb2756597e1da68c9fd7a703e12b3a205f 100644 (file)
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: protocol.c,v 1.28.4.54 2000/11/03 22:35:11 zarq Exp $
+    $Id: protocol.c,v 1.28.4.55 2000/11/04 16:39:19 guus Exp $
 */
 
 #include "config.h"
 */
 
 #include "config.h"
@@ -872,6 +872,8 @@ cp
 
   new->nexthop = cl;
   new->status.active = 1;
 
   new->nexthop = cl;
   new->status.active = 1;
+  new->cipher_pkttype = EVP_bf_cfb();
+  new->cipher_pktkeylength = cl->cipher_pkttype->key_len + cl->cipher_pkttype->iv_len;
 
 cp
   return 0;
 
 cp
   return 0;