<commit_before><?php
namespace Payum\Core\Bridge\Buzz;

use Buzz\Client\Curl;

class ClientFactory
{
    /**
     * @return Curl
     */
    public static function createCurl()
    {
        $client = new Curl();

        //reaction to the ssl3.0 shutdown from paypal
        //https://www.paypal-community.com/t5/PayPal-Forward/PayPal-Response-to-SSL-3-0-Vulnerability-aka-POODLE/ba-p/891829
        //http://googleonlinesecurity.blogspot.com/2014/10/this-poodle-bites-exploiting-ssl-30.html
        $client->setOption(CURLOPT_SSL_CIPHER_LIST, 'TLSv1');

        //There is a constant for that CURL_SSLVERSION_TLSv1, but it is not present on some versions of php.
        $client->setOption(CURLOPT_SSLVERSION, $curlSslVersionTlsV1 = 1);

        return $client;
    }
}<commit_msg>Do not use the Cipher List for NSS<commit_after><?php
namespace Payum\Core\Bridge\Buzz;

use Buzz\Client\Curl;

class ClientFactory
{
    /**
     * @return Curl
     */
    public static function createCurl()
    {
        $client = new Curl();

        //reaction to the ssl3.0 shutdown from paypal
        //https://www.paypal-community.com/t5/PayPal-Forward/PayPal-Response-to-SSL-3-0-Vulnerability-aka-POODLE/ba-p/891829
        //http://googleonlinesecurity.blogspot.com/2014/10/this-poodle-bites-exploiting-ssl-30.html
        $curl = curl_version();
        $sslVersion = isset($curl['ssl_version']) ? $curl['ssl_version'] : '';
        //Do not use the Cipher List for NSS
        if (substr_compare($sslVersion, "NSS/", 0, strlen("NSS/")) !== 0) {
            $client->setOption(CURLOPT_SSL_CIPHER_LIST, 'TLSv1');
        }

        //There is a constant for that CURL_SSLVERSION_TLSv1, but it is not present on some versions of php.
        $client->setOption(CURLOPT_SSLVERSION, $curlSslVersionTlsV1 = 1);

        return $client;
    }
}
{'fraction_non_alphanumeric': 0.1303873431533006, 'fraction_numerical': 0.02618657937806874, 'mean_word_length': 2.735234215885947, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5873605', 'n_tokens_mistral': 672, 'n_tokens_neox': 626, 'n_words': 124}