Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 508462 Details for
Bug 639858
=net-vpn/strongswan-5.5.3 - ?
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
user-patch-2
50c129b8072ffd1065aad3964cb8ad7710130687.patch (text/plain), 1.80 KB, created by
Andreas Marx
on 2017-12-06 11:02:18 UTC
(
hide
)
Description:
user-patch-2
Filename:
MIME Type:
Creator:
Andreas Marx
Created:
2017-12-06 11:02:18 UTC
Size:
1.80 KB
patch
obsolete
>diff --git a/conf/Makefile.am b/conf/Makefile.am >index eb5c9c2..7ff212c 100644 >--- a/conf/Makefile.am >+++ b/conf/Makefile.am >@@ -35,6 +35,7 @@ plugins = \ > plugins/bypass-lan.opt \ > plugins/certexpire.opt \ > plugins/coupling.opt \ >+ plugins/curl.opt \ > plugins/dhcp.opt \ > plugins/dnscert.opt \ > plugins/duplicheck.opt \ >diff --git a/conf/plugins/curl.opt b/conf/plugins/curl.opt >new file mode 100644 >index 0000000..90efa12 >--- /dev/null >+++ b/conf/plugins/curl.opt >@@ -0,0 +1,3 @@ >+charon.plugins.curl.redir = -1 >+ Maximum number of redirects followed by the plugin, set to 0 to disable >+ following redirects, set to -1 for no limit. >diff --git a/src/libstrongswan/plugins/curl/curl_fetcher.c b/src/libstrongswan/plugins/curl/curl_fetcher.c >index 9207f11..6a2a953 100644 >--- a/src/libstrongswan/plugins/curl/curl_fetcher.c >+++ b/src/libstrongswan/plugins/curl/curl_fetcher.c >@@ -58,6 +58,11 @@ struct private_curl_fetcher_t { > * Timeout for a transfer > */ > long timeout; >+ >+ /** >+ * Maximum number of redirects to follow >+ */ >+ long redir; > }; > > /** >@@ -116,6 +121,8 @@ METHOD(fetcher_t, fetch, status_t, > curl_easy_setopt(this->curl, CURLOPT_TIMEOUT, this->timeout); > } > curl_easy_setopt(this->curl, CURLOPT_CONNECTTIMEOUT, CONNECT_TIMEOUT); >+ curl_easy_setopt(this->curl, CURLOPT_FOLLOWLOCATION, TRUE); >+ curl_easy_setopt(this->curl, CURLOPT_MAXREDIRS, this->redir); > curl_easy_setopt(this->curl, CURLOPT_WRITEFUNCTION, (void*)curl_cb); > curl_easy_setopt(this->curl, CURLOPT_WRITEDATA, &data); > if (this->headers) >@@ -250,6 +257,8 @@ curl_fetcher_t *curl_fetcher_create() > }, > .curl = curl_easy_init(), > .cb = fetcher_default_callback, >+ .redir = lib->settings->get_int(lib->settings, "%s.plugins.curl.redir", >+ -1, lib->ns), > ); > > if (!this->curl)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 639858
:
508456
|
508458
| 508462