231 Commits

Author SHA1 Message Date
kinichiro
adde656bb7 Add strtonum to compat library and export it
crypto library requires strtonum now, and add it to compat library.
remove it from applications compat/ directories.
2021-12-26 16:00:25 +09:00
Brent Cook
1b95c5d584 update for asn1 changes 2021-12-19 20:31:26 -06:00
Brent Cook
26ed65c0b1 add hmac_local.h 2021-12-15 03:32:25 -06:00
kinichiro
244fd5608f Add crypto/bytestring with cmake 2021-12-11 22:05:40 +09:00
kinichiro
b10ff615eb Add crypto/bytestring with autotools 2021-12-11 22:05:28 +09:00
kinichiro
a3a03842f6 Consolidate d2i_pr.c/i2d_pr.c into a_pkey.c and
consolidate d2i_pu.c/i2d_pu.c into a_pubkey.c
2021-12-09 19:59:29 +09:00
kinichiro
c211d97ecb Remove unneeded target_include_directories with cmake
This could remove recurring of the same statement for include directories.
Instead of this removals, apps/* and tests  should have include path that
had been provided by INTERFACE_INCLUDE_DIRECTORIES of target libs and
internal static libs.
2021-12-04 14:36:39 +09:00
Brent Cook
31724a737a Revert "remove LIBRESSL_CRYPTO_INTERNAL"
This reverts commit e8ea73c247069e4e5592b31c0888a8ceb35f7773.
2021-11-29 07:40:25 -06:00
Brent Cook
22c6e3b6d5 Land #702: Add ct to libcrypto 2021-11-29 07:39:24 -06:00
kinichiro
e8ea73c247 remove LIBRESSL_CRYPTO_INTERNAL 2021-11-27 22:46:42 +09:00
kinichiro
954948159a Add ct 2021-11-27 22:12:11 +09:00
kinichiro
870a1ebbc2 Build static library for regression tests when shared build with CMake 2021-11-27 20:57:14 +09:00
Brent Cook
69a50462c7 add o_fips 2021-11-08 13:09:53 -06:00
Brent Cook
04ab1061f3 build updates 2021-11-08 07:33:50 -06:00
Brent Cook
ee7e39e746 add new files to build 2021-09-08 03:23:09 -05:00
kinichiro
4c56df46de Statically link libcrypto/ssl into libtls with cmake 2021-05-07 20:31:22 +09:00
kinichiro
9971b0820c Use object library for CMake 2021-05-02 14:27:57 +09:00
Brent Cook
921c0675a2 Add '--enable-libtls-only' build option 2021-04-07 07:51:45 -05:00
Brent Cook
9abd36e3af modify nc build to link libcompat objects directly
Rather than assuming the static version of libcrypto exists for pulling in the compatibility functions, link the compat objects directly. This modifies the object file generation script a bit to handle the empty-case properly as well.
2020-10-20 03:50:23 -05:00
kinichiro
5a29b0472d Link crypto and ssl object files directly instead of static library
- Output object files list variable for libcrypto and libssl to .mk file.
- Include object files list variable .mk from tls/Makefile
- Link .lo files directly instead of static library for libtls.
2020-10-04 03:50:18 -05:00
kinichiro
ee4eb0027c Add x509_verify.c x509_verify.h 2020-09-14 20:36:30 +09:00
kinichiro
1ba03da236 Add x509_issuer_cache.c x509_issuer_cache.h 2020-09-13 21:56:34 +09:00
kinichiro
6410eee15a Add x509_constraints.c x509_internal.h 2020-09-13 19:55:43 +09:00
kinichiro
8238636e22 Remove cms_lcl.h from crypto/CMakeLists.txt 2020-07-22 22:50:40 +09:00
kinichiro
61a1f6a57b Move crypto/x509v3/ files to crypto/x509/ 2020-06-10 20:50:04 +09:00
kinichiro
740488d89e Fix cmake build to enable masm with VS2019
To specify architecture Visual Studio 16 2019 requires -A option,
and it is stored in variable CMAKE_GENERATOR_PLATFORM.
Until Visual Studio 15 2017, architecture was indicated as part of
generator string (e.g. "Visual Studio 15 2017 Win64")
2020-05-09 20:24:27 +09:00
Brent Cook
79f2a52a39 avoid exporting a sleep() symbol from libcrypto
Since it seems only MSVC lacks sleep(), and it's only used by apps, lets
special-case that and make it available as a static inline function
instead.
2020-04-14 22:29:37 -05:00
Dmitry Baryshkov
d54b9c15bd crypto: regenerate crypto_portable.sym
Make crypto_portable.sym depend on crypto.sym and libcrypto.so on
crypto_portable.sym to rebuild library if one of symbol files changes.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
2020-03-31 15:03:46 +03:00
Dmitry Baryshkov
d62235af81
crypto: do not include gost.h into noinst_HEADERS
gost/gost.h will go into include/openssl/, no need to duplicate it into crypto/gost directory

Signed-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
2020-03-25 12:35:26 +03:00
Dan Nestor
8fdc5252cc
Crypto target properties when building static libs 2020-03-02 11:44:40 +01:00
Brent Cook
d8bfe23353 remove extra cms in cmac 2019-11-03 06:47:45 -06:00
Brent Cook
3c51ff271e add cms to portable build 2019-11-03 06:24:47 -06:00
Ørjan Malde
b80c4bf262 initial support for midipix 2019-10-20 20:22:22 +02:00
Brent Cook
935dedc22c remove duplicate copy of public header 2019-09-09 22:08:34 -05:00
Brent Cook
b43bee6451 update portable for latest build changes 2019-09-09 22:00:57 -05:00
kinichiro
856d0511d6 Use posix_win.c functions on WIN32
- read() returns bytes count as 1 for crlf unless binary mode isn't
  specified with open(). Reported by @ulfworsoe in libressl-portable#542
- err could be WSANOTINITIALISED when WSAStartup() is not called
2019-07-28 19:10:47 +09:00
Brent Cook
b3e2e71310 default to a directory that is not world-creatable 2019-06-12 09:08:17 -05:00
Brent Cook
5ed7cf2553 sigh, add back the quotes for C 2019-06-10 07:07:44 -05:00
Brent Cook
6e2192618a use something else by default for Windows builds (match dist-win.sh) 2019-06-10 07:04:01 -05:00
Brent Cook
83012fe34a let cmake handle quoting itself 2019-06-10 06:49:34 -05:00
kinichiro
bbb662b69c Fix masm build
- Fix masm operators and comments
- Add -DOPENSSL_NO_ASM only if not 64 bit build
- Add -DCMAKE_INSTALL_PREFIX to avoid build error
2019-06-10 06:49:34 -05:00
Stephan Vedder
c6f8ca2bc6 Enable masm compilation under windows 2019-06-10 06:49:34 -05:00
Brent Cook
c199315ee9 condense android comments for clarity 2019-05-23 06:58:38 -05:00
Ishimoto Shinobu
65159f37d0
Remove info about glibc 2019-05-22 10:47:47 +03:00
Ishimoto Shinobu
a747aacc23
avoid glibc
cause problems on musl systems
2019-05-21 22:41:05 +09:00
Simone Basso
44082746db Fix getprogname_linux.c for Android API < 21
This diff fixes the build of LibreSSL for Android with API < 21 where
the `getprogname` system call was not part of libc.

A comment in the diff itself explains in detail the issue.
2019-05-04 09:15:23 +02:00
Daniel Wyatt
23fa9a51d8 Add portable scaffold for SM4 2019-03-04 08:53:22 -05:00
Brent Cook
40c848316e add unimpl fallback for getprogname 2019-02-03 18:50:14 -06:00
Brent Cook
7f59976700 export getuid for libtls 2019-02-01 05:44:31 -06:00
Brent Cook
5269dbb279 update cmake 2019-01-31 13:56:56 -06:00