6 Commits

Author SHA1 Message Date
Nikolaus Thümmel
8bc8cd9db8 Added VisualStudio DLL build configurations (#182)
* Added VisualStudio DLL build configurations

Add inline preprocessor definition to VisualStudio project file - this allows compilation with older versions of VisualStudio (e.g. 2013) which do not support the C99 inline keyword
Removed newhope.c from VisualStudio build files, as it is already included in kex_rlwe_newhope.c and will lead to multiple symbol definition errors in shared library builds
Add ENABLE_CODE_MCBITS guard to kex_code_mcbits.c to protect against missing symbol definition errors in VisualStudio shared library builds
Added VisualStudio shared library exports file dll.def, including the necessary core functions to use oqs from applications
Also export free when building Windows DLLs - this is important as the correct runtime library has to be used to free memory allocated by the OQS library. Applications may be using multiple runtime libraries or memory managers, calling the wrong free will result in memory corruption or segfault

* Add missing newline at end of file.
2017-10-24 09:31:35 -04:00
Christian Paquin
40ffb4eb38 Updated Windows build (added sig, fixed warnings, 2017 update) (#169)
* Updated Visual Studio solution to 2017 version, fixed build warnings (issue #159), added signature and Picnic support.

* commit

treat warnings as errors

* Fix ENABLED_PICNIC macro in sig_picnic.

* Prettyprint

* Try to fix Travis error or macOS.
2017-10-18 16:50:24 -04:00
Christian Paquin
1385ddc8ff Fix windows build july2017 (#151)
* Fixed Windows build after NTRU refactoring and Kyber addition.

* Removed duplicate variable.

* Un-commnented malloc.h, repairing SIDH on Windows.

* Prettyprint and fix malloc.h error on macOS.
2017-07-20 10:16:38 -04:00
Christian Paquin
c949205f5d Enabled building Frodo on Windows (#39)
* Enables Windows build.

* Modified CAPI call to avoid error when no key container is present for the user.

* Removed spurious white spaces.

* Enabled building Frodo on Windows using the Visual Studio solution.

* Replaced non-portable packed bit fields with bit masks.

* Removed commented-out code and defined macro that has been moved to preprocessor defs.

* Disabled AES NI when using x86 Visual Studio projects.

* Prettyprint.
2016-10-31 21:09:22 -04:00
Christian Paquin
096b476e4f Modified OQS Windows projects to make it compatible with OpenSSL on Windows (#17)
* Removed warning Windows when using strdup, and removed the corresponding _strdup definition.

* Modified OQS projects to link statically with the system runtime, like the OpenSSL project does.
Otherwise we get link errors when including OQS in OpenSSL on Windows.
2016-10-01 16:13:28 -04:00
Christian Paquin
16e35cd19c Enables Windows build. (#7) 2016-09-22 16:38:26 -04:00