aboutsummaryrefslogtreecommitdiff
path: root/apps (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix unreachable nc portability shimSebastian Blunt2022-04-191-2/+1
| | | | | | | | | | | | | | | | This fixes nc failing to run on darwin due to it incorrectly setting the linux-specific SOCK_NONBLOCK flag on connect. nc already had a portability shim in apps/nc/compat/sys/socket.h, which kicks in if SOCK_NONBLOCK is undefined. But that header includes include/compat/sys/socket.h, which also has a portability shim that defines a default value for SOCK_NONBLOCK if it's undefined. Thus the first portability shim was unreachable. Fixes this by moving the NEED_SOCKET_FLAGS flag into the outer shim, and having the inner shim activate if NEED_SOCKET_FLAGS is defined. This closes https://github.com/libressl-portable/portable/issues/631
* Add strtonum to compat library and export itkinichiro2021-12-266-36/+0
| | | | | crypto library requires strtonum now, and add it to compat library. remove it from applications compat/ directories.
* Remove unneeded target_include_directories with cmakekinichiro2021-12-043-0/+3
| | | | | | | 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.
* Force cmake to link strtonum shim with Darwin less than 20kinichiro2021-05-223-3/+6
| | | | check_function_exists misinterprets as if strtonum exists on macos 10.15.
* Statically link libcrypto/ssl into libtls with cmakekinichiro2021-05-071-1/+1
|
* Add '--enable-libtls-only' build optionBrent Cook2021-04-073-42/+9
|
* modify nc build to link libcompat objects directlyBrent Cook2020-10-201-2/+6
| | | | 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.
* include strtonum for ocspcheckBrent Cook2020-10-192-0/+11
|
* Link crypto and ssl object files directly instead of static librarykinichiro2020-10-041-1/+1
| | | | | | - 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.
* Configure libtls and nc(1) to statically link to libcrypto/sslBrent Cook2020-10-041-3/+3
| | | | | | | | | | | | | | | An issue that Reyk Floeter noted while building a Debian package for LibreSSL is that installing libtls along with OpenSSL causes linker issues since it will often pick up the wrong libcrypto/libssl. This change makes libtls statically link the object files it needs rather than relying on the shared libraries, effectively making libtls self-contained and able to be packaged independently. This should make it possible for other projects that also use libtls to be able to package support without requiring the target OS to ship libcrypto / libssl from LibreSSL. https://salsa.debian.org/reyk-guest/libressl/-/commit/678278df55ce866f2f363998ca690442fa786c66
* Install ocspcheck.8 manualkinichiro2020-01-091-0/+2
|
* re-add CMS to openssl(1)Brent Cook2019-11-072-0/+2
|
* Enable speed on win32kinichiro2019-07-141-0/+66
| | | | | - Use thread and sleep instead of signal and alarm, on win32 - Disable -multi option on win32 since fork is hard to implement
* Fix MacOSX cmake missing symbol _clock_gettimepaul43342019-04-301-0/+7
| | | | | | | | | | | | On El Capitan: [exec] [100%] Linking C executable openssl [exec] Undefined symbols for architecture x86_64: [exec] "_clock_gettime", referenced from: [exec] _app_timer_real in apps_posix.c.o [exec] ld: symbol(s) not found for architecture x86_64 [exec] clang: error: linker command failed with exit code 1 (use -v to see invocation) [exec] make[2]: *** [apps/openssl/openssl] Error 1 [exec] make[1]: *** [apps/openssl/CMakeFiles/openssl.dir/all] Error 2 [exec] make: *** [all] Error 2
* implement app_timer_realBrent Cook2018-09-231-0/+14
|
* add private includes for apps and testsBrent Cook2018-06-143-3/+3
|
* scope private/public headers when embedding into other projectsBrent Cook2018-05-293-20/+3
| | | | thanks to Cameron Palmer
* add proper guard and typedefBrent Cook2018-03-231-1/+1
|
* adjust definition of compat clock_gettimeBrent Cook2018-03-231-1/+1
|
* add clock_gettime for macos 10.11 and earlierBrent Cook2018-03-222-0/+32
|
* Remove CMAKE_HOST_ referencesDon2018-03-161-2/+2
| | | | CMAKE_HOST_ describes the host system not the target. For cross compilation to work the actual target system should be used for making decisions in CMake.
* bump base requirement to Windows Vista, use builtin inet_ntop/ptonBrent Cook2018-03-142-11/+0
|
* Add app_timer_user for Windows buildkinichiro2017-12-261-7/+5
|
* Create correct directory in CMake install.Aric Belsito2017-11-061-1/+1
| | | | Was creating ${CONFDIR}/cert instead of ${CONFDIR}/certs.
* Fix checking memmem in apps/ocspcheck/CMakeLists.txtkinichiro2017-09-261-1/+1
| | | | - Issue #352 pointed out by @d3x0r
* use standard initialization for poll loop delayBrent Cook2017-08-131-1/+3
|
* Merge branch 'master' of https://github.com/libressl-portable/portable into ↵d3x0r2017-07-063-6/+7
|\ | | | | | | | | | | SkipInstall Fix merge conflicts from GNUInstallDirs merge to master.
| * use GNUInstallDirs from cmake to specify install paths.d3x0r2017-07-063-6/+6
| | | | | | | | Primarily this is to select whether 'lib64' or 'lib' is used on linux type systems.
* | Add option LIBRESSL_SKIP_INSTALLd3x0r2017-07-063-8/+16
|/ | | | | | | | Internally LIBRESSL_SKIP_INSTALL, if not set becomes ENABLE_LIBRESSL_INSTALL so this by default is enabled. defining LIBRESSL_SKIP_INSTALL before hand will disable all install() rules. This is useful if another project includes and links to this statically. I chose to add a prefix to avoid potential name collision because the options are cached globally. If the installation is skipped, maybe it should also disable building apps? I didn't do that.
* add nc(1) manpage to install if enabledBrent Cook2017-04-121-0/+1
|
* Copy libc compat files rather than adding into the repositorykinichiro2017-01-282-380/+0
| | | | | - remove the CP_LIBC files from repo - move tests/memmem.c to tests/compat/
* skip building ocspcheck on MSCVBrent Cook2017-01-271-0/+4
|
* Copy openbsd library file every time rather than statically checking inkinichiro2017-01-273-267/+0
|
* Add inet_ntop and memmem for ocspcheckkinichiro2017-01-264-0/+289
|
* Move strsep.c to crypto/compat/ and add ocspcheck build to CMakekinichiro2017-01-251-0/+1
|
* initial ocspcheck integrationBrent Cook2017-01-243-1/+40
|
* fix static mingw builds, platform LDADD needs to come at the endBrent Cook2017-01-092-4/+4
|
* remove unneeded slash after DESTDIRkinichiro2016-10-301-4/+4
|
* remove cmsBrent Cook2016-09-142-2/+0
|
* remove DEFAULT_CA_FILE patch, since libtls handles this by defaultBrent Cook2016-08-131-5/+0
|
* Revert "remove DEFAULT_CA_FILE patch, since libtls handles this by default"Brent Cook2016-07-091-0/+5
| | | | This reverts commit 30adf9c06e8d3d7ac9e89f4b2b290567bcafa75c.
* remove DEFAULT_CA_FILE patch, since libtls handles this by defaultBrent Cook2016-07-071-5/+0
|
* Land #192, fix fix ld warning "attempted multiple inclusion of file" on SolarisBrent Cook2016-05-022-5/+5
|\
| * fix ld warning "attempted multiple inclusion of file" on Solariskinichiro2016-04-212-5/+5
| | | | | | | | - To avoid ld warning on Solaris, use abs_top_builddir in Makefile.am
* | add cmake build optionskinichiro2016-04-142-0/+14
|/ | | | | | | | | | | | | - 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"
* modify cmake to build nckinichiro2016-04-095-80/+139
| | | | | | | | | | | - 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
* allow optionally installing nc(1) with '--enable-nc'Brent Cook2015-12-071-0/+4
|
* fixup cert.pem path override for libtls, add for nc(1)Brent Cook2015-12-071-0/+5
| | | | this also fixes the formatting of help for nc(1)
* ensure we don't pass a negative int to ctypes functionsBrent Cook2015-11-231-3/+3
| | | | | Some implementations, e.g. cygwin, use a table lookup that can cast a char to a negative array offset.
* update apps.h includeBrent Cook2015-10-181-1/+1
|