Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
8208d9e2
Commit
8208d9e2
authored
Jan 20, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed -DUSE_SSL build
parent
fdd086b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
mongoose.c
mongoose.c
+9
-4
No files found.
mongoose.c
View file @
8208d9e2
...
...
@@ -1067,7 +1067,11 @@ static void prepare_cgi_environment(struct connection *conn,
addenv
(
blk
,
"SCRIPT_FILENAME=%s"
,
prog
);
addenv
(
blk
,
"PATH_TRANSLATED=%s"
,
prog
);
#ifdef USE_SSL
addenv
(
blk
,
"HTTPS=%s"
,
conn
->
ssl
!=
NULL
?
"on"
:
"off"
);
#else
addenv
(
blk
,
"HTTPS=%s"
,
"off"
);
#endif
if
((
s
=
mg_get_header
(
ri
,
"Content-Type"
))
!=
NULL
)
addenv
(
blk
,
"CONTENT_TYPE=%s"
,
s
);
...
...
@@ -1915,11 +1919,11 @@ static void call_uri_handler(struct connection *conn) {
static
void
write_to_socket
(
struct
connection
*
conn
)
{
struct
iobuf
*
io
=
&
conn
->
remote_iobuf
;
int
n
=
conn
->
ssl
==
NULL
?
send
(
conn
->
client_sock
,
io
->
buf
,
io
->
len
,
0
)
:
#ifdef USE_SSL
int
n
=
conn
->
ssl
==
NULL
?
send
(
conn
->
client_sock
,
io
->
buf
,
io
->
len
,
0
)
:
SSL_write
(
conn
->
ssl
,
io
->
buf
,
io
->
len
);
#else
0
;
int
n
=
send
(
conn
->
client_sock
,
io
->
buf
,
io
->
len
,
0
)
;
#endif
DBG
((
"%p Written %d of %d(%d): [%.*s ...]"
,
...
...
@@ -3535,8 +3539,8 @@ static void read_from_socket(struct connection *conn) {
return
;
}
if
(
conn
->
ssl
!=
NULL
)
{
#ifdef USE_SSL
if
(
conn
->
ssl
!=
NULL
)
{
if
(
conn
->
flags
&
CONN_SSL_HANDS_SHAKEN
)
{
n
=
SSL_read
(
conn
->
ssl
,
buf
,
sizeof
(
buf
));
}
else
{
...
...
@@ -3545,8 +3549,9 @@ static void read_from_socket(struct connection *conn) {
}
return
;
}
}
else
#endif
}
else
{
{
n
=
recv
(
conn
->
client_sock
,
buf
,
sizeof
(
buf
),
0
);
}
...
...
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