Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Link :file:`libcrypto-3.dll` with ``/DELAYLOAD:user32.dll`` so that
importing :mod:`hashlib` or :mod:`ssl` no longer loads :file:`user32.dll`
and its GDI dependencies into the process.
2 changes: 1 addition & 1 deletion PCbuild/openssl.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
set VCINSTALLDIR=$(VCInstallDir)
if not exist "$(IntDir.TrimEnd('\'))" mkdir "$(IntDir.TrimEnd('\'))"
cd /D "$(IntDir.TrimEnd('\'))"
$(Perl) "$(opensslDir)\configure" $(OpenSSLPlatform) no-asm no-uplink
$(Perl) "$(opensslDir)\configure" $(OpenSSLPlatform) no-asm no-uplink "LDFLAGS=/nologo /debug /DELAYLOAD:user32.dll" LDLIBS=delayimp.lib

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use this file to build releases anymore, it's only really still here to avoid breaking people who may have integrated it into their own builds. This change won't have any effect - it needs to go upstream first.

nmake
</NMakeBuildCommandLine>
</PropertyGroup>
Expand Down
Loading