]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/win: Don't use disallowed APIs on UWP
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>
Wed, 8 Jul 2020 17:40:34 +0000 (23:10 +0530)
committerMatt Caswell <matt@openssl.org>
Mon, 4 Jan 2021 12:01:44 +0000 (12:01 +0000)
commitce1119265005bd254fc92395f72490c19adc707c
tree8323d63ceac70d4aebc2ab86c0ec8710b0fdce9e
parent38b57c4c5268e4db0cad6db6744bf70ce4a0e188
crypto/win: Don't use disallowed APIs on UWP

CreateFiber and ConvertThreadToFiber are not allowed in Windows Store
(Universal Windows Platform) apps since they have been replaced by
their Ex variants which have a new dwFlags parameter.

This flag allows the fiber to do floating-point arithmetic in the
fiber on x86, which would silently cause corruption otherwise since
the floating-point state is not switched by default.

Switch to these "new" APIs which were added in Vista.

See: https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createfiberex#parameters

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12400)
crypto/async/arch/async_win.c
crypto/async/arch/async_win.h