How to build OpenSSL for WP8?

前端 未结 4 1169
我寻月下人不归
我寻月下人不归 2021-01-07 11:16

How to build OpenSSL for WP8?

AFAIK, we must replace winsock.h by winsock2.h because WP8 only supports winsock2.h. And maybe w

相关标签:
4条回答
  • 2021-01-07 11:38

    Here is a download of pre-compiled OpenSSL libraries for Windows Phone 8.1 among other platforms:

    https://www.teskalabs.com/blog/openssl-binary-distribution-for-developers-static-library

    Disclaimer: I run that site.

    0 讨论(0)
  • 2021-01-07 11:44

    This is so that if anyone wants to build the new version of OpenSSL "1.0.1g" that fixes the Heartbleed problem you can follow the previous steps whit the following changes:

    I renamed the folder include to --include and create a new folder named include, the VS project will take care of copying the information, --include if you like you can remove this, when i build the project without this change there where compilation issues.

    Note: the include folder that i changed is the one found in the root not the one found under VSbuild

    Enjoy

    0 讨论(0)
  • 2021-01-07 11:51

    here is what you have to do, go to this link and download the VSbuild, now put that into the source files downloaded from the OpenSSL website, the folder structure should look like this:

      apps
      bugs
      certs
      .....
      vsbuild
    

    once that is done, open the solution, it should upgrade it to VS12, change the settings to a Windows Phone RT build, to generate DLL's there is no need to build *_lib*, so change the other projects, most changes you need to do are to libeay32, do not compile openssl project, just ignore that, start by building libeay32, and start making changes to the code, as there are some functions we don't have in WinRT, you can either #ifdef them out, or create your own functions,

    NOTE for rand_win.c change the functions to use rand_s and #ifdef most of the code there is, this might muck up the security, you will have to test it out yourself

    Good Luck !

    0 讨论(0)
  • 2021-01-07 11:54

    You can use the Microsoft openssl fork on github with support for windows phone 8.1/8.0 and Windows Store 8.1, that address the entropy on each platform using windows random generators, instructions are located at INSTALL.WINAPP, there is a script located at

    ms\do_vsprojects.bat

    you should be able to just execute that script withing the root location and open vsout\openssl.sln to build the openssl libraries for different windows platforms.

    The fork is located at

    https://github.com/microsoft/openssl

    At this momment these changes are being in process to be integrated with the main OpenSSL source code base.

    0 讨论(0)
提交回复
热议问题