libressl/3.9.1

LibreSSL is a version of the TLS/crypto stack forked from OpenSSL in 2014, with goals of modernizing the codebase, improving security, and applying best practice development processes.
Recipe info
BSD, OpenSSL, ISC
2024-04-01

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
libressl/3.9.1

Using libressl

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
libressl/3.9.1
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("libressl/3.9.1")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): LibreSSL
  • CMake target name(s): libressl::libressl
  • ssl => LibreSSL::SSL
    tls => LibreSSL::TLS
    crypto => LibreSSL::Crypto
    
  • pkg-config file name(s): openssl.pc
  • ssl => libssl.pc
    tls => libtls.pc
    crypto => libcrypto.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(LibreSSL REQUIRED)
# ...
target_link_libraries(YOUR_TARGET libressl::libressl)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the libressl homepage listed above:

#include "openssl/aes.h"
#include "openssl/asn1.h"
#include "openssl/asn1t.h"
#include "openssl/bio.h"
#include "openssl/blowfish.h"
#include "openssl/bn.h"
#include "openssl/buffer.h"
#include "openssl/camellia.h"
#include "openssl/cast.h"
#include "openssl/chacha.h"
#include "openssl/cmac.h"
#include "openssl/cms.h"
#include "openssl/comp.h"
#include "openssl/conf.h"
#include "openssl/conf_api.h"
#include "openssl/crypto.h"
#include "openssl/ct.h"
#include "openssl/curve25519.h"
#include "openssl/des.h"
#include "openssl/dh.h"
#include "openssl/dsa.h"
#include "openssl/dtls1.h"
#include "openssl/ec.h"
#include "openssl/ecdh.h"
#include "openssl/ecdsa.h"
#include "openssl/engine.h"
#include "openssl/err.h"
#include "openssl/evp.h"
#include "openssl/hkdf.h"
#include "openssl/hmac.h"
#include "openssl/idea.h"
#include "openssl/kdf.h"
#include "openssl/lhash.h"
#include "openssl/md4.h"
#include "openssl/md5.h"
#include "openssl/modes.h"
#include "openssl/obj_mac.h"
#include "openssl/objects.h"
#include "openssl/ocsp.h"
#include "openssl/opensslconf.h"
#include "openssl/opensslfeatures.h"
#include "openssl/opensslv.h"
#include "openssl/ossl_typ.h"
#include "openssl/pem.h"
#include "openssl/pem2.h"
#include "openssl/pkcs12.h"
#include "openssl/pkcs7.h"
#include "openssl/poly1305.h"
#include "openssl/posix_time.h"
#include "openssl/rand.h"
#include "openssl/rc2.h"
#include "openssl/rc4.h"
#include "openssl/ripemd.h"
#include "openssl/rsa.h"
#include "openssl/safestack.h"
#include "openssl/sha.h"
#include "openssl/sm3.h"
#include "openssl/sm4.h"
#include "openssl/srtp.h"
#include "openssl/ssl.h"
#include "openssl/ssl2.h"
#include "openssl/ssl23.h"
#include "openssl/ssl3.h"
#include "openssl/stack.h"
#include "openssl/tls1.h"
#include "openssl/ts.h"
#include "openssl/txt_db.h"
#include "openssl/ui.h"
#include "openssl/ui_compat.h"
#include "openssl/whrlpool.h"
#include "openssl/x509.h"
#include "openssl/x509_vfy.h"
#include "openssl/x509v3.h"
#include "tls.h"