Go to file
Matt Caswell d2a33efd39 Ensure we properly release DTLS buffered app data records
If we read an app data record before we have read the Finished we buffer
it. Once we've read it we need to make sure we've properly released it
otherwise we will attempt to read it again (and this time there will be
no data in it).

Fixes #27316

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/27543)
2025-05-08 14:06:11 -04:00
.ctags.d
.github Run tests nightly on riscv64 runner 2025-05-02 13:45:06 +02:00
Configurations Removed references to vxworks because it is an unsupported platform 2025-05-05 16:13:35 +02:00
VMS
apps Utility for dumping OpenSSL config file 2025-05-08 11:05:42 +10:00
cloudflare-quiche@7ab6a55cfe
crypto crypto/provider_conf.c: Fix possible memory leak 2025-05-07 11:49:06 +02:00
demos sslecho: Rename bool to flag to avoid C23 conflict 2025-04-30 11:48:01 +02:00
dev Point to new docs location 2025-04-15 15:56:16 +01:00
doc configutl documentation 2025-05-08 11:05:42 +10:00
engines Relax absolut path checking in our 'file' scheme implementation 2025-04-25 16:11:25 +02:00
exporters exporters for pkg-config: align with the changes for CMake 2024-08-30 05:20:48 +02:00
external/perl
fuzz Copyright year updates 2025-03-12 13:35:59 +00:00
gost-engine@74b1f4fddb update to latest version of gost-engine 2025-04-09 14:04:09 -04:00
include params: don't build removed file 2025-05-07 11:47:24 +02:00
krb5@784c38f50e Update krb5 to latest master to pick up CVE fixes 2024-08-14 17:57:43 +02:00
ms Copyright year updates 2024-04-09 13:43:26 +02:00
oqs-provider@7bc597c04b Update oqsprovider git submodule and start testing with it again 2025-02-21 17:17:54 +01:00
os-dep Add an Apple privacy info file for OpenSSL 2024-04-26 14:01:36 +02:00
pkcs11-provider@898b1079d9 Update pkcs11-provider submodule (898b107) 2025-03-03 09:35:16 +01:00
providers Align PBKDF2 indicator behavior with other implementations 2025-05-07 12:01:29 +02:00
pyca-cryptography@0e855f9526 update pyca-cryptography to latest master 2025-04-01 09:23:02 -04:00
python-ecdsa@4096fa0171 update tlsfuzzer to new version 2024-10-21 11:40:16 +01:00
ssl Ensure we properly release DTLS buffered app data records 2025-05-08 14:06:11 -04:00
test test/bio_comp_test.c: Initialize pointer to avoid undefined behavior 2025-05-08 13:47:01 +02:00
tlsfuzzer@61f45d9701 update tlsfuzzer to new version 2024-10-21 11:40:16 +01:00
tlslite-ng@77ef321dde update tlsfuzzer to new version 2024-10-21 11:40:16 +01:00
tools
util params: update generation script to support multiple TRIE output 2025-05-07 11:47:24 +02:00
wycheproof@aca4706625 update wycheproof submodule to latest master 2025-04-01 09:23:02 -04:00
.git-blame-ignore-revs
.gitattributes More polish and renamed codec tests 2025-02-14 10:50:58 +01:00
.gitignore Delete include/openssl/asn1_mac.h 2025-03-01 09:27:54 -05:00
.gitmodules test: Add external test for pkcs11-provider 2024-10-21 11:43:03 +01:00
ACKNOWLEDGEMENTS.md
AUTHORS.md EVP_DecodeUpdate() should not produce padding zeros to the decoded output (Fixes #26677) 2025-02-27 17:38:57 +00:00
CHANGES.md CHANGES/NEWS entries for configutl 2025-05-08 11:05:42 +10:00
CODE-OF-CONDUCT.md
CONTRIBUTING.md Use parent directory instead of index.html 2024-08-07 04:57:29 -04:00
Configure Disable unterminated-string-initialization in strict-warnings 2025-05-02 13:43:04 +02:00
HACKING.md
INSTALL.md Make RFC8422 deprecated TLS EC curves disablable 2025-02-26 12:14:02 +01:00
LICENSE.txt
NEWS.md CHANGES/NEWS entries for configutl 2025-05-08 11:05:42 +10:00
NOTES-ANDROID.md
NOTES-ANSI.md Add installation documentation and notes on ANSI C and POSIX 2024-05-22 09:59:32 +02:00
NOTES-DJGPP.md
NOTES-NONSTOP.md Build: Fix circular object deps with old GCC 2024-09-17 07:19:33 +02:00
NOTES-PERL.md
NOTES-POSIX.md Add installation documentation and notes on ANSI C and POSIX 2024-05-22 09:59:32 +02:00
NOTES-UNIX.md
NOTES-VALGRIND.md Updated list formatting, added hyperlinks, modernized syntax 2024-04-18 11:02:29 +02:00
NOTES-VMS.md
NOTES-WINDOWS.md doc: fix OSSL_WINCTX spelling windows notes 2025-02-28 15:21:12 +01:00
README-ENGINES.md
README-FIPS.md Point to new docs location 2025-04-15 15:56:16 +01:00
README-PROVIDERS.md Point to new docs location 2025-04-15 15:56:16 +01:00
README-QUIC.md Point to new docs location 2025-04-15 15:56:16 +01:00
README.md Point to new docs location 2025-04-15 15:56:16 +01:00
SUPPORT.md
VERSION.dat Prepare for 3.6 2025-03-12 13:37:30 +00:00
build.info AEAD params: generate a TRIE to decode AEAD cipher parameter names 2025-05-07 11:47:24 +02:00
config
config.com
configdata.pm.in die() in .tmpl file should not be silently ignored. 2024-11-29 17:07:40 +01:00
funding.json Fix a funding.json error 2025-01-07 17:18:36 +00:00

README.md

Welcome to the OpenSSL Project

openssl logo

github actions ci badge Nightly OS Zoo ci badge Provider Compatibility Quic Interop Daily checks

OpenSSL is a robust, commercial-grade, full-featured Open Source Toolkit for the TLS (formerly SSL), DTLS and QUIC protocols.

The protocol implementations are based on a full-strength general purpose cryptographic library, which can also be used stand-alone. Also included is a cryptographic module validated to conform with FIPS standards.

OpenSSL is descended from the SSLeay library developed by Eric A. Young and Tim J. Hudson.

The official Home Page of the OpenSSL Project is www.openssl.org.

Table of Contents

Overview

The OpenSSL toolkit includes:

  • libssl an implementation of all TLS protocol versions up to TLSv1.3 (RFC 8446), DTLS protocol versions up to DTLSv1.2 (RFC 6347) and the QUIC version 1 protocol (RFC 9000).

  • libcrypto a full-strength general purpose cryptographic library. It constitutes the basis of the TLS implementation, but can also be used independently.

  • openssl the OpenSSL command line tool, a swiss army knife for cryptographic tasks, testing and analyzing. It can be used for

    • creation of key parameters
    • creation of X.509 certificates, CSRs and CRLs
    • calculation of message digests
    • encryption and decryption
    • SSL/TLS/DTLS and client and server tests
    • QUIC client tests
    • handling of S/MIME signed or encrypted mail
    • and more...

Download

For Production Use

Source code tarballs of the official releases can be downloaded from openssl-library.org/source/. The OpenSSL project does not distribute the toolkit in binary form.

However, for a large variety of operating systems precompiled versions of the OpenSSL toolkit are available. In particular, on Linux and other Unix operating systems, it is normally recommended to link against the precompiled shared libraries provided by the distributor or vendor.

We also maintain a list of third parties that produce OpenSSL binaries for various Operating Systems (including Windows) on the Binaries page on our wiki.

For Testing and Development

Although testing and development could in theory also be done using the source tarballs, having a local copy of the git repository with the entire project history gives you much more insight into the code base.

The main OpenSSL Git repository is private. There is a public GitHub mirror of it at github.com/openssl/openssl, which is updated automatically from the former on every commit.

A local copy of the Git repository can be obtained by cloning it from the GitHub mirror using

git clone https://github.com/openssl/openssl.git

If you intend to contribute to OpenSSL, either to fix bugs or contribute new features, you need to fork the GitHub mirror and clone your public fork instead.

git clone https://github.com/yourname/openssl.git

This is necessary because all development of OpenSSL nowadays is done via GitHub pull requests. For more details, see Contributing.

Build and Install

After obtaining the Source, have a look at the INSTALL file for detailed instructions about building and installing OpenSSL. For some platforms, the installation instructions are amended by a platform specific document.

Specific notes on upgrading to OpenSSL 3.x from previous versions can be found in the ossl-guide-migration(7ossl) manual page.

Documentation

README Files

There are some README.md files in the top level of the source distribution containing additional information on specific topics.

The OpenSSL Guide

There are some tutorial and introductory pages on some important OpenSSL topics within the OpenSSL Guide.

Manual Pages

The manual pages for the master branch and all current stable releases are available online.

Demos

There are numerous source code demos for using various OpenSSL capabilities in the demos subfolder.

Wiki

There is a GitHub Wiki which is currently not very active.

License

OpenSSL is licensed under the Apache License 2.0, which means that you are free to get and use it for commercial and non-commercial purposes as long as you fulfill its conditions.

See the LICENSE.txt file for more details.

Support

There are various ways to get in touch. The correct channel depends on your requirement. See the SUPPORT file for more details.

Contributing

If you are interested and willing to contribute to the OpenSSL project, please take a look at the CONTRIBUTING file.

Legalities

A number of nations restrict the use or export of cryptography. If you are potentially subject to such restrictions, you should seek legal advice before attempting to develop or distribute cryptographic code.

Copyright

Copyright (c) 1998-2025 The OpenSSL Project Authors

Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson

All rights reserved.