Skip to content

Commit dbe0ac9

Browse files
Abdul KarimAbdul Karim
authored andcommitted
ncm-spma: support for ssl client settings yumng, dnf backend
Add the code for ssl client settings for yumng and dnf backend.
1 parent beac671 commit dbe0ac9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

ncm-spma/src/main/perl/spma/dnf.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,12 @@ sub Configure
318318
$attr = "excludepkgs" if $attr eq 'exclude'; # Sigh...
319319
print $fh "$attr=$val\n";
320320
}
321+
# configure ssl settings if defined in protocols
322+
foreach my $proto_attr (qw(verify cacert clientkey clientcert)) {
323+
next unless defined $prots->{$proto_attr};
324+
my $val = $prots->{$proto_attr};
325+
print $fh "ssl$proto_attr=$val\n";
326+
}
321327
$fh->close();
322328
}
323329
# set module stream configs

ncm-spma/src/main/perl/spma/yumng.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,12 @@ sub Configure
242242
$attr = "excludepkgs" if $attr eq 'exclude'; # Sigh...
243243
print $fh "$attr=$val\n";
244244
}
245+
# configure ssl settings if defined in protocols
246+
foreach my $proto_attr (qw(verify cacert clientkey clientcert)) {
247+
next unless defined $prots->{$proto_attr};
248+
my $val = $prots->{$proto_attr};
249+
print $fh "ssl$proto_attr=$val\n";
250+
}
245251
$fh->close();
246252
}
247253

0 commit comments

Comments
 (0)