Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
H
httprl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
drupal.org
httprl
Commits
21f1d202
Commit
21f1d202
authored
Oct 25, 2016
by
mikeytown2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #2780147 by zenimagine: SSL cert problems when using PHP 5.6+
parent
1a146322
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
httprl.module
httprl.module
+3
-1
No files found.
httprl.module
View file @
21f1d202
...
...
@@ -677,10 +677,12 @@ function httprl_set_socket($uri, &$options, $proxy_server, &$result) {
// Disable SNI support as this causes issues with old versions of OpenSSL.
// By default httprl doesn't validate the SSL certificate, so this is OK.
if
(
empty
(
$options
[
'context'
]))
{
$drupal_ssl_context_options
=
variable_get
(
'drupal_ssl_context_options'
,
array
(
'verify_peer'
=>
TRUE
));
// Affected versions of openssl are 1.0.0i to 1.0.1b.
if
(
!
defined
(
'OPENSSL_VERSION_NUMBER'
)
||
(
OPENSSL_VERSION_NUMBER
>=
0x1000009f
&&
OPENSSL_VERSION_NUMBER
<=
0x1000102f
))
{
$
options
[
'context'
]
=
stream_context_create
(
array
(
'ssl'
=>
array
(
'SNI_enabled'
=>
FALSE
))
);
$
drupal_ssl_context_options
+=
array
(
'SNI_enabled'
=>
FALSE
);
}
$options
[
'context'
]
=
stream_context_create
(
array
(
'ssl'
=>
$drupal_ssl_context_options
));
}
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment