From e4c1b632c4042a7486b97966246c5145b407ac00 Mon Sep 17 00:00:00 2001 From: Viktor G Date: Thu, 21 Nov 2019 17:09:29 +0300 Subject: [PATCH] fix --- .../files/usr/local/pkg/freeradius.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/net/pfSense-pkg-freeradius3/files/usr/local/pkg/freeradius.inc b/net/pfSense-pkg-freeradius3/files/usr/local/pkg/freeradius.inc index 8c7411f249ac..79144d21a555 100644 --- a/net/pfSense-pkg-freeradius3/files/usr/local/pkg/freeradius.inc +++ b/net/pfSense-pkg-freeradius3/files/usr/local/pkg/freeradius.inc @@ -1607,12 +1607,8 @@ EOD; // Gets started from freeradiuseapconf.xml function freeradius_get_ca_or_certs($type) { $c_arr = array(); - if ($type == 'ca') { - $ecdsagood = cert_build_list('ca', 'IPsec'); - } else { - $ecdsagood = cert_build_list('cert', 'IPsec'); - $c_arr[] = array('refid' => 'none', 'descr' => 'none (auto)'); - } + $c_arr[] = array('refid' => 'none', 'descr' => 'none (auto)'); + $ecdsagood = cert_build_list($type, 'IPsec'); foreach ($ecdsagood as $refid => $descr) { $c_arr[] = array('refid' => $refid, 'descr' => $descr); }