Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
c531e691
Commit
c531e691
authored
Jan 06, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: Use SSLv23_method for tests
parent
f2e83030
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
src/shrpx_ssl_test.cc
src/shrpx_ssl_test.cc
+15
-15
No files found.
src/shrpx_ssl_test.cc
View file @
c531e691
...
...
@@ -33,16 +33,16 @@ namespace shrpx {
void
test_shrpx_ssl_create_lookup_tree
(
void
)
{
ssl
::
CertLookupTree
*
tree
=
ssl
::
cert_lookup_tree_new
();
SSL_CTX
*
ctxs
[]
=
{
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
())};
SSL_CTX
*
ctxs
[]
=
{
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
())};
const
char
*
hostnames
[]
=
{
"example.com"
,
"www.example.org"
,
...
...
@@ -95,10 +95,10 @@ void test_shrpx_ssl_create_lookup_tree(void)
SSL_CTX_free
(
ctxs
[
i
]);
}
SSL_CTX
*
ctxs2
[]
=
{
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
()),
SSL_CTX_new
(
TLSv1
_method
())};
SSL_CTX
*
ctxs2
[]
=
{
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
()),
SSL_CTX_new
(
SSLv23
_method
())};
const
char
*
names
[]
=
{
"rab"
,
"zab"
,
"zzub"
,
"ab"
};
num
=
sizeof
(
ctxs2
)
/
sizeof
(
ctxs2
[
0
]);
tree
=
ssl
::
cert_lookup_tree_new
();
...
...
@@ -119,7 +119,7 @@ void test_shrpx_ssl_cert_lookup_tree_add_cert_from_file(void)
{
int
rv
;
ssl
::
CertLookupTree
*
tree
=
ssl
::
cert_lookup_tree_new
();
SSL_CTX
*
ssl_ctx
=
SSL_CTX_new
(
TLSv1
_method
());
SSL_CTX
*
ssl_ctx
=
SSL_CTX_new
(
SSLv23
_method
());
const
char
certfile
[]
=
NGHTTP2_TESTS_DIR
"/testdata/cacert.pem"
;
rv
=
ssl
::
cert_lookup_tree_add_cert_from_file
(
tree
,
ssl_ctx
,
certfile
);
CU_ASSERT
(
0
==
rv
);
...
...
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