Manuel Pégourié-Gonnard | e699739 | 2021-02-25 11:40:08 +0100 | [diff] [blame] | 1 | # Maintained branches |
| 2 | |
| 3 | At any point in time, we have a number of maintained branches consisting of: |
| 4 | |
| 5 | - the development branch: this is where new features lands, as well as bug |
| 6 | fixes and security fixes |
| 7 | - one or more LTS branches: these only get bug fixes and security fixes. |
| 8 | |
| 9 | We use [Semantic Versioning](https://semver.org/). In particular, we maintain |
| 10 | API compatibility in the development branch between major version changes. We |
| 11 | also maintain ABI compatibility within LTS branches; see the next section for |
| 12 | details. |
| 13 | |
| 14 | ## Backwards Compatibility |
| 15 | |
| 16 | If you have code that's working and secure with Mbed TLS x.y.z, then you |
| 17 | should be able to re-compile it without modification with any later release |
| 18 | x.y'.z' with the same major version number, and your code will still build, be |
| 19 | secure, and work - unless it was relying on something that became insecure in |
| 20 | the meantime (for example, crypto that was found to be weak). In case security |
| 21 | comes in conflict with backwards compatibility, we will put security first, |
| 22 | but always attempt to provide a compatibility option. |
| 23 | |
| 24 | For the LTS branches, additionally we try very hard to also maintain ABI |
| 25 | compatibility (same definition as API except with re-linking instead of |
| 26 | re-compiling) and to avoid any increase in code size or RAM usage, or in the |
| 27 | minimum version of tools needed to build the code. The only exception, as |
| 28 | before, is in case those goals would conflict with fixing a security issue, we |
| 29 | will put security first but provide a compatibility option. (So far we never |
| 30 | had to break ABI compatibility in an LTS branch, but we occasionally had to |
| 31 | increase code size for a security fix.) |
| 32 | |
Manuel Pégourié-Gonnard | 80c02af | 2021-02-25 12:34:58 +0100 | [diff] [blame^] | 33 | For contributors, see the [Backwards Compatibility section of |
| 34 | CONTRIBUTING](CONTRIBUTING.md#cackwords-compatibility). |
| 35 | |
| 36 | ## Current Branches |
Manuel Pégourié-Gonnard | e699739 | 2021-02-25 11:40:08 +0100 | [diff] [blame] | 37 | |
| 38 | The following branches are currently maintained: |
| 39 | |
Manuel Pégourié-Gonnard | 80c02af | 2021-02-25 12:34:58 +0100 | [diff] [blame^] | 40 | - [development](https://github.com/ARMmbed/mbedtls/) |
| 41 | - [mbedtls-2.16](https://github.com/ARMmbed/mbedtls/tree/mbedtls-2.16) |
| 42 | maintained until at least the end of 2021, see |
Manuel Pégourié-Gonnard | e699739 | 2021-02-25 11:40:08 +0100 | [diff] [blame] | 43 | <https://tls.mbed.org/tech-updates/blog/announcing-lts-branch-mbedtls-2.16> |
Manuel Pégourié-Gonnard | 80c02af | 2021-02-25 12:34:58 +0100 | [diff] [blame^] | 44 | - [mbedtls-2.7](https://github.com/ARMmbed/mbedtls/tree/mbedtls-2.7) - end of life in March 2021! |
Manuel Pégourié-Gonnard | e699739 | 2021-02-25 11:40:08 +0100 | [diff] [blame] | 45 | |
| 46 | Users are urged to always use the latest version of a maintained branch. |