search for: inmaclength

Displaying 3 results from an estimated 3 matches for "inmaclength".

2011 Jan 03
1
Tinc improvements
...nd_mtu_probe(node_t *n) { vpn_packet_t packet; + memset(&packet.flags, 0, sizeof(packet.flags)); int len, i; int timeout = 1; @@ -238,12 +239,12 @@ static bool try_mac(const node_t *n, const vpn_packet_t *inpkt) { unsigned char hmac[EVP_MAX_MD_SIZE]; - if(!n->indigest || !n->inmaclength || !n->inkey || inpkt->len < sizeof inpkt->seqno + n->inmaclength) + if(!n->indigest || !n->inmaclength || !n->inkey || inpkt->len < sizeof inpkt->seqno + sizeof inpkt->flags + n->inmaclength) return false; - HMAC(n->indigest, n->inkey, n->inkeyl...
2010 Sep 20
0
No subject
...} =20 @@ -264,11 +269,12 @@ =20 /* Remove flags */ =20 - inpkt->len -=3D sizeof(inpkt->flags); + inpkt->flag_bits =3D ntohl(inpkt->flag_bits); + inpkt->len -=3D sizeof(inpkt->flag_bits); =20 /* Check packet length */ =20 - if(inpkt->len < sizeof(inpkt->seqno) + n->inmaclength) { + if(inpkt->len < sizeof(inpkt->flag_bits) + sizeof(inpkt->seqno) + = n->inmaclength) { ifdebug(TRAFFIC) logger(LOG_DEBUG, "Got too short packet from %s = (%s)", n->name, n->hostname); return; @@ -302,6 +308,7 @@ return; } =09 + outpkt->fla...
2013 Nov 07
2
Segfaults on connection loss
...81, tv_usec = 156843}, outgoing = 0x1abc4c0, node = 0x1ad8ef0, edge = 0x1b71ba0, rsa_key = 0x0, incipher = 0x7ff0d99eea20, outcipher = 0x7ff0d99eea20, inctx = 0x0, outctx = 0x0, inkey = 0x0, outkey = 0x0, inkeylength = 0, outkeylength = 0, indigest = 0x7ff0d99ef8c0, outdigest = 0x7ff0d99ef8c0, inmaclength = 0, outmaclength = 0, incompression = 0, outcompression = 0, mychallenge = 0x0, hischallenge = 0x0, buffer = "...", buflen = 0, reqlen = 0, tcplen = 0, allow_request = 0, outbuf = 0x1ab75d0 "0 ... 17\n", outbufstart = 0, outbuflen = 0, outbufsize = 14, last_ping_time = 1383...