microsoft / openssl

A cross-platform cryptographic library
133 stars 57 forks source link

Fails Windows Store App Certification #57

Closed wangdevmgit closed 6 years ago

wangdevmgit commented 6 years ago

I run a windows store certification kit to check my uwp app and got failed. The error is:

API getenv in api-ms-win-crt-environment-l1-1-0.dll is not supported for this application type. libeay32.dll calls this API.

So I couldn't publish our UWP app with this version of OpenSSL.

I guess the file ms\winrtdef.h cause this issue.

khouzam commented 6 years ago

Hi @wangdevmgit,

I had inadvertently removed the following two lines causing the failure (since one of them was clearly wrong). I'll put them back

# define getenv winrt_getenv
# define setenv winrt_getenv
khouzam commented 6 years ago

I've pushed the fix to OpenSSL_1_0_2_WinRT-stable