LibreSSL Portable itself. This includes the build scaffold and compatibility layer that builds portable LibreSSL from the OpenBSD source code. Pull requests or patches sent to tech@openbsd.org are welcome.
C CMake Makefile Shell M4 Batchfile
Permalink
Failed to load latest commit information.
apps Copy libc compat files rather than adding into the repository Jan 27, 2017
crypto Fix SYSerr and BIOerr in b_win.c Jan 31, 2017
include Move S_IRGRP and S_IROTH from fcntl.h to sys/stat.h Jan 27, 2017
libtls-standalone Portable code part for callbacks in accept/connect Jun 28, 2016
m4 Add inet_ntop and memmem for ocspcheck Jan 26, 2017
man update manpage links Jan 27, 2017
patches Add definition of ssize_t to tls.h for Windows Feb 13, 2017
scripts adjust mingw package name Nov 13, 2016
ssl update for death of s23* Jan 27, 2017
tests Copy libc compat files rather than adding into the repository Jan 27, 2017
tls Move strsep.c to crypto/compat/ and add ocspcheck build to CMake Jan 25, 2017
.gitignore ignore mandoc db, compat files Feb 7, 2017
.travis.yml update to trusty distro, remove 3rd-party PPAs for testing Nov 13, 2016
CMakeLists.txt Add export symbol support to CMake Jan 17, 2017
ChangeLog update Changelog Feb 1, 2017
Makefile.am Add export symbol support to CMake Jan 17, 2017
Makefile.am.common disable symbol hiding for now Nov 5, 2016
OPENBSD_BRANCH tie master libressl branch to openbsd master Aug 1, 2014
README.md update NetBSD recommendation Jun 7, 2016
README.windows update messages about Cygwin support Sep 7, 2015
autogen.sh -path isn't really needed for perms fixup, and not supported everywhere Jan 4, 2016
check-release.sh add openbsd tag sync script + release verifier Sep 10, 2015
cmake_export_symbol.cmake Add export symbol support to CMake for libcrypto Jan 18, 2017
cmake_uninstall.cmake.in add cmake uninstall functionality Apr 9, 2016
config Add an OpenSSL compatible ./config wrapper Oct 31, 2014
configure.ac initial ocspcheck integration Jan 24, 2017
dist-win.sh set windows binary OPENSSLDIR to something plausible Mar 21, 2016
dist.sh ensure headers are sanitized before release Sep 10, 2015
gen-coverage-report.sh add branch coverage, skip coverage check of tests themselves May 7, 2015
gen-openbsd-tags.sh add openbsd tag sync script + release verifier Sep 10, 2015
libcrypto.pc.in pc: add platform-specific libs to Libs.private May 31, 2016
libressl.pub Add the public signing key so it can be fetched from github Jul 15, 2014
libssl.pc.in pc: add platform-specific libs to Libs.private May 31, 2016
libtls.pc.in pc: add platform-specific libs to Libs.private May 31, 2016
openssl.pc.in add platform libraries to libcompat's LIBADD list Jul 12, 2014
tap-driver.sh include tap-driver.sh in the source repo Oct 18, 2015
update.sh Copy libc compat files rather than adding into the repository Jan 27, 2017

README.md

LibreSSL image

Official portable version of LibreSSL

Build Status

LibreSSL is a fork of OpenSSL 1.0.1g developed by the OpenBSD project. Our goal is to modernize the codebase, improve security, and apply best practice development processes from OpenBSD.

Compatibility with OpenSSL:

LibreSSL is API compatible with OpenSSL 1.0.1, but does not yet include all new APIs from OpenSSL 1.0.2 and later. LibreSSL also includes APIs not yet present in OpenSSL. The current common API subset is OpenSSL 1.0.1.

LibreSSL is not ABI compatible with any release of OpenSSL, or necessarily earlier releases of LibreSSL. You will need to relink your programs to LibreSSL in order to use it, just as in moving between major versions of OpenSSL. LibreSSL's installed library version numbers are incremented to account for ABI and API changes.

Compatibility with other operating systems:

While primarily developed on and taking advantage of APIs available on OpenBSD, the LibreSSL portable project attempts to provide working alternatives for other operating systems, and assists with improving OS-native implementations where possible.

At the time of this writing, LibreSSL is know to build and work on:

  • Linux (kernel 3.17 or later recommended)
  • FreeBSD (tested with 9.2 and later)
  • NetBSD (7.0 or later recommended)
  • HP-UX (11i)
  • Solaris (11 and later preferred)
  • Mac OS X (tested with 10.8 and later)
  • AIX (5.3 and later)

LibreSSL also supports the following Windows environments:

  • Microsoft Windows (XP or higher, x86 and x64)
  • Wine (32-bit and 64-bit)
  • Builds with Mingw-w64, Cygwin, and Visual Studio

Official release tarballs are available at your friendly neighborhood OpenBSD mirror in directory LibreSSL, although we suggest that you use a mirror.

The LibreSSL portable build framework is also mirrored in Github.

Please report bugs either to the public libressl@openbsd.org mailing list, or to the github issue tracker

Severe vulnerabilities or bugs requiring coordination with OpenSSL can be sent to the core team at libressl-security@openbsd.org.

Prerequisites when building from git

If you have checked this source using Git, follow these initial steps to prepare the source tree for building:

  1. Ensure you have the following packages installed: automake, autoconf, git, libtool, perl, pod2man
  2. Run './autogen.sh' to prepare the source tree for building or run './dist.sh' to prepare a tarball.

Building LibreSSL

Once you have a source tree from Git or FTP, run these commands to build and install the package on most systems:

./configure   # see ./configure --help for configuration options
make check    # runs builtin unit tests
make install  # set DESTDIR= to install to an alternate location

If you wish to use the CMake build system, use these commands:

mkdir build
cd build
cmake ..
make
make test

For faster builds, you can use Ninja as well:

mkdir build-ninja
cd build-ninja
cmake -G"Ninja" ..
ninja
ninja test

OS specific build information:

HP-UX (11i)

Set the UNIX_STD environment variable to '2003' before running 'configure' in order to build with the HP C/aC++ compiler. See the "standards(5)" man page for more details.

export UNIX_STD=2003
./configure
make

Windows - Mingw-w64

LibreSSL builds against relatively recent versions of Mingw-w64, not to be confused with the original mingw.org project. Mingw-w64 3.2 or later should work. See README.windows for more information

Windows - Visual Studio

LibreSSL builds using the CMake target "Visual Studio 12 2013", and may build against older/newer targets as well. To generate a Visual Studio project, install CMake, enter the LibreSSL source directory and run:

 mkdir build-vs2013
 cd build-vs2013
 cmake -G"Visual Studio 12 2013" ..

This will generate a LibreSSL.sln file that you can incorporate into other projects or build by itself.