Skip to content

Commit

Permalink
Merge pull request #704 from Kegeruneku/bug_6843/minicurl_on_aix_trie…
Browse files Browse the repository at this point in the history
…s_to_use_a_function_that_is_not_defined_due_to_openssl_absence

Fixes #6843: minicurl on AIX tries to use a function that is not defined due to OpenSSL absence
  • Loading branch information
peckpeck committed Jun 26, 2015
2 parents 1106db1 + 1b8d673 commit e1a2f04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion initial-promises/node-server/common/utilities/minicurl
Expand Up @@ -91,7 +91,11 @@ $ENV{HTTPS_VERSION} = 3;
# Create a new LWP object
my $ua = LWP::UserAgent->new;
if($no_verify) {
$ua->ssl_opts( verify_hostname => 0, SSL_verify_mode => 0 );

if ( LWP::UserAgent->can("ssl_opts") ) {
$ua->ssl_opts( verify_hostname => 0, SSL_verify_mode => 0 );
}

}

if ($put == 1) {
Expand Down
6 changes: 5 additions & 1 deletion techniques/system/common/1.0/minicurl.st
Expand Up @@ -91,7 +91,11 @@ $ENV{HTTPS_VERSION} = 3;
# Create a new LWP object
my $ua = LWP::UserAgent->new;
if($no_verify) {
$ua->ssl_opts( verify_hostname => 0, SSL_verify_mode => 0 );
if ( LWP::UserAgent->can("ssl_opts") ) {
$ua->ssl_opts( verify_hostname => 0, SSL_verify_mode => 0 );
}
}
if ($put == 1) {
Expand Down

0 comments on commit e1a2f04

Please sign in to comment.