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
01503120
Commit
01503120
authored
Aug 03, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Rename spdy_{upstream,downstream}_no_tls as {upstream,downstream}_no_tls
parent
564e6b9f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
src/shrpx.cc
src/shrpx.cc
+6
-6
src/shrpx_config.cc
src/shrpx_config.cc
+2
-2
src/shrpx_config.h
src/shrpx_config.h
+2
-2
src/shrpx_spdy_session.cc
src/shrpx_spdy_session.cc
+1
-1
No files found.
src/shrpx.cc
View file @
01503120
...
...
@@ -240,13 +240,13 @@ int event_loop()
if
(
get_config
()
->
client_mode
)
{
sv_ssl_ctx
=
0
;
cl_ssl_ctx
=
get_config
()
->
spdy_
downstream_no_tls
?
cl_ssl_ctx
=
get_config
()
->
downstream_no_tls
?
0
:
ssl
::
create_ssl_client_context
();
}
else
{
sv_ssl_ctx
=
get_config
()
->
spdy_
upstream_no_tls
?
sv_ssl_ctx
=
get_config
()
->
upstream_no_tls
?
0
:
get_config
()
->
default_ssl_ctx
;
cl_ssl_ctx
=
get_config
()
->
spdy_bridge
&&
!
get_config
()
->
spdy_
downstream_no_tls
?
!
get_config
()
->
downstream_no_tls
?
ssl
::
create_ssl_client_context
()
:
0
;
}
...
...
@@ -357,8 +357,8 @@ void fill_default_config()
mod_config
()
->
spdy_upstream_window_bits
=
16
;
mod_config
()
->
spdy_downstream_window_bits
=
16
;
mod_config
()
->
spdy_
upstream_no_tls
=
false
;
mod_config
()
->
spdy_
downstream_no_tls
=
false
;
mod_config
()
->
upstream_no_tls
=
false
;
mod_config
()
->
downstream_no_tls
=
false
;
set_config_str
(
&
mod_config
()
->
downstream_host
,
"127.0.0.1"
);
mod_config
()
->
downstream_port
=
80
;
...
...
@@ -902,7 +902,7 @@ int main(int argc, char **argv)
mod_config
()
->
downstream_proto
=
PROTO_HTTP
;
}
if
(
!
get_config
()
->
client_mode
&&
!
get_config
()
->
spdy_
upstream_no_tls
)
{
if
(
!
get_config
()
->
client_mode
&&
!
get_config
()
->
upstream_no_tls
)
{
if
(
!
get_config
()
->
private_key_file
||
!
get_config
()
->
cert_file
)
{
print_usage
(
std
::
cerr
);
LOG
(
FATAL
)
<<
"Too few arguments"
;
...
...
src/shrpx_config.cc
View file @
01503120
...
...
@@ -266,9 +266,9 @@ int parse_config(const char *opt, const char *optarg)
return
-
1
;
}
}
else
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_FRONTEND_NO_TLS
))
{
mod_config
()
->
spdy_
upstream_no_tls
=
util
::
strieq
(
optarg
,
"yes"
);
mod_config
()
->
upstream_no_tls
=
util
::
strieq
(
optarg
,
"yes"
);
}
else
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_BACKEND_NO_TLS
))
{
mod_config
()
->
spdy_
downstream_no_tls
=
util
::
strieq
(
optarg
,
"yes"
);
mod_config
()
->
downstream_no_tls
=
util
::
strieq
(
optarg
,
"yes"
);
}
else
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_BACKEND_TLS_SNI_FIELD
))
{
set_config_str
(
&
mod_config
()
->
backend_tls_sni_name
,
optarg
);
}
else
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_PID_FILE
))
{
...
...
src/shrpx_config.h
View file @
01503120
...
...
@@ -130,8 +130,8 @@ struct Config {
bool
accesslog
;
size_t
spdy_upstream_window_bits
;
size_t
spdy_downstream_window_bits
;
bool
spdy_
upstream_no_tls
;
bool
spdy_
downstream_no_tls
;
bool
upstream_no_tls
;
bool
downstream_no_tls
;
char
*
backend_tls_sni_name
;
char
*
pid_file
;
uid_t
uid
;
...
...
src/shrpx_spdy_session.cc
View file @
01503120
...
...
@@ -248,7 +248,7 @@ void eventcb(bufferevent *bev, short events, void *ptr)
SSLOG
(
INFO
,
spdy
)
<<
"Connection established"
;
}
spdy
->
set_state
(
SpdySession
::
CONNECTED
);
if
((
!
get_config
()
->
spdy_
downstream_no_tls
&&
if
((
!
get_config
()
->
downstream_no_tls
&&
!
get_config
()
->
insecure
&&
spdy
->
check_cert
()
!=
0
)
||
spdy
->
on_connect
()
!=
0
)
{
spdy
->
disconnect
();
...
...
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