From: Guus Sliepen Date: Sat, 4 Nov 2000 16:39:19 +0000 (+0000) Subject: - Don't forget to set packet cipher for added hosts. X-Git-Tag: import-tinc-1.1~785^2~746 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=3f8f067e8b559366b9b41dee6a4312702c82042f;p=meshlink - Don't forget to set packet cipher for added hosts. --- diff --git a/src/protocol.c b/src/protocol.c index aeeec1be..31c9aeeb 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -17,7 +17,7 @@ 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" @@ -872,6 +872,8 @@ cp 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;