Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Library:LibreSSL

From ReverseEngineering.wiki
Library
Developer OpenBSD project
License ISC and OpenSSL/SSLeay licenses
Website https://www.libressl.org
On this wiki Facts · Code · Notes · Topics

OpenBSD's 2014 fork of OpenSSL (ISC and OpenSSL licenses) with libcrypto, libssl and libtls; recognizable by LIBRESSL_VERSION_TEXT, a pinned OPENSSL_VERSION_NUMBER and OpenBSD-specific functions.

Overview

LibreSSL is OpenBSD's cleaned-up fork of Library:OpenSSL. The portable distribution (libressl/portable) builds it on other systems; sources track the OpenBSD tree (libressl/openbsd, src/lib/libcrypto, libssl, libtls). See Technique:Identifying cryptographic libraries.

Identification

  • Version macros: opensslv.h defines LIBRESSL_VERSION_NUMBER (0x4040000f for 4.4.0) and LIBRESSL_VERSION_TEXT "LibreSSL 4.4.0"; OPENSSL_VERSION_NUMBER is pinned to 0x20000000L and OPENSSL_VERSION_TEXT equals the LibreSSL text; SHLIB_VERSION_NUMBER is "1.0.0". Fact:LibreSSL/identification/Version macros.
  • Strings: SSLeay_version() returns OPENSSL_VERSION_TEXT ("LibreSSL x.y.z") and, for the other queries, "built on: date not available" and "compiler: information not available" (crypto_legacy.c). OpenSSL_version and OpenSSL_version_num are exported too (Symbols.list).
  • Shared library numbers: shlib_version gives libcrypto major=57 on master; sonames change with ABI bumps. src/lib/libcrypto/shlib_version has major=57, minor=2 at this commit; mapping of older soname numbers to releases was not read.
  • Extras: libtls (tls_init, tls_client, tls_config_*) ships with it. freezero, explicit_bzero and arc4random are OpenBSD libc functions and are not exported by libcrypto: none of the three appears in src/lib/libcrypto/Symbols.list (3263 lines, libressl/openbsd commit bc9483725c5815efb64b6d9acc52fc5fba139212), which has OPENSSL_cleanse instead, so their presence is no sign of LibreSSL in a libcrypto export table.

Code & repositories

  • https://github.com/libressl/portable @ 09864d4f9878a8432953a7a0fe34fa957dc42b5f · license: ISC (declared by the contributor for the files used; GitHub reports BSD-2-Clause (read from COPYING; GitHub's detector did not classify it) for the repository)
    LibreSSL portable build (ChangeLog, VERSION); sources are imported from the OpenBSD tree.
    Tested on: source read, not run: ChangeLog and tree read; not built. · checked 2026-10-18; last activity 2026-10-16; Note: the latest release ships binaries; the wiki links only the source, never the binaries
  • https://github.com/libressl/openbsd @ bc9483725c5815efb64b6d9acc52fc5fba139212 · license: ISC (declared by the contributor; GitHub's detector did not recognize a license file)
    LibreSSL's copy of the OpenBSD tree: src/lib/libcrypto/opensslv.h, crypto_legacy.c, Symbols.list, shlib_version.
    Tested on: source read, not run: Source read at this commit; not built. · checked 2026-10-18; last activity 2026-10-16

Pitfalls

  • The pinned OPENSSL_VERSION_NUMBER means feature checks compiled against LibreSSL headers see 2.0.0, not an OpenSSL release.
  • Use ChangeLog in libressl/portable to date features; the markers per release were not tabulated here.