Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
7ab0dfc8
Commit
7ab0dfc8
authored
Sep 27, 2022
by
jcorporation
Committed by
Max Kellermann
Sep 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sets the curl proxy ssl verify options to the values of the host configuration options
This fixes #1616
parent
15ff7c4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
CurlInputPlugin.cxx
src/input/plugins/CurlInputPlugin.cxx
+2
-0
Request.hxx
src/lib/curl/Request.hxx
+8
-0
No files found.
src/input/plugins/CurlInputPlugin.cxx
View file @
7ab0dfc8
...
@@ -439,6 +439,8 @@ CurlInputStream::InitEasy()
...
@@ -439,6 +439,8 @@ CurlInputStream::InitEasy()
request
->
SetVerifyPeer
(
verify_peer
);
request
->
SetVerifyPeer
(
verify_peer
);
request
->
SetVerifyHost
(
verify_host
);
request
->
SetVerifyHost
(
verify_host
);
request
->
SetOption
(
CURLOPT_HTTPHEADER
,
request_headers
.
Get
());
request
->
SetOption
(
CURLOPT_HTTPHEADER
,
request_headers
.
Get
());
request
->
SetProxyVerifyPeer
(
verify_peer
);
request
->
SetProxyVerifyHost
(
verify_host
);
}
}
void
void
...
...
src/lib/curl/Request.hxx
View file @
7ab0dfc8
...
@@ -123,6 +123,14 @@ public:
...
@@ -123,6 +123,14 @@ public:
easy
.
SetVerifyPeer
(
value
);
easy
.
SetVerifyPeer
(
value
);
}
}
void
SetProxyVerifyHost
(
bool
value
)
{
easy
.
SetOption
(
CURLOPT_PROXY_SSL_VERIFYHOST
,
value
?
2L
:
0L
);
}
void
SetProxyVerifyPeer
(
bool
value
)
{
easy
.
SetOption
(
CURLOPT_PROXY_SSL_VERIFYPEER
,
value
);
}
void
SetNoBody
(
bool
value
=
true
)
{
void
SetNoBody
(
bool
value
=
true
)
{
easy
.
SetNoBody
(
value
);
easy
.
SetNoBody
(
value
);
}
}
...
...
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