X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=0d9e7863d4146e97cadb66f64012050d2414f859;hp=64225fd2e1c5611ec7ec93cefdf7ac148b783f9e;hb=c217d214f4f071c235bc7c463a1da6124e2570a6;hpb=ca5b67111e4d797d15623c2163f67fe489dc3bf2 diff --git a/src/protocol_key.c b/src/protocol_key.c index 64225fd2..0d9e7863 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -16,8 +16,6 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - $Id$ */ #include "system.h" @@ -49,7 +47,7 @@ bool send_key_changed() if(!mykeyused) return true; - return send_request(broadcast, "%d %lx %s", KEY_CHANGED, random(), myself->name); + return send_request(broadcast, "%d %x %s", KEY_CHANGED, rand(), myself->name); } bool key_changed_h(connection_t *c) @@ -154,6 +152,7 @@ bool send_ans_key(node_t *to) to->incipher = myself->incipher; to->inkeylength = myself->inkeylength; to->indigest = myself->indigest; + to->inmaclength = myself->inmaclength; to->incompression = myself->incompression; // Allocate memory for key