summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/m_netlib.h20
-rw-r--r--libs/win32/mir_app.libbin309936 -> 309676 bytes
-rw-r--r--libs/win64/mir_app.libbin310136 -> 309896 bytes
-rw-r--r--src/mir_app/src/mir_app.def1
-rw-r--r--src/mir_app/src/mir_app64.def1
-rw-r--r--src/mir_app/src/netlib.cpp1
-rw-r--r--src/mir_app/src/netlib.h1
-rw-r--r--src/mir_app/src/netlib_httpproxy.cpp11
8 files changed, 0 insertions, 35 deletions
diff --git a/include/m_netlib.h b/include/m_netlib.h
index 3121ce633e..8ea5ee7b0d 100644
--- a/include/m_netlib.h
+++ b/include/m_netlib.h
@@ -73,26 +73,6 @@ struct NETLIBUSER
EXTERN_C MIR_APP_DLL(HNETLIBUSER) Netlib_RegisterUser(const NETLIBUSER *pDescr);
-/////////////////////////////////////////////////////////////////////////////////////////
-// Assign a Netlib user handle a set of dynamic HTTP headers to be used with all
-//
-// HTTP connections that enable the HTTP-use-sticky headers flag.
-// The headers persist until cleared with lParam = NULL.
-//
-// All memory should be allocated by the caller using malloc() from MS_SYSTEM_GET_MMI
-// Once it has passed to Netlib, Netlib is the owner of it, the caller should not refer to the memory
-// In any way after this point.
-//
-// NOTE: The szHeaders parameter should be a NULL terminated string following the HTTP header syntax.
-// This string will be injected verbatim, thus the user should be aware of setting strings that are not
-// headers. This service is NOT THREAD SAFE, only a single thread is expected to set the headers and a single
-// thread reading the pointer internally, stopping race conditions and mutual exclusion don't happen.
-//
-// Version 0.3.2a+ (2003/10/27)
-//
-
-EXTERN_C MIR_APP_DLL(int) Netlib_SetStickyHeaders(HNETLIBUSER nlu, const char *szHeaders);
-
/* Notes on HTTP gateway usage
When a connection is initiated through an HTTP proxy using
MS_NETLIB_OPENCONNECTION, netlib will GET nlu.szHttpGatewayHello and read
diff --git a/libs/win32/mir_app.lib b/libs/win32/mir_app.lib
index 1d62f56001..e6e0d13dab 100644
--- a/libs/win32/mir_app.lib
+++ b/libs/win32/mir_app.lib
Binary files differ
diff --git a/libs/win64/mir_app.lib b/libs/win64/mir_app.lib
index 6d056feb3e..cb63777a2a 100644
--- a/libs/win64/mir_app.lib
+++ b/libs/win64/mir_app.lib
Binary files differ
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def
index edeb85fa99..28135879f0 100644
--- a/src/mir_app/src/mir_app.def
+++ b/src/mir_app/src/mir_app.def
@@ -266,7 +266,6 @@ Netlib_AddressToString @369
Netlib_StringToAddress @370
Netlib_Select @371
Netlib_SelectEx @372
-Netlib_SetStickyHeaders @374
Netlib_GetSocket @376
Netlib_StartSsl @377
Netlib_GetConnectionInfo @378
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def
index 0ce710a638..aa5b4e4d4a 100644
--- a/src/mir_app/src/mir_app64.def
+++ b/src/mir_app/src/mir_app64.def
@@ -266,7 +266,6 @@ Netlib_AddressToString @369
Netlib_StringToAddress @370
Netlib_Select @371
Netlib_SelectEx @372
-Netlib_SetStickyHeaders @374
Netlib_GetSocket @376
Netlib_StartSsl @377
Netlib_GetConnectionInfo @378
diff --git a/src/mir_app/src/netlib.cpp b/src/mir_app/src/netlib.cpp
index 41dd1c3131..ae598ef1f8 100644
--- a/src/mir_app/src/netlib.cpp
+++ b/src/mir_app/src/netlib.cpp
@@ -299,7 +299,6 @@ MIR_APP_DLL(int) Netlib_CloseHandle(HANDLE hNetlib)
NetlibFreeUserSettingsStruct(&nlu->settings);
mir_free(nlu->user.szSettingsModule);
mir_free(nlu->user.szDescriptiveName.a);
- mir_free(nlu->szStickyHeaders);
}
break;
diff --git a/src/mir_app/src/netlib.h b/src/mir_app/src/netlib.h
index 06f03bac4b..3a7fe7a739 100644
--- a/src/mir_app/src/netlib.h
+++ b/src/mir_app/src/netlib.h
@@ -38,7 +38,6 @@ struct NetlibUser
int handleType;
NETLIBUSER user;
NETLIBUSERSETTINGS settings;
- char *szStickyHeaders;
int toLog;
int inportnum;
int outportnum;
diff --git a/src/mir_app/src/netlib_httpproxy.cpp b/src/mir_app/src/netlib_httpproxy.cpp
index 1a074d370e..0254989cb7 100644
--- a/src/mir_app/src/netlib_httpproxy.cpp
+++ b/src/mir_app/src/netlib_httpproxy.cpp
@@ -60,14 +60,3 @@ MIR_APP_DLL(int) Netlib_SetHttpProxyInfo(HNETLIBCONN nlc, const NETLIBHTTPPROXYI
nlc->nlhpi.szHttpPostUrl = mir_strdup(nlc->nlhpi.szHttpPostUrl);
return 1;
}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
-MIR_APP_DLL(int) Netlib_SetStickyHeaders(HNETLIBUSER nlu, const char *szHeaders)
-{
- if (GetNetlibHandleType(nlu) != NLH_USER)
- return ERROR_INVALID_PARAMETER;
-
- replaceStr(nlu->szStickyHeaders, szHeaders); // pointer is ours
- return 0;
-}