Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4b5bd72

Browse files
committed
Addendum to previous commit.
1 parent80d1798 commit4b5bd72

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ namespace boost { namespace network { namespace http {
116116
newpimpl_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

Lines changed: 4 additions & 0 deletions
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+
clientinstance3(
32+
http::_openssl_certificate="foo",
33+
http::_openssl_verify_path="bar"
34+
);
3135
}
3236

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp