<commit_before>/*
 * ssl_context_service.cpp
 *
 *  Created on: Aug 21, 2015
 *      Author: zmij
 */

#include <tip/ssl_context_service.hpp>
#include <boost/filesystem.hpp>

namespace tip {
namespace ssl {

ssl_context_service::io_service::id ssl_context_service::id;

struct ssl_context_service::impl {
	context_type context_;

	impl() : context_(context_type::sslv23)
	{<commit_msg>Use tls1.2 instead of ssl3<commit_after>/*
 * ssl_context_service.cpp
 *
 *  Created on: Aug 21, 2015
 *      Author: zmij
 */

#include <tip/ssl_context_service.hpp>
#include <boost/filesystem.hpp>

namespace tip {
namespace ssl {

ssl_context_service::io_service::id ssl_context_service::id;

struct ssl_context_service::impl {
	context_type context_;

	impl() : context_(context_type::tlsv12)
	{
	    using ssl_context       = ::boost::asio::ssl::context;
	    context_.set_options(
            ssl_context::default_workarounds |
            ssl_context::no_sslv2 |
            ssl_context::single_dh_use
        );
{'fraction_non_alphanumeric': 0.11465603190428714, 'fraction_numerical': 0.019940179461615155, 'mean_word_length': 4.070707070707071, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5918807', 'n_tokens_mistral': 367, 'n_tokens_neox': 346, 'n_words': 61}