Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix SSL_ca_file reference to undef #1129

Merged
merged 1 commit into from Sep 6, 2017
Merged

Conversation

mudler
Copy link
Contributor

@mudler mudler commented Sep 6, 2017

Summary

since IO::Socket::SSL >= 1.965 \undef means no CA, that is specificed as '' in older versions

Motivation

Otherwise we observe errors like:

Mojo::Reactor::Poll: I/O watcher failed: SSL_ca_file SCALAR(0x2490188) does not exist at /usr/lib/perl5/vendor_perl/5.18.2/IO/Socket/SSL.pm line 1616.

References

https://progress.opensuse.org/issues/23934#change-62720

@mudler mudler force-pushed the master branch 4 times, most recently from 7c0f82d to 32e35b0 Compare September 6, 2017 15:09
@@ -9,6 +9,9 @@ use Scalar::Util 'weaken';
use constant TLS => $ENV{MOJO_NO_TLS}
? 0
: eval 'use IO::Socket::SSL 1.94 (); 1';
use constant DEFAULT => eval { IO::Socket::SSL->VERSION("1.965") }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use single quotes whenever possible.

Copy link
Contributor Author

@mudler mudler Sep 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, i actually tend to that too, don't know why i used double quotes there

With versions greater than 1.965 of IO::Socket::SSL no CA is specified
with \undef, while with older versions we still need to pass ''
@kraih kraih merged commit 2de10c5 into mojolicious:master Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants