Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
9b5bb2e2
Unverified
Commit
9b5bb2e2
authored
Aug 26, 2018
by
Kenton Varda
Committed by
GitHub
Aug 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #733 from capnproto/openssl-1.1.1
Fix tls-test for OpenSSL 1.1.1.
parents
e0118b4e
550f0116
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
tls-test.c++
c++/src/kj/compat/tls-test.c++
+11
-3
No files found.
c++/src/kj/compat/tls-test.c++
View file @
9b5bb2e2
...
...
@@ -518,7 +518,11 @@ KJ_TEST("TLS client certificate verification") {
auto
pipe
=
test
.
io
.
provider
->
newTwoWayPipe
();
auto
clientPromise
=
test
.
tlsClient
.
wrapClient
(
kj
::
mv
(
pipe
.
ends
[
0
]),
"example.com"
);
auto
clientPromise
=
test
.
tlsClient
.
wrapClient
(
kj
::
mv
(
pipe
.
ends
[
0
]),
"example.com"
)
.
then
([](
kj
::
Own
<
kj
::
AsyncIoStream
>
stream
)
{
auto
promise
=
stream
->
readAllBytes
();
return
promise
.
attach
(
kj
::
mv
(
stream
));
});
auto
serverPromise
=
test
.
tlsServer
.
wrapServer
(
kj
::
mv
(
pipe
.
ends
[
1
]));
KJ_EXPECT_THROW_MESSAGE
(
...
...
@@ -526,7 +530,7 @@ KJ_TEST("TLS client certificate verification") {
"PEER_DID_NOT_RETURN_A_CERTIFICATE"
),
serverPromise
.
wait
(
test
.
io
.
waitScope
));
KJ_EXPECT_THROW_MESSAGE
(
SSL_MESSAGE
(
"alert
handshake failure"
,
SSL_MESSAGE
(
"alert
"
,
// "alert handshake failure" or "alert certificate required"
"SSLV3_ALERT_HANDSHAKE_FAILURE"
),
clientPromise
.
wait
(
test
.
io
.
waitScope
));
}
...
...
@@ -540,7 +544,11 @@ KJ_TEST("TLS client certificate verification") {
auto
pipe
=
test
.
io
.
provider
->
newTwoWayPipe
();
auto
clientPromise
=
test
.
tlsClient
.
wrapClient
(
kj
::
mv
(
pipe
.
ends
[
0
]),
"example.com"
);
auto
clientPromise
=
test
.
tlsClient
.
wrapClient
(
kj
::
mv
(
pipe
.
ends
[
0
]),
"example.com"
)
.
then
([](
kj
::
Own
<
kj
::
AsyncIoStream
>
stream
)
{
auto
promise
=
stream
->
readAllBytes
();
return
promise
.
attach
(
kj
::
mv
(
stream
));
});
auto
serverPromise
=
test
.
tlsServer
.
wrapServer
(
kj
::
mv
(
pipe
.
ends
[
1
]));
KJ_EXPECT_THROW_MESSAGE
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment