New Libreswan version

- Use new Libreswan version 4.6.
- Libreswan 4.6 contains a fix for CVE-2022-23094. See the following
  links for more information.
  https://lists.libreswan.org/pipermail/swan-announce/2022/000046.html
  https://libreswan.org/security/
This commit is contained in:
hwdsl2 2022-01-11 22:20:57 -06:00
parent 44fede6826
commit 2ffad259af
4 changed files with 4 additions and 4 deletions

View File

@ -185,7 +185,7 @@ get_ikev2_script() {
}
check_libreswan() {
SWAN_VER=4.5
SWAN_VER=4.6
ipsec_ver=$(/usr/local/sbin/ipsec --version 2>/dev/null)
swan_ver_old=$(printf '%s' "$ipsec_ver" | sed -e 's/.*Libreswan U\?//' -e 's/\( (\|\/K\).*//')
[ "$swan_ver_old" = "$SWAN_VER" ]

View File

@ -185,7 +185,7 @@ get_ikev2_script() {
}
check_libreswan() {
SWAN_VER=4.5
SWAN_VER=4.6
ipsec_ver=$(/usr/local/sbin/ipsec --version 2>/dev/null)
swan_ver_old=$(printf '%s' "$ipsec_ver" | sed -e 's/.*Libreswan U\?//' -e 's/\( (\|\/K\).*//')
[ "$swan_ver_old" = "$SWAN_VER" ]

View File

@ -240,7 +240,7 @@ get_ikev2_script() {
}
check_libreswan() {
SWAN_VER=4.5
SWAN_VER=4.6
ipsec_ver=$(/usr/local/sbin/ipsec --version 2>/dev/null)
swan_ver_old=$(printf '%s' "$ipsec_ver" | sed -e 's/.*Libreswan U\?//' -e 's/\( (\|\/K\).*//')
[ "$swan_ver_old" = "$SWAN_VER" ]

View File

@ -223,7 +223,7 @@ get_ikev2_script() {
}
check_libreswan() {
SWAN_VER=4.5
SWAN_VER=4.6
ipsec_ver=$(/usr/local/sbin/ipsec --version 2>/dev/null)
swan_ver_old=$(printf '%s' "$ipsec_ver" | sed -e 's/.*Libreswan U\?//' -e 's/\( (\|\/K\).*//')
[ "$swan_ver_old" = "$SWAN_VER" ]