Skip to content

Commit 45955da

Browse files
authored
Update mbedtls to version 3.6.4 (#4278)
1 parent 337cc91 commit 45955da

File tree

1,597 files changed

+438470
-745
lines changed

Some content is hidden

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

1,597 files changed

+438470
-745
lines changed

vendor/mbedtls/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Classify all '.function' files as C for syntax highlighting purposes
2+
*.function linguist-language=C
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug report
3+
about: To report a bug, please fill this form.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
### Summary
11+
12+
13+
14+
### System information
15+
16+
Mbed TLS version (number or commit id):
17+
Operating system and version:
18+
Configuration (if not default, please attach `mbedtls_config.h`):
19+
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
20+
Additional environment information:
21+
22+
### Expected behavior
23+
24+
25+
26+
### Actual behavior
27+
28+
29+
30+
### Steps to reproduce
31+
32+
33+
34+
### Additional information
35+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Mbed TLS security team
4+
url: mailto:[email protected]
5+
about: Report a security vulnerability.
6+
- name: Mbed TLS mailing list
7+
url: https://lists.trustedfirmware.org/mailman3/lists/mbed-tls.lists.trustedfirmware.org
8+
about: Mbed TLS community support and general discussion.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Enhancement request
3+
about: To request an enhancement, please fill this form.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
### Suggested enhancement
11+
12+
13+
14+
### Justification
15+
16+
Mbed TLS needs this because
17+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Description
2+
3+
Please write a few sentences describing the overall goals of the pull request's commits.
4+
5+
6+
7+
## PR checklist
8+
9+
Please tick as appropriate and edit the reasons (e.g.: "backport: not needed because this is a new feature")
10+
11+
- [ ] **changelog** provided, or not required
12+
- [ ] **3.6 backport** done, or not required
13+
- [ ] **2.28 backport** done, or not required
14+
- [ ] **tests** provided, or not required
15+
16+
17+
18+
## Notes for the submitter
19+
20+
Please refer to the [contributing guidelines](https://github.com/Mbed-TLS/mbedtls/blob/development/CONTRIBUTING.md), especially the
21+
checklist for PR contributors.
22+
23+
Help make review efficient:
24+
* Multiple simple commits
25+
- please structure your PR into a series of small commits, each of which does one thing
26+
* Avoid force-push
27+
- please do not force-push to update your PR - just add new commit(s)
28+
* See our [Guidelines for Contributors](https://mbed-tls.readthedocs.io/en/latest/reviews/review-for-contributors/) for more details about the review process.

vendor/mbedtls/.gitignore

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Random seed file created by test scripts and sample programs
2+
seedfile
3+
# MBEDTLS_PSA_INJECT_ENTROPY seed file created by the test framework
4+
00000000ffffff52.psa_its
5+
# Log files created by all.sh to reduce the logs in case a component runs
6+
# successfully
7+
quiet-make.*
8+
9+
# CMake build artifacts:
10+
CMakeCache.txt
11+
CMakeFiles
12+
CTestTestfile.cmake
13+
cmake_install.cmake
14+
Testing
15+
# CMake generates *.dir/ folders for in-tree builds (used by MSVC projects), ignore all of those:
16+
*.dir/
17+
# MSVC files generated by CMake:
18+
/*.sln
19+
/*.vcxproj
20+
/*.filters
21+
22+
# Test coverage build artifacts:
23+
Coverage
24+
*.gcno
25+
*.gcda
26+
coverage-summary.txt
27+
28+
# generated by scripts/memory.sh
29+
massif-*
30+
31+
# Eclipse project files
32+
.cproject
33+
.project
34+
/.settings
35+
36+
# Unix-like build artifacts:
37+
*.o
38+
*.s
39+
40+
# MSVC build artifacts:
41+
*.exe
42+
*.pdb
43+
*.ilk
44+
*.lib
45+
46+
# Python build artifacts:
47+
*.pyc
48+
49+
# CMake generates *.dir/ folders for in-tree builds (used by MSVC projects), ignore all of those:
50+
*.dir/
51+
52+
# Microsoft CMake extension for Visual Studio Code generates a build directory by default
53+
/build/
54+
55+
# Generated documentation:
56+
/apidoc
57+
58+
# PSA Crypto compliance test repo, cloned by test_psa_compliance.py
59+
/psa-arch-tests
60+
61+
# Editor navigation files:
62+
/GPATH
63+
/GRTAGS
64+
/GSYMS
65+
/GTAGS
66+
/TAGS
67+
/cscope*.out
68+
/tags
69+
70+
# clangd compilation database
71+
compile_commands.json
72+
# clangd index files
73+
/.cache/clangd/index/
74+
75+
# VScode folder to store local debug files and configurations
76+
.vscode

vendor/mbedtls/.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "framework"]
2+
path = framework
3+
url = https://github.com/Mbed-TLS/mbedtls-framework

vendor/mbedtls/.globalrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
default:\
2+
:langmap=c\:.c.h.function:\
3+

vendor/mbedtls/.mypy.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[mypy]
2+
mypy_path = framework/scripts:scripts
3+
namespace_packages = True
4+
warn_unused_configs = True

vendor/mbedtls/.pylintrc

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
[MASTER]
2+
init-hook='import sys; sys.path.append("scripts"); sys.path.append("framework/scripts")'
3+
min-similarity-lines=10
4+
5+
[BASIC]
6+
# We're ok with short funtion argument names.
7+
# [invalid-name]
8+
argument-rgx=[a-z_][a-z0-9_]*$
9+
10+
# Allow filter and map.
11+
# [bad-builtin]
12+
bad-functions=input
13+
14+
# We prefer docstrings, but we don't require them on all functions.
15+
# Require them only on long functions (for some value of long).
16+
# [missing-docstring]
17+
docstring-min-length=10
18+
19+
# No upper limit on method names. Pylint <2.1.0 has an upper limit of 30.
20+
# [invalid-name]
21+
method-rgx=[a-z_][a-z0-9_]{2,}$
22+
23+
# Allow module names containing a dash (but no underscore or uppercase letter).
24+
# They are whole programs, not meant to be included by another module.
25+
# [invalid-name]
26+
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|[a-z][-0-9a-z]+)$
27+
28+
# Some functions don't need docstrings.
29+
# [missing-docstring]
30+
no-docstring-rgx=(run_)?main$
31+
32+
# We're ok with short local or global variable names.
33+
# [invalid-name]
34+
variable-rgx=[a-z_][a-z0-9_]*$
35+
36+
[DESIGN]
37+
# Allow more than the default 7 attributes.
38+
# [too-many-instance-attributes]
39+
max-attributes=15
40+
41+
[FORMAT]
42+
# Allow longer modules than the default recommended maximum.
43+
# [too-many-lines]
44+
max-module-lines=2000
45+
46+
[MESSAGES CONTROL]
47+
# * locally-disabled, locally-enabled: If we disable or enable a message
48+
# locally, it's by design. There's no need to clutter the Pylint output
49+
# with this information.
50+
# * logging-format-interpolation: Pylint warns about things like
51+
# ``log.info('...'.format(...))``. It insists on ``log.info('...', ...)``.
52+
# This is of minor utility (mainly a performance gain when there are
53+
# many messages that use formatting and are below the log level).
54+
# Some versions of Pylint (including 1.8, which is the version on
55+
# Ubuntu 18.04) only recognize old-style format strings using '%',
56+
# and complain about something like ``log.info('{}', foo)`` with
57+
# logging-too-many-args (Pylint supports new-style formatting if
58+
# declared globally with logging_format_style under [LOGGING] but
59+
# this requires Pylint >=2.2).
60+
# * no-else-return: Allow the perfectly reasonable idiom
61+
# if condition1:
62+
# return value1
63+
# else:
64+
# return value2
65+
# * unnecessary-pass: If we take the trouble of adding a line with "pass",
66+
# it's because we think the code is clearer that way.
67+
disable=locally-disabled,locally-enabled,logging-format-interpolation,no-else-return,unnecessary-pass
68+
69+
[REPORTS]
70+
# Don't diplay statistics. Just the facts.
71+
reports=no
72+
73+
[STRING]
74+
# Complain about
75+
# ```
76+
# list_of_strings = [
77+
# 'foo' # <-- missing comma
78+
# 'bar',
79+
# 'corge',
80+
# ]
81+
# ```
82+
check-str-concat-over-line-jumps=yes
83+
84+
[VARIABLES]
85+
# Allow unused variables if their name starts with an underscore.
86+
# [unused-argument]
87+
dummy-variables-rgx=_.*
88+
89+
[SIMILARITIES]
90+
# Ignore imports when computing similarities.
91+
ignore-imports=yes

0 commit comments

Comments
 (0)