2021-02-25 11:40:08 +01:00
|
|
|
# Maintained branches
|
|
|
|
|
|
|
|
At any point in time, we have a number of maintained branches consisting of:
|
|
|
|
|
2022-03-31 15:27:24 +02:00
|
|
|
- The [`master`](https://github.com/Mbed-TLS/mbedtls/tree/master) branch:
|
2021-03-16 12:05:16 +01:00
|
|
|
this always contains the latest release, including all publicly available
|
|
|
|
security fixes.
|
2022-03-31 15:27:24 +02:00
|
|
|
- The [`development`](https://github.com/Mbed-TLS/mbedtls/tree/development) branch:
|
2021-03-16 12:04:44 +01:00
|
|
|
this is where new features land,
|
|
|
|
as well as bug fixes and security fixes.
|
|
|
|
- One or more long-time support (LTS) branches:
|
|
|
|
these only get bug fixes and security fixes.
|
2021-02-25 11:40:08 +01:00
|
|
|
|
|
|
|
We use [Semantic Versioning](https://semver.org/). In particular, we maintain
|
2021-03-16 12:05:16 +01:00
|
|
|
API compatibility in the `master` branch between major version changes. We
|
2021-02-25 11:40:08 +01:00
|
|
|
also maintain ABI compatibility within LTS branches; see the next section for
|
|
|
|
details.
|
|
|
|
|
|
|
|
## Backwards Compatibility
|
|
|
|
|
2021-03-16 12:04:44 +01:00
|
|
|
We maintain API compatibility in released versions of Mbed TLS. If you have
|
|
|
|
code that's working and secure with Mbed TLS x.y.z and does not rely on
|
|
|
|
undocumented features, then you should be able to re-compile it without
|
|
|
|
modification with any later release x.y'.z' with the same major version
|
|
|
|
number, and your code will still build, be secure, and work.
|
|
|
|
|
|
|
|
There are rare exceptions: code that was relying on something that became
|
|
|
|
insecure in the meantime (for example, crypto that was found to be weak) may
|
|
|
|
need to be changed. In case security comes in conflict with backwards
|
|
|
|
compatibility, we will put security first, but always attempt to provide a
|
|
|
|
compatibility option.
|
2021-02-25 11:40:08 +01:00
|
|
|
|
|
|
|
For the LTS branches, additionally we try very hard to also maintain ABI
|
|
|
|
compatibility (same definition as API except with re-linking instead of
|
|
|
|
re-compiling) and to avoid any increase in code size or RAM usage, or in the
|
|
|
|
minimum version of tools needed to build the code. The only exception, as
|
|
|
|
before, is in case those goals would conflict with fixing a security issue, we
|
|
|
|
will put security first but provide a compatibility option. (So far we never
|
|
|
|
had to break ABI compatibility in an LTS branch, but we occasionally had to
|
|
|
|
increase code size for a security fix.)
|
|
|
|
|
2021-02-25 12:34:58 +01:00
|
|
|
For contributors, see the [Backwards Compatibility section of
|
2022-03-31 15:27:24 +02:00
|
|
|
CONTRIBUTING](CONTRIBUTING.md#backwards-compatibility).
|
2021-02-25 12:34:58 +01:00
|
|
|
|
|
|
|
## Current Branches
|
2021-02-25 11:40:08 +01:00
|
|
|
|
|
|
|
The following branches are currently maintained:
|
|
|
|
|
2022-03-31 15:27:24 +02:00
|
|
|
- [master](https://github.com/Mbed-TLS/mbedtls/tree/master)
|
|
|
|
- [`development`](https://github.com/Mbed-TLS/mbedtls/)
|
|
|
|
- [`mbedtls-2.28`](https://github.com/Mbed-TLS/mbedtls/tree/mbedtls-2.28)
|
2021-12-13 19:47:16 +01:00
|
|
|
maintained until at least the end of 2024.
|
2021-02-25 11:40:08 +01:00
|
|
|
|
|
|
|
Users are urged to always use the latest version of a maintained branch.
|