Skip to content

Commit

Permalink
check ECDSA certs curves
Browse files Browse the repository at this point in the history
  • Loading branch information
vktg committed Nov 23, 2019
1 parent 375ae1d commit f0ed5d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions security/pfSense-pkg-stunnel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

PORTNAME= pfSense-pkg-stunnel
PORTVERSION= 5.50
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
12 changes: 12 additions & 0 deletions security/pfSense-pkg-stunnel/files/usr/local/pkg/stunnel.inc
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,16 @@ function stunnel_deinstall() {
rmdir_recursive("/var/tmp/stunnel");
rmdir_recursive(STUNNEL_ETCDIR);
}

/* This change cannot be pulled back to RELENG_2_4_4 since it would break there.
* see https://redmine.pfsense.org/issues/9897
*/
function stunnel_get_certs() {
$c_arr = array();
$ecdsagood = cert_build_list('cert', 'IPsec');
foreach ($ecdsagood as $refid => $descr) {
$c_arr[] = array('refid' => $refid, 'descr' => $descr);
}
return $c_arr;
}
?>
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<fieldname>certificate</fieldname>
<description>Select server certificate to use for this tunnel.</description>
<type>select_source</type>
<source><![CDATA[$config['cert']]]></source>
<source><![CDATA[stunnel_get_certs()]]></source>
<source_name>descr</source_name>
<source_value>refid</source_value>
<show_disable_value>default</show_disable_value>
Expand Down

0 comments on commit f0ed5d3

Please sign in to comment.