wintun/api
Jason A. Donenfeld 7710ff187b api: close private namespace when unloading DLL
Prior, people making calls to LoadLibrary/FreeLibrary would experience
a failure to create or open adapters, because the private namespace was
already loaded into the process and not cleaned up on DLL detachment.
While this pattern is probably a misuse of the library, we should still
support cleaning that up. This commit makes the right calls to free the
boundary descriptor and close the private namespace. It does not,
however, destroy the private namespace using the flag on the second
parameter, in case of races with other processes.

Reported-by: Brad Spencer <bspencer@blackberry.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-12-17 19:00:25 +01:00
..
adapter.c api: do not make dead gateway detection failures fatal 2020-11-17 16:27:11 +01:00
adapter.h api: remove WintunOpenAdapterDeviceObject 2020-11-05 16:58:43 +01:00
api.vcxproj api: delay load remaining dlls to work around forwarder gotchas 2020-11-27 14:52:03 +01:00
api.vcxproj.filters api: include the rundll32 helpers the MSVC-typical way 2020-11-04 13:21:42 +01:00
elevate.c api: manipulate process token if thread token didn't require impersonation 2020-11-07 15:04:33 +01:00
elevate.h api: use GetLastError() to report failures like standard Win32 2020-11-04 13:21:42 +01:00
entry.c api: remove useless line 2020-11-17 12:46:53 +01:00
entry.h api: include arm64 in amd64 2020-11-05 16:58:43 +01:00
exports.def api: remove WintunOpenAdapterDeviceObject 2020-11-05 16:58:43 +01:00
extract-driverver.js api: upgrade nci.lib and wintun-inf.h building 2020-11-04 16:44:01 +01:00
logger.c api: CALLBACK_FUNC -> CALLBACK 2020-11-04 16:46:24 +01:00
logger.h api: fix Function and Prefix logging order 2020-11-07 15:04:33 +01:00
namespace.c api: close private namespace when unloading DLL 2020-12-17 19:00:25 +01:00
namespace.h api: use GetLastError() to report failures like standard Win32 2020-11-04 13:21:42 +01:00
nci.def api: make nci.lib work on x86 2020-11-02 11:38:02 +01:00
nci.h api: make nci.lib work on x86 2020-11-02 11:38:02 +01:00
ntdll.h api: move undocumented ntdll symbols to ntdll.h 2020-11-03 15:28:17 +01:00
pch.c api: add pre-compiled header support 2020-10-30 16:50:58 +01:00
registry.c api: use a logging alloc function 2020-11-04 13:21:43 +01:00
registry.h api: use GetLastError() to report failures like standard Win32 2020-11-04 13:21:42 +01:00
resource.c api: use GetLastError() to report failures like standard Win32 2020-11-04 13:21:42 +01:00
resource.h api: use GetLastError() to report failures like standard Win32 2020-11-04 13:21:42 +01:00
resources.rc api: include arm64 in amd64 2020-11-05 16:58:43 +01:00
rundll32_i.c api: fix LastError override 2020-11-07 15:04:33 +01:00
rundll32.c api: remove return value from logger function 2020-11-10 22:06:25 +01:00
session.c api: skip notifying driver when there are no receive packets yet 2020-11-27 14:52:03 +01:00
wintun.h api: allow header to be mit 2020-11-27 14:52:01 +01:00