title: Build native OpenSSL library for WP8 Platform
body: <p>I am creating Windows phone 8 application.I need to create App which uses compiled <code>OpenSSL</code> library.I was following <a href="http://www.openssl.org/source/" rel="nofollow noreferrer">standard</a> latest library.</p>
  
  <p>I am following <code>INSTALL.W64</code> steps, as I don't know which INSTALL.* to be used.As my machine is 64 bit I preferred this:</p>
  
  <p>To build for Win64/x64:</p>
  
  <p>1 perl Configure VC-WIN64A<br>
   2 ms\do_win64a<br>
   3 nmake -f ms\ntdll.mak<br>
   4 cd out32dll<br>
   5 ..\ms\test</p>
  
  <p>Using Visual Studio Command Prompt.Upto step 2 is fine.At 3rd step it fails to build and doesn't create library in out32dll Folder.It gives error like:</p>
  
  <pre><code>C:\Program Files (x86)\Windows Phone Kits\8.0\include\windows.h(182) : fatal err
  or C1083: Cannot open include file: 'winreg.h': No such file or directory
  NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
  \VC\WPSDK\WP80\BIN\cl.EXE"' : return code '0x2'
  Stop.
  </code></pre>
  
  <p>My question is :<strong>Is really OpenSSL supported for Windows Phone Platform</strong>.As I seen <a href="http://social.msdn.microsoft.com/Forums/sharepoint/en-US/4085f910-95dc-4862-9cc4-935c04d656f1/openssl-on-windows-phone-8?forum=wpdevelop" rel="nofollow noreferrer">this</a> which is true/false I am not sure.</p>
  
  <p>Apart from this standard way I also tried <a href="https://stackoverflow.com/questions/17203985/how-to-build-openssl-for-wp8">this</a> solution.Able to complete steps mentioned in answer.got build compiled in visual studio.Referenced <code>OpenSSLWP8</code> in Windows Phone 8 Project.Compiled <code>libeay32</code>.</p>
  
  <p>But when I try to create reference <code>NativeCrypto nc = new NativeCrypto()</code> I get <code>FileNotFoundException</code> in that library.Am I missing something?</p>
  
  <p>Which solution is better or there is any other solution available so that I can build <code>OpenSSL</code> for <strong>WP8</strong>.</p>
  
  <p>Any help is appreciated.
  Thanks.</p>