Skip to content

Commit 5e1b00a

Browse files
bors[bot]DrTobeVardhan Thigleraoulstrackx
authored
Merge #315
315: [v0.9] update mbedtls-sys to 2.28.3 r=Taowyoo a=Taowyoo This PR upgrade the `mbedlts-sys-auto` to `2.28.3` by checkout the code under `mbedtls-sys` to tag `mbedlts-sys-auto_v2.28.3`. This help the maintenance of the v0.9 branch, especially when we need to introduce new changes in `mbedtls-sys` folder. Co-authored-by: Tobias Naumann <[email protected]> Co-authored-by: Vardhan Thigle <[email protected]> Co-authored-by: Raoul Strackx <[email protected]>
2 parents e0d2836 + a96442c commit 5e1b00a

File tree

555 files changed

+140328
-88651
lines changed

Some content is hidden

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

555 files changed

+140328
-88651
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mbedtls-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mbedtls-sys-auto"
3-
version = "2.28.0"
3+
version = "2.28.3"
44
authors = ["Jethro Beekman <[email protected]>"]
55
build = "build/build.rs"
66
license = "Apache-2.0 OR GPL-2.0-or-later"

mbedtls-sys/vendor/.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: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,19 @@
1-
Notes:
2-
* Pull requests cannot be accepted until the PR follows the [contributing guidelines](../CONTRIBUTING.md). In particular, each commit must have at least one `Signed-off-by:` line from the committer to certify that the contribution is made under the terms of the [Developer Certificate of Origin](../dco.txt).
3-
* This is just a template, so feel free to use/remove the unnecessary things
41
## Description
5-
A few sentences describing the overall goals of the pull request's commits.
62

3+
Please write a few sentences describing the overall goals of the pull request's commits.
74

8-
## Status
9-
**READY/IN DEVELOPMENT/HOLD**
105

11-
## Requires Backporting
12-
When there is a bug fix, it should be backported to all maintained and supported branches.
13-
Changes do not have to be backported if:
14-
- This PR is a new feature\enhancement
15-
- This PR contains changes in the API. If this is true, and there is a need for the fix to be backported, the fix should be handled differently in the legacy branch
166

17-
Yes | NO
18-
Which branch?
7+
## Gatekeeper checklist
198

20-
## Migrations
21-
If there is any API change, what's the incentive and logic for it.
9+
- [ ] **changelog** provided, or not required
10+
- [ ] **backport** done, or not required
11+
- [ ] **tests** provided, or not required
2212

23-
YES | NO
2413

25-
## Additional comments
26-
Any additional information that could be of interest
2714

28-
## Todos
29-
- [ ] Tests
30-
- [ ] Documentation
31-
- [ ] Changelog updated
32-
- [ ] Backported
15+
## Notes for the submitter
3316

17+
Please refer to the [contributing guidelines](../CONTRIBUTING.md), especially the
18+
checklist for PR contributors.
3419

35-
## Steps to test or reproduce
36-
Outline the steps to test or reproduce the PR here.

mbedtls-sys/vendor/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ coverage-summary.txt
2323
# generated by scripts/memory.sh
2424
massif-*
2525

26+
# Eclipse project files
27+
.cproject
28+
.project
29+
/.settings
30+
2631
# MSVC build artifacts:
2732
*.exe
2833
*.pdb

mbedtls-sys/vendor/.pylintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@ reports=no
7373
# Allow unused variables if their name starts with an underscore.
7474
# [unused-argument]
7575
dummy-variables-rgx=_.*
76+
77+
[SIMILARITIES]
78+
# Ignore imports when computing similarities.
79+
ignore-imports=yes

mbedtls-sys/vendor/.travis.yml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,58 @@ jobs:
2727
- tests/scripts/all.sh -k build_arm_linux_gnueabi_gcc_arm5vte build_arm_none_eabi_gcc_m0plus
2828

2929
- name: full configuration
30+
os: linux
31+
dist: focal
32+
addons:
33+
apt:
34+
packages:
35+
- clang-10
36+
- gnutls-bin
3037
script:
31-
- tests/scripts/all.sh -k test_full_cmake_gcc_asan
38+
# Do a manual build+test sequence rather than using all.sh,
39+
# because there's no all.sh component that does what we want,
40+
# which is a build with Clang >= 10 and ASan, running all the SSL
41+
# testing.
42+
# - The clang executable in the default PATH is Clang 7 on
43+
# Travis's focal instances, but we want Clang >= 10.
44+
# - Running all the SSL testing requires a specific set of
45+
# OpenSSL and GnuTLS versions and we don't want to bother
46+
# with those on Travis.
47+
# So we explicitly select clang-10 as the compiler, and we
48+
# have ad hoc restrictions on SSL testing based on what is
49+
# passing at the time of writing. We will remove these limitations
50+
# gradually.
51+
- make CC=clang-10 CFLAGS='-Werror -Wall -Wextra -fsanitize=address,undefined -fno-sanitize-recover=all -O2' LDFLAGS='-Werror -Wall -Wextra -fsanitize=address,undefined -fno-sanitize-recover=all'
52+
- make test
53+
- programs/test/selftest
54+
- tests/scripts/test_psa_constant_names.py
55+
# Exclude a few test cases that are failing mysteriously.
56+
# https://github.com/Mbed-TLS/mbedtls/issues/6660
57+
- tests/ssl-opt.sh -e 'Fallback SCSV:\ .*list'
58+
# Modern OpenSSL does not support null or ancient ciphers.
59+
- tests/compat.sh -p OpenSSL -e 'NULL\|DES\|RC4'
60+
- tests/scripts/travis-log-failure.sh
61+
# GnuTLS supports CAMELLIA but compat.sh doesn't properly enable it.
62+
# Modern GnuTLS does not support DES.
63+
# One NULL cipher suite is strangely missing in pre-1.2 protocol
64+
# versions (it works with (D)TLS1.2, but don't bother).
65+
- tests/compat.sh -p GnuTLS -e 'CAMELLIA\|DES\|TLS-RSA-WITH-NULL-SHA256'
66+
- tests/scripts/travis-log-failure.sh
67+
- tests/context-info.sh
3268

3369
- name: Windows
3470
os: windows
3571
script:
3672
- scripts/windows_msbuild.bat v141 # Visual Studio 2017
73+
- visualc/VS2010/x64/Release/selftest.exe --ci
3774

3875
after_failure:
3976
- tests/scripts/travis-log-failure.sh
4077

4178
env:
4279
global:
4380
- SEED=1
44-
- secure: "FrI5d2s+ckckC17T66c8jm2jV6i2DkBPU5nyWzwbedjmEBeocREfQLd/x8yKpPzLDz7ghOvr+/GQvsPPn0dVkGlNzm3Q+hGHc/ujnASuUtGrcuMM+0ALnJ3k4rFr9xEvjJeWb4SmhJO5UCAZYvTItW4k7+bj9L+R6lt3TzQbXzg="
81+
- secure: "JECCru6HASpKZ0OLfHh8f/KXhKkdrCwjquZghd/qbA4ksxsWImjR7KEPERcaPndXEilzhDbKwuFvJiQX2duVgTGoq745YGhLZIjzo1i8tySkceCVd48P8WceYGz+F/bmY7r+m6fFNuxDSoGGSVeA4Lnjvmm8PFUP45YodDV9no4="
4582

4683
addons:
4784
apt:

mbedtls-sys/vendor/.uncrustify.cfg

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
# Configuration options for Uncrustify specifying the Mbed TLS code style.
2+
#
3+
# Note: The code style represented by this file has not yet been introduced
4+
# to Mbed TLS.
5+
#
6+
# Copyright The Mbed TLS Contributors
7+
# SPDX-License-Identifier: Apache-2.0
8+
#
9+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
10+
# not use this file except in compliance with the License.
11+
# You may obtain a copy of the License at
12+
#
13+
# http://www.apache.org/licenses/LICENSE-2.0
14+
#
15+
# Unless required by applicable law or agreed to in writing, software
16+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
# See the License for the specific language governing permissions and
19+
# limitations under the License.
20+
21+
22+
# Wrap lines at 100 characters
23+
code_width = 100
24+
25+
# Allow splitting long for statements between the condition statements
26+
ls_for_split_full = true
27+
28+
# Allow splitting function calls between arguments
29+
ls_func_split_full = true
30+
31+
input_tab_size = 4
32+
33+
# Spaces-only indentation
34+
indent_with_tabs = 0
35+
36+
indent_columns = 4
37+
38+
# Indent 'case' 1 level from 'switch'
39+
indent_switch_case = indent_columns
40+
41+
# Line-up strings broken by '\'
42+
indent_align_string = true
43+
44+
# Braces on the same line (Egyptian-style braces)
45+
nl_enum_brace = remove
46+
nl_union_brace = remove
47+
nl_struct_brace = remove
48+
nl_do_brace = remove
49+
nl_if_brace = remove
50+
nl_for_brace = remove
51+
nl_else_brace = remove
52+
nl_while_brace = remove
53+
nl_switch_brace = remove
54+
55+
# Braces on same line as keywords that follow them - 'else' and the 'while' in 'do {} while ()';
56+
nl_brace_else = remove
57+
nl_brace_while = remove
58+
# Space before else on the same line
59+
sp_brace_else = add
60+
# If else is on the same line as '{', force exactly 1 space between them
61+
sp_else_brace = force
62+
63+
# Functions are the exception and have braces on the next line
64+
nl_fcall_brace = add
65+
nl_fdef_brace = add
66+
67+
# Force exactly one space between ')' and '{' in statements
68+
sp_sparen_brace = force
69+
70+
# At least 1 space around assignment
71+
sp_assign = add
72+
73+
# Remove spaces around the preprocessor '##' token-concatenate
74+
sp_pp_concat = ignore
75+
76+
# At least 1 space around '||' and '&&'
77+
sp_bool = add
78+
79+
# But no space after the '!' operator
80+
sp_not = remove
81+
82+
# No space after the bitwise-not '~' operator
83+
sp_inv = remove
84+
85+
# No space after the addressof '&' operator
86+
sp_addr = remove
87+
88+
# No space around the member '.' and '->' operators
89+
sp_member = remove
90+
91+
# No space after the dereference '*' operator
92+
sp_deref = remove
93+
94+
# No space after a unary negation '-'
95+
sp_sign = remove
96+
97+
# No space between the '++'/'--' operator and its operand
98+
sp_incdec = remove
99+
100+
# At least 1 space around comparison operators
101+
sp_compare = add
102+
103+
# Remove spaces inside all kinds of parentheses:
104+
105+
# Remove spaces inside parentheses
106+
sp_inside_paren = remove
107+
108+
# No spaces inside statement parentheses
109+
sp_inside_sparen = remove
110+
111+
# No spaces inside cast parentheses '( char )x' -> '(char)x'
112+
sp_inside_paren_cast = remove
113+
114+
# No spaces inside function parentheses
115+
sp_inside_fparen = remove
116+
# (The case where the function has no parameters/arguments)
117+
sp_inside_fparens = remove
118+
119+
# No spaces inside the first parentheses in a function type
120+
sp_inside_tparen = remove
121+
122+
# (Uncrustify >= 0.74.0) No spaces inside parens in for statements
123+
sp_inside_for = remove
124+
125+
# Remove spaces between nested parentheses '( (' -> '(('
126+
sp_paren_paren = remove
127+
# (Uncrustify >= 0.74.0)
128+
sp_sparen_paren = remove
129+
130+
# Remove spaces between ')' and adjacent '('
131+
sp_cparen_oparen = remove
132+
133+
# (Uncrustify >= 0.73.0) space between 'do' and '{'
134+
sp_do_brace_open = force
135+
136+
# (Uncrustify >= 0.73.0) space between '}' and 'while'
137+
sp_brace_close_while = force
138+
139+
# At least 1 space before a '*' pointer star
140+
sp_before_ptr_star = add
141+
142+
# Remove spaces between pointer stars
143+
sp_between_ptr_star = remove
144+
145+
# No space after a pointer star
146+
sp_after_ptr_star = remove
147+
148+
# But allow a space in the case of e.g. char * const x;
149+
sp_after_ptr_star_qualifier = ignore
150+
151+
# Remove space after star in a function return type
152+
sp_after_ptr_star_func = remove
153+
154+
# At least 1 space after a type in variable definition etc
155+
sp_after_type = add
156+
157+
# Force exactly 1 space between a statement keyword (e.g. 'if') and an opening parenthesis
158+
sp_before_sparen = force
159+
160+
# Remove a space before a ';'
161+
sp_before_semi = remove
162+
# (Uncrustify >= 0.73.0) Remove space before a semi in a non-empty for
163+
sp_before_semi_for = remove
164+
# (Uncrustify >= 0.73.0) Remove space in empty first statement of a for
165+
sp_before_semi_for_empty = remove
166+
# (Uncrustify >= 0.74.0) Remove space in empty middle statement of a for
167+
sp_between_semi_for_empty = remove
168+
169+
# Add a space after a ';' (unless a comment follows)
170+
sp_after_semi = add
171+
# (Uncrustify >= 0.73.0) Add a space after a semi in non-empty for statements
172+
sp_after_semi_for = add
173+
# (Uncrustify >= 0.73.0) No space after final semi in empty for statements
174+
sp_after_semi_for_empty = remove
175+
176+
# Remove spaces on the inside of square brackets '[]'
177+
sp_inside_square = remove
178+
179+
# Must have at least 1 space after a comma
180+
sp_after_comma = add
181+
182+
# Must not have a space before a comma
183+
sp_before_comma = remove
184+
185+
# No space before the ':' in a case statement
186+
sp_before_case_colon = remove
187+
188+
# Must have space after a cast - '(char)x' -> '(char) x'
189+
sp_after_cast = add
190+
191+
# No space between 'sizeof' and '('
192+
sp_sizeof_paren = remove
193+
194+
# At least 1 space inside '{ }'
195+
sp_inside_braces = add
196+
197+
# At least 1 space inside '{ }' in an enum
198+
sp_inside_braces_enum = add
199+
200+
# At least 1 space inside '{ }' in a struct
201+
sp_inside_braces_struct = add
202+
203+
# At least 1 space between a function return type and the function name
204+
sp_type_func = add
205+
206+
# No space between a function name and its arguments/parameters
207+
sp_func_proto_paren = remove
208+
sp_func_def_paren = remove
209+
sp_func_call_paren = remove
210+
211+
# No space between '__attribute__' and '('
212+
sp_attribute_paren = remove
213+
214+
# No space between 'defined' and '(' in preprocessor conditions
215+
sp_defined_paren = remove
216+
217+
# At least 1 space between a macro's name and its definition
218+
sp_macro = add
219+
sp_macro_func = add
220+
221+
# Force exactly 1 space between a '}' and the name of a typedef if on the same line
222+
sp_brace_typedef = force
223+
224+
# At least 1 space before a '\' line continuation
225+
sp_before_nl_cont = add
226+
227+
# At least 1 space around '?' and ':' in ternary statements
228+
sp_cond_colon = add
229+
sp_cond_question = add
230+
231+
# Space between #else/#endif and comment afterwards
232+
sp_endif_cmt = add
233+
234+
# Remove newlines at the start of a file
235+
nl_start_of_file = remove
236+
237+
# At least 1 newline at the end of a file
238+
nl_end_of_file = add
239+
nl_end_of_file_min = 1
240+
241+
# Add braces in single-line statements
242+
mod_full_brace_do = add
243+
mod_full_brace_for = add
244+
mod_full_brace_if = add
245+
mod_full_brace_while = add
246+
247+
# Remove parentheses from return statements
248+
mod_paren_on_return = remove
249+
250+
# Disable removal of leading spaces in a multi-line comment if the first and
251+
# last lines are the same length
252+
cmt_multi_check_last = false

0 commit comments

Comments
 (0)