[Libreoffice-commits] buildbot.git: bin/sendEmail
Jan Holesovsky
kendy at suse.cz
Tue Jul 9 00:48:34 PDT 2013
bin/sendEmail | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit c5c64bc6f1be2ce04434d3119c0b9bf64b6a9d74
Author: Jan Holesovsky <kendy at suse.cz>
Date: Tue Jul 9 09:45:24 2013 +0200
Workaround cygwin's problem with SSL initialization.
diff --git a/bin/sendEmail b/bin/sendEmail
index a9da068..8a4fc03 100755
--- a/bin/sendEmail
+++ b/bin/sendEmail
@@ -1903,7 +1903,10 @@ else {
if ($conf{'tls_server'} == 1 and $conf{'tls_client'} == 1 and $opt{'tls'} =~ /^(yes|auto)$/) {
printmsg("DEBUG => Starting TLS", 2);
if (SMTPchat('STARTTLS')) { quit($conf{'error'}, 1); }
- if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3 TLSv1')) {
+ my $ssl_ver = 'SSLv3 TLSv1';
+ chomp(my $system = `uname -o`);
+ if ($system eq 'Cygwin') { $ssl_ver = 'SSLv3'; }
+ if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => $ssl_ver)) {
quit("ERROR => TLS setup failed: " . IO::Socket::SSL::errstr(), 1);
}
printmsg("DEBUG => TLS: Using cipher: ". $SERVER->get_cipher(), 3);
More information about the Libreoffice-commits
mailing list