Skip to content

Commit 4b5bd72

Browse files
committed
Addendum to previous commit.
1 parent 80d1798 commit 4b5bd72

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

boost/network/protocol/http/client.hpp

+9
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,22 @@ namespace boost { namespace network { namespace http {
5454
// _io_service : boost::asio::io_service &
5555
// -- supply an io_service to the
5656
// client
57+
// _openssl_certificate : string
58+
// -- the name of the certificate file
59+
// to use
60+
// _openssl_verify_path : string
61+
// -- the name of the directory from
62+
// which the certificate authority
63+
// files can be found
5764

5865
BOOST_PARAMETER_CONSTRUCTOR(
5966
basic_client, (base_facade_type), tag,
6067
(optional
6168
(in_out(io_service), (boost::asio::io_service))
6269
(follow_redirects, (bool))
6370
(cache_resolved, (bool))
71+
(openssl_certificate, (string_type))
72+
(openssl_verify_path, (string_type))
6473
))
6574

6675
//

boost/network/protocol/http/client/facade.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ namespace boost { namespace network { namespace http {
116116
new pimpl_type(
117117
args[_cache_resolved|false]
118118
, args[_follow_redirects|false]
119-
, args[_openssl_certificate|optional<string_type>()]
120-
, args[_openssl_verify_path|optional<string_type>()]
119+
, optional<string_type>(args[_openssl_certificate|optional<string_type>()])
120+
, optional<string_type>(args[_openssl_verify_path|optional<string_type>()])
121121
)
122122
);
123123
}
@@ -129,8 +129,8 @@ namespace boost { namespace network { namespace http {
129129
args[_cache_resolved|false]
130130
, args[_follow_redirects|false]
131131
, args[_io_service]
132-
, args[_openssl_certificate|optional<string_type>()]
133-
, args[_openssl_verify_path|optional<string_type>()]
132+
, optional<string_type>(args[_openssl_certificate|optional<string_type>()])
133+
, optional<string_type>(args[_openssl_verify_path|optional<string_type>()])
134134
)
135135
);
136136
}

libs/network/test/http/client_constructor_test.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,9 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(http_cient_constructor_params_test, client, client
2828
http::_io_service=io_service,
2929
http::_cache_resolved=true
3030
);
31+
client instance3(
32+
http::_openssl_certificate="foo",
33+
http::_openssl_verify_path="bar"
34+
);
3135
}
3236

0 commit comments

Comments
 (0)