2021-02-25 11:40:08 +01:00
|
|
|
# Maintained branches
|
|
|
|
|
2022-01-05 19:46:17 +01:00
|
|
|
At any point in time, we have a number of maintained branches, currently consisting of:
|
2021-02-25 11:40:08 +01:00
|
|
|
|
2022-03-31 15:07:01 +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:07:01 +02:00
|
|
|
- The [`development`](https://github.com/Mbed-TLS/mbedtls/tree/development) branch:
|
2021-07-01 10:20:13 +02:00
|
|
|
this is where the current major version of Mbed TLS (version 3.x) is being
|
2021-04-23 17:43:13 +02:00
|
|
|
prepared. It has API changes that make it incompatible with Mbed TLS 2.x,
|
|
|
|
as well as all the new features and bug fixes and security fixes.
|
2022-01-05 19:46:17 +01:00
|
|
|
- One or more long-time support (LTS) branches: these only get bug fixes and
|
|
|
|
security fixes. Currently, the only supported LTS branch is:
|
2022-03-31 15:07:01 +02:00
|
|
|
[`mbedtls-2.28`](https://github.com/Mbed-TLS/mbedtls/tree/mbedtls-2.28).
|
2022-01-05 19:46:17 +01:00
|
|
|
- For a short time we also have the previous LTS, which has recently ended its
|
|
|
|
support period,
|
2022-03-31 15:07:01 +02:00
|
|
|
[`mbedtls-2.16`](https://github.com/Mbed-TLS/mbedtls/tree/mbedtls-2.16).
|
2022-01-05 19:46:17 +01:00
|
|
|
This branch will move into the `archive` namespace around the time of
|
|
|
|
the next release.
|
|
|
|
|
|
|
|
We retain a number of historical branches, whose names are prefixed by `archive/`,
|
2022-03-31 15:07:01 +02:00
|
|
|
such as [`archive/mbedtls-2.7`](https://github.com/Mbed-TLS/mbedtls/tree/archive/mbedtls-2.7).
|
2022-01-05 19:46:17 +01:00
|
|
|
These branches will not receive any changes or updates.
|
2021-02-25 11:40:08 +01:00
|
|
|
|
|
|
|
We use [Semantic Versioning](https://semver.org/). In particular, we maintain
|
2021-06-08 15:33:53 +02:00
|
|
|
API compatibility in the `master` branch across minor version changes (e.g.
|
|
|
|
the API of 3.(x+1) is backward compatible with 3.x). We only break API
|
|
|
|
compatibility on major version changes (e.g. from 3.x to 4.0). We also maintain
|
|
|
|
ABI compatibility within LTS branches; see the next section for details.
|
2021-02-25 11:40:08 +01:00
|
|
|
|
2022-06-20 18:48:52 +02:00
|
|
|
## Backwards Compatibility for application code
|
2021-02-25 11:40:08 +01:00
|
|
|
|
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.
|
|
|
|
|
2022-06-20 18:48:06 +02:00
|
|
|
Note that this guarantee only applies if you either use the default
|
|
|
|
compile-time configuration (`mbedtls/mbedtls_config.h`) or the same modified
|
|
|
|
compile-time configuration. Changing compile-time configuration options can
|
|
|
|
result in an incompatible API or ABI, altough features will generally not
|
|
|
|
affect independent features (for example, enabling or disabling a
|
|
|
|
cryptographic algorithm does not break code that does not use that
|
|
|
|
algorithm).
|
|
|
|
|
2021-06-07 20:44:47 +02:00
|
|
|
Note that new releases of Mbed TLS may extend the API. Here are some
|
|
|
|
examples of changes that are common in minor releases of Mbed TLS, and are
|
|
|
|
not considered API compatibility breaks:
|
2021-06-01 22:29:06 +02:00
|
|
|
|
|
|
|
* Adding or reordering fields in a structure or union.
|
|
|
|
* Removing a field from a structure, unless the field is documented as public.
|
|
|
|
* Adding items to an enum.
|
2021-06-07 20:44:47 +02:00
|
|
|
* Returning an error code that was not previously documented for a function
|
|
|
|
when a new error condition arises.
|
|
|
|
* Changing which error code is returned in a case where multiple error
|
|
|
|
conditions apply.
|
|
|
|
* Changing the behavior of a function from failing to succeeding, when the
|
|
|
|
change is a reasonable extension of the current behavior, i.e. the
|
|
|
|
addition of a new feature.
|
2021-06-01 22:29:06 +02:00
|
|
|
|
2021-06-07 20:42:40 +02:00
|
|
|
There are rare exceptions where we break API compatibility: 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
|
|
|
|
2022-06-20 18:48:52 +02:00
|
|
|
## Backward compatibility for the key store
|
|
|
|
|
|
|
|
We maintain backward compatibility with previous versions of versions of the
|
|
|
|
PSA Crypto persistent storage since Mbed TLS 2.25.0, provided that the
|
|
|
|
storage backend (PSA ITS implementation) is configured in a compatible way.
|
|
|
|
We intend to maintain this backward compatibilty throughout a major version
|
|
|
|
of Mbed TLS (for example, all Mbed TLS 3.y versions will be able to read
|
|
|
|
keys written under any Mbed TLS 3.x with x < y).
|
|
|
|
|
|
|
|
Mbed TLS 3.x can also read keys written by Mbed TLS 2.25.0 through 2.28.x
|
|
|
|
LTS, but future major version upgrades (for example from 2.28.x/3.x to 4.y)
|
|
|
|
may require the use of an upgrade tool.
|
|
|
|
|
2021-06-07 20:42:50 +02:00
|
|
|
## Long-time support branches
|
|
|
|
|
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
|
2021-11-15 14:54:59 +01: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:07:01 +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)
|
2022-01-05 19:46:17 +01:00
|
|
|
maintained until at least the end of 2024, see
|
2022-03-31 15:07:01 +02:00
|
|
|
<https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.28.0>.
|
2021-02-25 11:40:08 +01:00
|
|
|
|
|
|
|
Users are urged to always use the latest version of a maintained branch.
|