Hello,
I think that my patched version for WCE should work for windows phone :
https://www.mail-archive.com/[email protected]/msg35958.html
reported (but with no details) to rt system here :
http://rt.openssl.org/Ticket/Display.html?id=3498
To my mind, shortly speaking : it is still easy to have a working WCE
version of openssl,
and it will be much easier to maintain it than introduce new #ifdef for
WINPHONE.
About random numbers generation, see that (still open) discussion and
suggestions...:
https://www.mail-archive.com/[email protected]/msg36812.html
Regards
Pierre
Le 11/11/2014 18:23, [email protected] via RT a écrit :
Hi,
While everyone is talking about removing old platforms and cleaning code,
I'm going to suggest adding yet another (sub-)platform and adding (a bit)
to all those #ifdef's (talk about bad timing...).
I have a complete patch which at least gets everything to compile, but for
the moment, I'm going to leave out all the places where conditions are
added to existing #ifdef's and try to start discussion on the three files
with the most "interesting" changes:
* In e_os2.h, define a symbol (OPENSSL_SYS_WINPHONE) that can be
used everywhere else (in the OpenSSL sources) to recognize the platform.
Also add a dummy inline implementation of "getenv" returning an empty
string, as there is no environment in Windows Phone. This works nicely
for compiling openssl but tends to cause problems when included in other
projects which try to handle the missing getenv themselves. Unfortunately,
I didn't find a central place that's included in all OpenSSL sources, but
not
included when just using OpenSSL headers to compile something else.
* In LPdir_win.c add a workaround for missing FindFirstFile.
Also, fix an apparent typo for the old WinCE port (?).
* In rand_win.c, add code to get hopefully reasonable random numbers
from the system, as the existing code essentially relies on methods
not available on Windows Phone. Unfortunately, this requires C++ code,
but together with the added "extern C {...}" everything links fine in the
end, even if this single file is compiled by the C++ compiler.
Best regards,
Stefan
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]