-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic support for Universal Windows Platform apps #820
Conversation
The build failure shows the code uses too long source code lines, which is against our code style guidelines. |
Sorry for the inconvenience, I just fouond the code style check tool. Pushed the fix. :) |
I just tried your patches and they kinda works. But I have little experience with UWP (Universal Windows Platform Apps). IMHO your patches for UWP should check the rather limited Win-API there. E.g. these functions seems not present:
which are used in |
It's the new Windows 10 apps. The are universal and only have to be As for now it's not a complete patch for all modules. For my configuration Best I just tried your patches and they kinda works. But I have little experience with UWA (Windows Universal Platform Apps). IMHO your patches for UWA should check the rather limited Win-API there. LoadLibrary which are used in telnet.c. Similar problems for WIN_USE_SSPI and — |
Works for me with |
Thanks @MarcelRaad |
I'd like a +1 from another windows person on this PR before I'd merge it. |
That's fine, as it works for me, I'm not depending on a quick release of Mit freundlichen Grüßen,
|
Just a comment on OpenSSL regarding this pull request. AFAICS, all code in an UWP application should be written in such Universal Windows style, no? Just a FYI, Microsoft has forked the OpenSSL repo and seems to have made OpenSSL UWP compatible. I've not tested it. But it's here. And more specifically, the UWP change is here. |
@bagder The changes seem relatively simple and it would be good to add UWP support so a +1 from me. |
Thanks! So will you continue this effort to make it more than "basic support" ? Is there something to document for future users who are interested using this or wanting to help expanding the support? |
@bagder You're welcome. I'm sorry to say though that I am currently not finding time to extend this. I had to do the fix for my employer and thought it would be beneficial to contribute at least the first steps. Generally there is not much change needed besides fixing the usage of prohibited APIs. OpenSSL indeed has a Microsoft fork and I am already using it successfully together with curl. |
@m-deckel @MarcelRaad how did you build this? By manually hacking the winbuild/MakefileBuild.vc, adding at line 67 Before I hack, am I doing something wrong? |
@joycepg You're right, this patch broke with commit 332e8d6 (curl version 7.50.0) and then the change in connect.c was merged to the wrong place. I'm successfully using this patch on top of libcurl 7.49.1 at home. I'll create a pull request to fix the merge error, after which I can successfully build 7.50.3 again. Note that you should always set _WIN32_WINNT explicitly (to 0x0A00 for Windows 10). Otherwise, libcurl's config-win32.h will choose Windows Vista for you. You don't have to define CURL_WINDOWS_APP yourself. |
This fixes a merge error in commit 7f3df80 caused by commit 332e8d6. Additionally, this changes Curl_verify_windows_version for Windows App builds to assume to always be running on the target Windows version. There seems to be no way to determine the Windows version from a UWP app. Neither GetVersion(Ex), nor VerifyVersionInfo, nor the Version Helper functions are supported. Bug: curl#820 (comment) Reported-by: Paul Joyce
This fixes a merge error in commit 7f3df80 caused by commit 332e8d6. Additionally, this changes Curl_verify_windows_version for Windows App builds to assume to always be running on the target Windows version. There seems to be no way to determine the Windows version from a UWP app. Neither GetVersion(Ex), nor VerifyVersionInfo, nor the Version Helper functions are supported. Bug: #820 (comment) Reported-by: Paul Joyce Closes #1048
Basic support for Universal Windows Platform apps