aboutsummaryrefslogtreecommitdiffstats
path: root/wintun.proj (follow)
Commit message (Collapse)AuthorAgeFilesLines
* proj: stop building for arm32Simon Rozman2021-10-251-3/+2
| | | | | | | | | | | | | This does not remove 32-bit ARM compilation support out of the project yet. Shipping of 32-bit ARM drivers became a real challenge: - Microsoft changed policy to prohibit EV-signed drivers - Attestation signing is not supported for this platform - Setting up Windows 8 ARM HCK to get WHQL certification requires a lot of effort if doable in 2021 at all. Signed-off-by: Simon Rozman <simon@rozman.si>
* downlevelshim: remove in preparation for full WHQLJason A. Donenfeld2021-10-131-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: rewrite based on SwDeviceJason A. Donenfeld2021-10-121-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* proj: remove SDV and DVL supportSimon Rozman2021-10-111-22/+1
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* props: tie code analysis to sdv hacks rather than debug buildsJason A. Donenfeld2021-08-041-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* proj: fix header linesJason A. Donenfeld2021-08-021-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: incorporate new win7 code signing techniqueJason A. Donenfeld2021-08-021-4/+4
| | | | | | https://git.zx2c4.com/downlevel-driver-enabler/about/ Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* vs: move shared configuration to wintun.props and upgradeSimon Rozman2021-07-281-9/+9
| | | | | | | Remember to rename wintun.vcxproj.user file in your local working folder to wintun.props.user manually. Signed-off-by: Simon Rozman <simon@rozman.si>
* driver: workaround SDV failure with code analysisSimon Rozman2021-07-271-2/+3
| | | | | | | | | | | | | | SDV is using own CL.EXE which returns error code 2 when code analysis is turned on. However, we need code analysis results for DVL. While we could use a new "ReleaseSDV" configuration, we don't really require limited code analysis in Release builds, as long as we address all full code analysis warnings in Debug builds. To make DVL happier, an intermediate Release build was injected with code analysis turned on. Signed-off-by: Simon Rozman <simon@rozman.si>
* project: add support for intermediate versioningSimon Rozman2021-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | While the Wintun driver is typically released only at <major>.<minor> milestones, the wintun.dll did see some intermediate releases. To make MSI logic correctly decide to upgrade local wintun.dll file, the version inscribed in wintun.dll file resources should increment in those intermediate releases. MSI ignores file timestamps. One could use REINSTALLMODE=emus Installer property to force copying wintun.dll when its version doesn't change. But REINSTALLMODE applies to all files in the MSI session and would be an additional requirement when authoring MSI packages with wintun.dll. Bumping only the final ZIP filename version is not sufficient. Therefore, a <major>.<minor> or <major>.<minor>.<build> versioning is introduced. Furthermore, we no longer distinguish between WintunVersion and WintunVersionStr. All our releases used strictly numeric <major>.<minor> notation, making WintunVersion and WintunVersionStr always the same. When the driver didn't change, just bump the version in wintun.proj and run `msbuild wintun.proj /t:Zip` to rebuild the wintun.dll and make the new ZIP file. Signed-off-by: Simon Rozman <simon@rozman.si>
* project: license prebuilt binaries more permissivelyJason A. Donenfeld2020-12-161-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* proj: use less scary caps for zip license fileJason A. Donenfeld2020-11-061-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* driver: move to subfolderSimon Rozman2020-11-061-16/+15
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* api: include arm64 in amd64Jason A. Donenfeld2020-11-051-1/+2
| | | | | | ARM64 will still run AMD64 apps. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Add ARM driver compilationSimon Rozman2020-10-311-1/+6
| | | | | | | | | This adds the ARM driver to the list of Wintun drivers we compile for future deployment. Since we're not in position to test it in the real world, any feedback is greatly appreciated. Suggested-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Simon Rozman <simon@rozman.si>
* api: move files from root to wintun folder within ZipSimon Rozman2020-10-311-7/+7
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* api: allow Debug build packagingSimon Rozman2020-10-301-30/+33
| | | | | | | | | | | The ARM64 platform has no WHQL/Attestation driver available yet and the Release build of the wintun.dll was explicitly designed to include WHQL/ Attn signed ARM64 driver only: There are no Windows on ARM64 before Windows 10. This prevented alpha testing of the wintun.dll on ARM64. Debug build includes EV signed ARM64 driver. Signed-off-by: Simon Rozman <simon@rozman.si>
* api: upgrade Zip building to output SHA256Simon Rozman2020-10-301-0/+4
| | | | | | | This allows following the Zip file integrity from immediately after it is built. Signed-off-by: Simon Rozman <simon@rozman.si>
* api: installer: switch from MSM to ZIP distributionSimon Rozman2020-10-301-11/+42
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* vcxproj: swap configuration and platform subfolder hierarchySimon Rozman2020-10-301-9/+9
| | | | | | | This should allow wintun.dll to simplify referencing same configuration but different platform wintun.dll for WoW64 support. Signed-off-by: Simon Rozman <simon@rozman.si>
* api: add support for WoW64Simon Rozman2020-10-301-1/+2
| | | | | | | | Some functions of SetupAPI only work when invoked from a native process. Registry and filesystem reflection makes them fail on WoW64. For WoW64 processes, a minimum set of rundll32 functions are provided. Signed-off-by: Simon Rozman <simon@rozman.si>
* Enable ARM64 MSM buildingSimon Rozman2020-10-301-2/+2
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Use WiX directly rather than via WiX's MSBuildSimon Rozman2019-08-051-20/+8
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Unify XML empty-element spacingSimon Rozman2019-08-051-22/+22
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Do not rebuild driver on installer library buildJason A. Donenfeld2019-08-021-3/+3
| | | | | | | | | This commit is in many ways wrong, but when we're dealing with whql imports, there's often a large gap in time, and it's useful to be able to just restore everything exactly how it was prior and then build only installer.dll and the msm. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Unify driver input file listSimon Rozman2019-08-021-4/+7
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Resolve SDV reported "defect"Simon Rozman2019-08-021-1/+1
| | | | | | | | | NdisMGetDeviceProperty() should always return non-NULL FunctionalDeviceObject according to _Outptr_opt_. An explicit FunctionalDeviceObject NULL check has been added to keep the SDV happy and not calling our driver "defective". Signed-off-by: Simon Rozman <simon@rozman.si>
* Add SDVView targetSimon Rozman2019-08-021-1/+4
| | | | | | This invokes SDV GUI for easier review of SDV reported defects. Signed-off-by: Simon Rozman <simon@rozman.si>
* Separate out atomic helpersJason A. Donenfeld2019-08-021-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Rewrite installer logic in CJason A. Donenfeld2019-08-021-6/+24
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Add handle closing ioctlJason A. Donenfeld2019-07-311-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Split driver setup to EV signed (<Win10) and WHQL signed (>=Win10)Simon Rozman2019-04-261-2/+2
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* De-haiku wintun.projSimon Rozman2019-04-231-41/+12
| | | | | | | | | No need for breaking every XML tag with attributes into lines - besides, we're imposing 2-space indentation on .proj files making lines even shorter and indentation combined with excessive line breaking harder to follow visually. Signed-off-by: Simon Rozman <simon@rozman.si>
* Extend MSBuild project to build all supported platforms at onceSimon Rozman2019-04-231-38/+39
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Add missing dependenciesSimon Rozman2019-04-191-1/+1
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* Switch from NMake to MSBuildSimon Rozman2019-04-191-0/+100
This allows common version and other configuration in wintun.props. - MSM packaging migrated to WiX MSBuild project and extended to support digital signing - Building supports single Platform|Configuration per run - again :( - wintun.vcxproj cleanup Signed-off-by: Simon Rozman <simon@rozman.si>