Brent Cook
9b88fa46bb
generate the crypto export symbol list at build time
...
we currently do it at configure time, which makes this a generated
source, but generated sources should be cleaned up, which breaks
'make clean; make'
2017-07-08 17:46:16 -05:00
d3x0r
a2bd5ebaba
use GNUInstallDirs from cmake to specify install paths.
...
Primarily this is to select whether 'lib64' or 'lib' is used on linux type systems.
2017-07-06 01:49:43 -07:00
Brent Cook
8b80bcdad8
re-add getpagesize fallback, needed for Android
2017-06-11 11:21:34 -05:00
kinichiro
63042e98f8
Add HKDF functionality
2017-05-13 23:59:59 +09:00
Brent Cook
993f5cf6f9
add back copyright notice from OpenBSD malloc.c from which this came.
2017-04-28 00:26:40 -05:00
kinichiro
048625cf2b
Add freezero support
2017-04-22 23:37:20 +09:00
Brent Cook
922cd9c94e
move crypto_portable.sym to builddir
2017-04-10 09:30:29 -05:00
Brent Cook
764ab1e6a9
remove sysconf fallback for now
2017-03-16 19:25:42 -05:00
Brent Cook
d5b247cc4f
Land #297 , Add recallocarray
2017-03-16 19:23:36 -05:00
Brent Cook
8622dc7536
Land #288 , update conditions under which getentropy, arc4random* are exported
2017-03-16 18:53:12 -05:00
kinichiro
c61c9821e8
Add support for getpagesize
2017-03-15 22:02:11 +09:00
kinichiro
8877e9bc55
Add recallocarray
2017-03-09 23:00:04 +09:00
kinichiro
f2c14deb58
Add crypto/evp/m_md5_sha1.c
2017-03-05 11:17:20 +09:00
kinichiro
5297e9d486
Fix condition of arc4random* and getentropy for Cygwin build
...
- Fix the condition of exporting getentropy
- Modify the CMake condition of including arc4random_uniform as same as autoconf
2017-02-20 11:50:47 +09:00
kinichiro
c957ff63c0
Fix SYSerr and BIOerr in b_win.c
2017-02-01 01:13:09 +09:00
kinichiro
58eb645fdb
Copy libc compat files rather than adding into the repository
...
- remove the CP_LIBC files from repo
- move tests/memmem.c to tests/compat/
2017-01-28 03:40:38 +09:00
kinichiro
91a8bd7914
Move strsep.c to crypto/compat/ and add ocspcheck build to CMake
2017-01-25 21:31:04 +09:00
Brent Cook
fa149b8c8c
updates for new tests and layout
2017-01-22 20:00:52 -06:00
Brent Cook
91f771f981
add missing ecp_nist*.c files
2017-01-18 22:59:09 -06:00
Brent Cook
301d50eaa3
check if EXTRA_EXPORT is set, fix cmake builds on OpenBSD
2017-01-18 22:59:09 -06:00
kinichiro
484feaae91
Stop generating .def files by update.sh
2017-01-18 21:05:43 +09:00
kinichiro
3276be122f
Add export symbol support to CMake for libcrypto
2017-01-18 21:05:28 +09:00
Brent Cook
3b2560feb3
MSVSC fixes
2017-01-16 10:59:24 -06:00
Brent Cook
f21bd20c7e
add open(2) shim to handle O_BINARY and O_CLOEXEC
2017-01-16 10:59:15 -06:00
Brent Cook
c53c23c5d8
enable tlstest on win32
2017-01-15 16:00:17 -06:00
Brent Cook
69e2a7fb75
handle EBADF, which is returned when a file is passed
2017-01-15 16:00:16 -06:00
kinichiro
1d934cd2d8
Fix to use -export-symbols for libcrypto
...
- generating platform specific crypto/crypto_portable.sym from crypto.sym
2017-01-15 22:12:39 +09:00
Matt Stancliff
63add73d0b
Define CMake library object lists globally
...
OBJECT collections in CMake don't generate any artifacts so these
are safe to hoist out and define globally.
library OBJECT targets are just a list of filenames. It can be useful for
other projects to include lists of sources directly regardless of build mode
(shared, static, or library).
2017-01-12 13:46:22 +08:00
kinichiro
7054105fde
implement support for hiding symbols in libcrypto
...
- delete crypto.def and generate it from Symbols.list
- remove BIO_s_log since bss_log.c is not included on Windows
- add Windows specific symbols by crypto/crypto_win.list
2016-12-26 21:53:29 +09:00
kinichiro
f51c1b3886
Fix for tests on Visual Studio
...
- always link static ssl library for tests
- copy DLLs for openssl.exe after building tests
- add functions to crypto.def
2016-11-06 22:21:58 +09:00
Brent Cook
d38ab0a39e
include vpm_int.h
2016-11-06 02:37:15 -06:00
kinichiro
5f187770f3
Add curve25519 to portable
2016-11-06 04:57:23 +09:00
Brent Cook
5842215600
remove duplicate libcrypto static link
2016-11-06 00:24:56 +09:00
Brent Cook
9d14220bdb
export ASN1_time_parse
2016-11-06 00:24:47 +09:00
Brent Cook
70805a3e17
remove more KRB5
2016-11-06 00:24:39 +09:00
Brent Cook
c2ec622b89
remove defined symbols
2016-11-06 00:24:30 +09:00
Brent Cook
348362416d
remove krb5 from cmake
2016-11-05 06:24:55 -05:00
Brent Cook
19457d72b0
enable preprocessor on all ASM files with cmake
2016-11-05 06:16:19 -05:00
Brent Cook
659aff9fa7
updates for latest build changes
2016-11-05 19:11:19 +09:00
kinichiro
62f2a73061
export DLLs functions for MSVC with CMake
...
- Add 3 DEF files to export functions from Windows DLLs
- Add gettimeofday to crypto/crypto.def (*1)
- Remove gai_strerrorA from tls/tls.def (*1)
- Fix CMakeLists.txt to use DEF files as PRIVATE
- Change DLL import library file name since it duplicates with static library
- Ignore compiler warning C4267, and Edit CMAKE_C_FLAGS not to overwrite it (*1)
- Add USE_SHARED option to build openssl.exe with shared libraries (*1)
(*1) recommended by @mcnameej
2016-10-30 21:39:36 -05:00
Satoshi Yasushima
829b21581f
build Windows DLL on CMake
...
like below.
* libcrypto-38.dll
* libssl-39.dll
* libtls-11.dll
2016-08-25 18:17:27 +09:00
Satoshi Yasushima
971892766d
build MinGW on CMake
2016-08-25 18:17:12 +09:00
Tamer Saadeh
2d987d32e6
compat gentroy() for macs is called gentropy_osx.c
2016-08-07 11:56:14 +02:00
Brent Cook
a7f754a663
set link library dependencies with MSVC, fixes #221
2016-07-31 17:11:19 -05:00
Brent Cook
40974784c0
add constant_time_locl.h
2016-05-04 08:47:55 -05:00
kinichiro
bda62f7fe4
add cmake build options
...
- add cmake build options as configure provides
* -DENABLE_ASM (default ON)
* -DENABLE_EXTRATESTS (default OFF)
* -DENABLE_NC (default OFF)
* -DOPENSSLDIR (default ${CMAKE_INSTALL_PREFIX}/etc/ssl)
- add biotest and pidwraptest if ENABLE_EXTRATESTS is ON
- add compiler flag `-fno-common` if CMAKE_SYSTEM_NAME is Darwin
to prevent link error Undefined symbols "_OPENSSL_ia32cap_P"
2016-04-14 15:16:52 +09:00
Brent Cook
752ad82d33
Land #188 , add ASM support for cmake builds
2016-04-09 12:08:26 -05:00
kinichiro
2510a5e6f9
modify cmake to build nc
...
- modify structure of CMakeLists.txt under apps/
* move apps/CMakeLists.txt to apps/openssl/ since this is for openssl build
* create new apps/nc/CMakeLists.txt for nc build
* modify apps/CMakeLists.txt just add_subdirectory()
- add checking and compile of arc4random_uniform()
- add installing man files, openssl.1 and nc.1
2016-04-09 12:06:40 -05:00
kinichiro
e1f8a1e160
modify cmake to build ASM
...
- add functionality compiling ASM with cmake
- to enable ASM, `cmake -DENABLE_ASM=on ..`
2016-04-08 15:09:07 +09:00
kinichiro
3207606f11
fix cmake on HP-UX
...
- CMakeLists.txt
* add OS specific compiler flags and library
* add checking size of time_t
* add checking memmem()
- tests/CMakeLists.txt
* add if(HAVE_MEMMEM) for explicit_bzero
* add checking SMALL_TIME_T for rfc5280time
- crypto/CMakeLists.txt
* add getentropy_hpux.c
- tls/CMakeLists.txt
* fix checking strsep
2016-04-04 14:27:43 +09:00