Diff for /embedaddon/bird/sysdep/bsd/setkey.h between versions 1.1 and 1.1.1.1.2.1

version 1.1, 2017/08/22 12:33:54 version 1.1.1.1.2.1, 2017/08/22 13:06:49
Line 158  sk_set_md5_in_sasp_db(sock *s, ip_addr local, ip_addr  Line 158  sk_set_md5_in_sasp_db(sock *s, ip_addr local, ip_addr 
     if (len > TCP_KEYLEN_MAX)      if (len > TCP_KEYLEN_MAX)
       ERR_MSG("The password for TCP MD5 Signature is too long");        ERR_MSG("The password for TCP MD5 Signature is too long");
   
    if (setkey_md5(&src, &dst, passwd, SADB_ADD) < 0)    if (setkey_md5(&src, &dst, passwd, SADB_ADD) < 0 ||
         setkey_md5(&dst, &src, passwd, SADB_ADD) < 0)
       ERR_MSG("Cannot add TCP-MD5 password into the IPsec SA/SP database");        ERR_MSG("Cannot add TCP-MD5 password into the IPsec SA/SP database");
   }    }
   else    else
   {    {
    if (setkey_md5(&src, &dst, NULL, SADB_DELETE) < 0)    if (setkey_md5(&src, &dst, NULL, SADB_DELETE) < 0 ||
         setkey_md5(&dst, &src, NULL, SADB_DELETE) < 0)
       ERR_MSG("Cannot delete TCP-MD5 password from the IPsec SA/SP database");        ERR_MSG("Cannot delete TCP-MD5 password from the IPsec SA/SP database");
   }    }
   return 0;    return 0;

Removed from v.1.1  
changed lines
  Added in v.1.1.1.1.2.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>