Ticket #34883: 34883.diff
File 34883.diff, 2.5 KB (added by , 9 years ago) |
---|
-
wp-includes/class-http.php
62 62 * compressed content is returned in the response anyway, it will 63 63 * need to be separately decompressed. Default true. 64 64 * @type bool $sslverify Whether to verify SSL for the request. Default true. 65 * @type string sslcertificates Absolute path to an SSL certificate .crt file. 65 * @type string $sslcertificates Absolute path to an SSL certificate .crt file. 66 * @type string $clientcert Absolute path to a client certificate in .pem format. Default null. 66 67 * Default ABSPATH . WPINC . '/certificates/ca-bundle.crt'. 67 68 * @type bool $stream Whether to stream to a file. If set to true and no filename was 68 69 * given, it will be droped it in the WP temp dir and its name will -
wp-includes/class-wp-http-curl.php
113 113 114 114 $is_local = isset($r['local']) && $r['local']; 115 115 $ssl_verify = isset($r['sslverify']) && $r['sslverify']; 116 $ssl_client_cert = isset($r['sslclientcert']) && $r['sslclientcert']; 116 117 if ( $is_local ) { 117 118 /** This filter is documented in wp-includes/class-wp-http-streams.php */ 118 119 $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify ); … … 137 138 if ( $ssl_verify ) { 138 139 curl_setopt( $handle, CURLOPT_CAINFO, $r['sslcertificates'] ); 139 140 } 141 if ( $ssl_client_cert ) { 142 curl_setopt( $handle, CURLOPT_SSLCERT, $r['sslclientcert'] ); 143 } 140 144 141 145 curl_setopt( $handle, CURLOPT_USERAGENT, $r['user-agent'] ); 142 146 -
wp-includes/class-wp-http-streams.php
116 116 'capture_peer_cert' => $ssl_verify, 117 117 'SNI_enabled' => true, 118 118 'cafile' => $r['sslcertificates'], 119 'local_cert' => $r['sslclientcert'], 119 120 'allow_self_signed' => ! $ssl_verify, 120 121 ) 121 122 ) );