Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1a0d5a73
Kaydet (Commit)
1a0d5a73
authored
Ock 21, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Tabs to spaces
Change-Id: Ib0d64c9d93f7ae73a160ad242a6731b781edaf0f
üst
2ae6e778
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
curl-7.26.0_win-proxy.patch
curl/curl-7.26.0_win-proxy.patch
+14
-14
No files found.
curl/curl-7.26.0_win-proxy.patch
Dosyayı görüntüle @
1a0d5a73
...
@@ -29,15 +29,15 @@
...
@@ -29,15 +29,15 @@
+#ifdef WIN32
+#ifdef WIN32
+static char* wstrToCstr( LPWSTR wStr )
+static char* wstrToCstr( LPWSTR wStr )
+{
+{
+
int bufSize;
+
int bufSize;
+
char* out = NULL;
+
char* out = NULL;
+
if ( wStr != NULL )
+
if ( wStr != NULL )
+
{
+
{
+
bufSize = WideCharToMultiByte( CP_ACP, 0, wStr, -1, NULL, 0, NULL, NULL );
+
bufSize = WideCharToMultiByte( CP_ACP, 0, wStr, -1, NULL, 0, NULL, NULL );
+
out = ( char* )malloc( bufSize * sizeof(char));
+
out = ( char* )malloc( bufSize * sizeof(char));
+
WideCharToMultiByte( CP_ACP, 0, wStr, -1, out, bufSize, NULL, NULL );
+
WideCharToMultiByte( CP_ACP, 0, wStr, -1, out, bufSize, NULL, NULL );
+
}
+
}
+
return out;
+
return out;
+}
+}
+#endif
+#endif
+
+
...
@@ -64,12 +64,12 @@
...
@@ -64,12 +64,12 @@
+ if(!ieProxyConfig->fAutoDetect) {
+ if(!ieProxyConfig->fAutoDetect) {
+ char *ieProxy;
+ char *ieProxy;
+ char *ieNoProxy;
+ char *ieNoProxy;
+
char* pos;
+
char* pos;
+
+
+ ieProxy = wstrToCstr(ieProxyConfig->lpszProxy);
+ ieProxy = wstrToCstr(ieProxyConfig->lpszProxy);
+ ieNoProxy = wstrToCstr(ieProxyConfig->lpszProxyBypass);
+ ieNoProxy = wstrToCstr(ieProxyConfig->lpszProxyBypass);
+
+
+
/* Convert the ieNoProxy into a proper no_proxy value */
+
/* Convert the ieNoProxy into a proper no_proxy value */
+ no_proxy = strdup(ieNoProxy);
+ no_proxy = strdup(ieNoProxy);
+ pos = strpbrk(no_proxy, "; ");
+ pos = strpbrk(no_proxy, "; ");
+ while (NULL != pos) {
+ while (NULL != pos) {
...
@@ -102,10 +102,10 @@
...
@@ -102,10 +102,10 @@
+ else {
+ else {
+ /* TODO Handle the Proxy config Auto Detection case */
+ /* TODO Handle the Proxy config Auto Detection case */
+ }
+ }
+
+
+ GlobalFree( ieProxyConfig->lpszAutoConfigUrl );
+ GlobalFree( ieProxyConfig->lpszAutoConfigUrl );
+
GlobalFree( ieProxyConfig->lpszProxy );
+
GlobalFree( ieProxyConfig->lpszProxy );
+
GlobalFree( ieProxyConfig->lpszProxyBypass );
+
GlobalFree( ieProxyConfig->lpszProxyBypass );
+ }
+ }
+#else /* !WIN32 */
+#else /* !WIN32 */
char proxy_env[128];
char proxy_env[128];
...
...
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