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
1ea590c3
Commit
1ea590c3
authored
Mar 15, 2017
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Return new BIO_METHOD object with OpenSSL < 1.1.0
parent
b21779e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/shrpx_connection.cc
src/shrpx_connection.cc
+2
-2
src/shrpx_connection.h
src/shrpx_connection.h
+1
-3
No files found.
src/shrpx_connection.cc
View file @
1ea590c3
...
...
@@ -293,13 +293,13 @@ void delete_bio_method(BIO_METHOD *bio_method) { BIO_meth_free(bio_method); }
#else // !OPENSSL_1_1_API
BIO_METHOD
*
create_bio_method
()
{
static
BIO_METHOD
shrpx_bio_method
=
{
static
auto
meth
=
new
BIO_METHOD
{
BIO_TYPE_FD
,
"nghttpx-bio"
,
shrpx_bio_write
,
shrpx_bio_read
,
shrpx_bio_puts
,
shrpx_bio_gets
,
shrpx_bio_ctrl
,
shrpx_bio_create
,
shrpx_bio_destroy
,
};
return
&
shrpx_bio_method
;
return
meth
;
}
void
delete_bio_method
(
BIO_METHOD
*
bio_method
)
{}
...
...
src/shrpx_connection.h
View file @
1ea590c3
...
...
@@ -161,9 +161,7 @@ struct Connection {
ev_tstamp
read_timeout
;
};
// Creates BIO_method shared by all SSL objects. If nghttp2 is built
// with OpenSSL < 1.1.0, this returns statically allocated object.
// Otherwise, it returns new BIO_METHOD object every time.
// Creates BIO_method shared by all SSL objects.
BIO_METHOD
*
create_bio_method
();
// Deletes given |bio_method|. If nghttp2 is built with OpenSSL <
...
...
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