Skip to content

Commit fceaf68

Browse files
committed
replace vendor directory with mbedtls-2.28.0
1 parent cef4e69 commit fceaf68

File tree

360 files changed

+38626
-17872
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

360 files changed

+38626
-17872
lines changed

mbedtls-sys/vendor/.github/issue_template.md

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
Note: This is just a template, so feel free to use/remove the unnecessary things
1+
_Note:_ this is a template, please remove the parts that are not
2+
applicable (these initial notes, and the "Bug" section for a Feature request
3+
and vice-versa).
24

5+
**Note:** to report a security vulnerability, see
6+
[SECURITY.md](../SECURITY.md). Please do not use github issues for
7+
vulnerabilities.
8+
9+
_Note:_ to get support, see [SUPPORT.md](../SUPPORT.md). Please do not use
10+
github issues for questions.
11+
12+
---------------------------------------------------------------
313
### Description
4-
- Type: Bug | Enhancement\Feature Request
14+
- Type: Bug | Enhancement / Feature Request
515
- Priority: Blocker | Major | Minor
616

717
---------------------------------------------------------------
@@ -28,14 +38,9 @@ Version:
2838
**Steps to reproduce**
2939

3040
----------------------------------------------------------------
31-
## Enhancement\Feature Request
32-
33-
**Justification - why does the library need this feature?**
41+
## Enhancement / Feature Request
3442

3543
**Suggested enhancement**
3644

37-
-----------------------------------------------------------------
38-
39-
## Question
45+
**Justification - why does the library need this feature?**
4046

41-
**Please first check for answers in the [Mbed TLS knowledge Base](https://tls.mbed.org/kb). If you can't find the answer you're looking for then please use the [Mbed TLS mailing list](https://lists.trustedfirmware.org/mailman/listinfo/mbed-tls)**

mbedtls-sys/vendor/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Testing
1818
Coverage
1919
*.gcno
2020
*.gcda
21+
coverage-summary.txt
2122

2223
# generated by scripts/memory.sh
2324
massif-*
@@ -48,6 +49,9 @@ massif-*
4849
# Generated documentation:
4950
/apidoc
5051

52+
# PSA Crypto compliance test repo, cloned by test_psa_compliance.py
53+
/psa-arch-tests
54+
5155
# Editor navigation files:
5256
/GPATH
5357
/GRTAGS

mbedtls-sys/vendor/.travis.yml

+5-18
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,25 @@ jobs:
1414
- graphviz
1515
- gcc-arm-none-eabi
1616
- libnewlib-arm-none-eabi
17+
- gcc-arm-linux-gnueabi
18+
- libc6-dev-armel-cross
1719
language: python # Needed to get pip for Python 3
1820
python: 3.5 # version from Ubuntu 16.04
1921
install:
20-
- pip install mypy==0.780 pylint==2.4.4
22+
- scripts/min_requirements.py
2123
script:
2224
- tests/scripts/all.sh -k 'check_*'
2325
- tests/scripts/all.sh -k test_default_out_of_box
24-
- tests/scripts/test-ref-configs.pl
25-
- tests/scripts/all.sh -k build_arm_none_eabi_gcc_arm5vte build_arm_none_eabi_gcc_m0plus
26+
- tests/scripts/all.sh -k test_ref_configs
27+
- tests/scripts/all.sh -k build_arm_linux_gnueabi_gcc_arm5vte build_arm_none_eabi_gcc_m0plus
2628

2729
- name: full configuration
2830
script:
2931
- tests/scripts/all.sh -k test_full_cmake_gcc_asan
3032

31-
- name: macOS
32-
os: osx
33-
compiler: clang
34-
script:
35-
- tests/scripts/all.sh -k test_default_out_of_box
36-
3733
- name: Windows
3834
os: windows
39-
before_install:
40-
- choco install python --version=3.5.4
41-
env:
42-
# Add the directory where the Choco package goes
43-
- PATH=/c/Python35:/c/Python35/Scripts:$PATH
4435
script:
45-
- type python; python --version
46-
- python scripts/generate_psa_constants.py
47-
# Logs appear out of sequence on Windows. Give time to catch up.
48-
- sleep 5
4936
- scripts/windows_msbuild.bat v141 # Visual Studio 2017
5037

5138
after_failure:

mbedtls-sys/vendor/BRANCHES.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Maintained branches
2+
3+
At any point in time, we have a number of maintained branches consisting of:
4+
5+
- The [`master`](https://github.com/ARMmbed/mbedtls/tree/master) branch:
6+
this always contains the latest release, including all publicly available
7+
security fixes.
8+
- The [`development`](https://github.com/ARMmbed/mbedtls/tree/development) branch:
9+
this is where new features land,
10+
as well as bug fixes and security fixes.
11+
- One or more long-time support (LTS) branches:
12+
these only get bug fixes and security fixes.
13+
14+
We use [Semantic Versioning](https://semver.org/). In particular, we maintain
15+
API compatibility in the `master` branch between major version changes. We
16+
also maintain ABI compatibility within LTS branches; see the next section for
17+
details.
18+
19+
## Backwards Compatibility
20+
21+
We maintain API compatibility in released versions of Mbed TLS. If you have
22+
code that's working and secure with Mbed TLS x.y.z and does not rely on
23+
undocumented features, then you should be able to re-compile it without
24+
modification with any later release x.y'.z' with the same major version
25+
number, and your code will still build, be secure, and work.
26+
27+
There are rare exceptions: code that was relying on something that became
28+
insecure in the meantime (for example, crypto that was found to be weak) may
29+
need to be changed. In case security comes in conflict with backwards
30+
compatibility, we will put security first, but always attempt to provide a
31+
compatibility option.
32+
33+
For the LTS branches, additionally we try very hard to also maintain ABI
34+
compatibility (same definition as API except with re-linking instead of
35+
re-compiling) and to avoid any increase in code size or RAM usage, or in the
36+
minimum version of tools needed to build the code. The only exception, as
37+
before, is in case those goals would conflict with fixing a security issue, we
38+
will put security first but provide a compatibility option. (So far we never
39+
had to break ABI compatibility in an LTS branch, but we occasionally had to
40+
increase code size for a security fix.)
41+
42+
For contributors, see the [Backwards Compatibility section of
43+
CONTRIBUTING](CONTRIBUTING.md#cackwords-compatibility).
44+
45+
## Current Branches
46+
47+
The following branches are currently maintained:
48+
49+
- [master](https://github.com/ARMmbed/mbedtls/tree/master)
50+
- [`development`](https://github.com/ARMmbed/mbedtls/)
51+
- [`mbedtls-2.28`](https://github.com/ARMmbed/mbedtls/tree/mbedtls-2.28)
52+
maintained until at least the end of 2024.
53+
54+
Users are urged to always use the latest version of a maintained branch.

mbedtls-sys/vendor/BUGS.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Known issues
2+
3+
Known issues in Mbed TLS are [tracked on GitHub](https://github.com/ARMmbed/mbedtls/issues).
4+
5+
## Reporting a bug
6+
7+
If you think you've found a bug in Mbed TLS, please follow these steps:
8+
9+
1. Make sure you're using the latest version of a
10+
[maintained branch](BRANCHES.md): `master`, `development`,
11+
or a long-time support branch.
12+
2. Check [GitHub](https://github.com/ARMmbed/mbedtls/issues) to see if
13+
your issue has already been reported. If not, …
14+
3. If the issue is a security risk (for example: buffer overflow,
15+
data leak), please report it confidentially as described in
16+
[`SECURITY.md`](SECURITY.md). If not, …
17+
4. Please [create an issue on on GitHub](https://github.com/ARMmbed/mbedtls/issues).
18+
19+
Please do not use GitHub for support questions. If you want to know
20+
how to do something with Mbed TLS, please see [`SUPPORT.md`](SUPPORT.md) for available documentation and support channels.

mbedtls-sys/vendor/CONTRIBUTING.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ Making a Contribution
2222
1. All new files should include the [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) standard license header where possible.
2323
1. Ensure that each commit has at least one `Signed-off-by:` line from the committer. If anyone else contributes to the commit, they should also add their own `Signed-off-by:` line. By adding this line, contributor(s) certify that the contribution is made under the terms of the [Developer Certificate of Origin](dco.txt). The contribution licensing is described in the [License section of the README](README.md#License).
2424

25-
API/ABI Compatibility
26-
---------------------
27-
The project aims to minimise the impact on users upgrading to newer versions of the library and it should not be necessary for a user to make any changes to their own code to work with a newer version of the library. Unless the user has made an active decision to use newer features, a newer generation of the library or a change has been necessary due to a security issue or other significant software defect, no modifications to their own code should be necessary. To achieve this, API compatibility is maintained between different versions of Mbed TLS on the main development branch and in LTS (Long Term Support) branches.
25+
Backwards Compatibility
26+
-----------------------
27+
28+
The project aims to minimise the impact on users upgrading to newer versions of the library and it should not be necessary for a user to make any changes to their own code to work with a newer version of the library. Unless the user has made an active decision to use newer features, a newer generation of the library or a change has been necessary due to a security issue or other significant software defect, no modifications to their own code should be necessary. To achieve this, API compatibility is maintained between different versions of Mbed TLS on the main development branch and in LTS (Long Term Support) branches, as described in [BRANCHES.md](BRANCHES.md).
2829

2930
To minimise such disruption to users, where a change to the interface is required, all changes to the ABI or API, even on the main development branch where new features are added, need to be justifiable by either being a significant enhancement, new feature or bug fix which is best resolved by an interface change.
3031

@@ -48,6 +49,9 @@ When backporting to these branches please observe the following rules:
4849

4950
It would be highly appreciated if contributions are backported to LTS branches in addition to the [development branch](https://github.com/ARMmbed/mbedtls/tree/development) by contributors.
5051

52+
The list of maintained branches can be found in the [Current Branches section
53+
of BRANCHES.md](BRANCHES.md#current-branches).
54+
5155
Currently maintained LTS branches are:
5256
1. [mbedtls-2.7](https://github.com/ARMmbed/mbedtls/tree/mbedtls-2.7)
5357
1. [mbedtls-2.16](https://github.com/ARMmbed/mbedtls/tree/mbedtls-2.16)

0 commit comments

Comments
 (0)