Changeset 25473
- Timestamp:
- 09/18/2013 01:50:53 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-http.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r25348 r25473 753 753 'ssl' => array( 754 754 'verify_peer' => $ssl_verify, 755 //'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_cert ficate()755 //'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certificate() 756 756 'capture_peer_cert' => $ssl_verify, 757 757 'SNI_enabled' => true, … … 798 798 // Verify that the SSL certificate is valid for this request 799 799 if ( $secure_transport && $ssl_verify && ! $proxy->is_enabled() ) { 800 if ( ! self::verify_ssl_cert ficate( $handle, $arrURL['host'] ) )800 if ( ! self::verify_ssl_certificate( $handle, $arrURL['host'] ) ) 801 801 return new WP_Error( 'http_request_failed', __( 'The SSL Certificate for the host could not be verified.' ) ); 802 802 } … … 960 960 * @return bool If the cerficiate presented in $stream is valid for $host 961 961 */ 962 static function verify_ssl_cert ficate( $stream, $host ) {962 static function verify_ssl_certificate( $stream, $host ) { 963 963 $context_options = stream_context_get_options( $stream ); 964 964
Note: See TracChangeset
for help on using the changeset viewer.