File: default-ca-path.patch

package info (click to toggle)
libxml-stream-perl 1.24-4%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 952 kB
  • sloc: perl: 4,821; xml: 64; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: provide a default ssl_ca_path
 ssl_verify is on by default, but will fail unless provided with a valid
 ssl_ca_path. On Debian, commonly trusted CA certificates are stored in
 /etc/ssl/certs
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908027
Forwarded: https://github.com/dap/XML-Stream/issues/19

--- a/lib/XML/Stream.pm
+++ b/lib/XML/Stream.pm
@@ -220,7 +220,7 @@
     $self->{SIDS}->{default}->{ssl} = 0;
     $self->{SIDS}->{default}->{_tls} = 0;
     $self->{SIDS}->{default}->{ssl_verify} = 0x01; # verify peer by default
-    $self->{SIDS}->{default}->{ssl_ca_path} = '';
+    $self->{SIDS}->{default}->{ssl_ca_path} = '/etc/ssl/certs';
     $self->{SIDS}->{default}->{namespace} = "";
     $self->{SIDS}->{default}->{myhostname} = $fullname;
     $self->{SIDS}->{default}->{derivedhostname} = $fullname;