Debian Codegraph @

debian/patches/0001_allow-tls-verify-in-imapssl-mode.patch

raw
1 From b337e8e9f4f74fda310afe90513b2bdca8a7d59c Mon Sep 17 00:00:00 2001
2 From: triatic <[email protected]>
3 Date: Fri, 6 Sep 2019 00:52:39 +0100
4 Subject: [PATCH] Allow tls verify servercert in imapssl mode
5
6 ---
7 dmarcts-report-parser.pl | 9 +++++++--
8 1 file changed, 7 insertions(+), 2 deletions(-)
9
10 --- a/dmarcts-report-parser.pl
11 +++ b/dmarcts-report-parser.pl
12 @@ -295,8 +295,13 @@
13 }
14 # The whole point of setting this socket arg is so that we don't get the nasty warning
15 } else {
16 - print "using ssl without verify servercert.\n" if $debug;
17 - $socketargs = [ SSL_verify_mode => SSL_VERIFY_NONE ];
18 + if ( $tlsverify == 0 ) {
19 + print "use tls without verify servercert.\n" if $debug;
20 + $socketargs = [ SSL_verify_mode => SSL_VERIFY_NONE ];
21 + } else {
22 + print "use tls with verify servercert.\n" if $debug;
23 + $socketargs = [ SSL_verify_mode => SSL_VERIFY_PEER ];
24 + }
25 }
26
27 print "connection to $imapserver with Ssl => $imapssl, User => $imapuser, Ignoresizeerrors => $imapignoreerror\n" if $debug;