-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into mbedtls_private_with_python
Conflicts: include/mbedtls/ssl.h Conflict fixed by using the code from development branch and manually re-applying the MBEDTLS_PRIVATE wrapping.
- Loading branch information
Showing
95 changed files
with
1,498 additions
and
4,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: Bug report | ||
about: To report a bug, please fill this form. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Summary | ||
|
||
|
||
|
||
### System information | ||
|
||
Mbed TLS version (number or commit id): | ||
Operating system and version: | ||
Configuration (if not default, please attach `config.h`): | ||
Compiler and options (if you used a pre-built binary, please indicate how you obtained it): | ||
Additional environment information: | ||
|
||
### Expected behavior | ||
|
||
|
||
|
||
### Actual behavior | ||
|
||
|
||
|
||
### Steps to reproduce | ||
|
||
|
||
|
||
### Additional information | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Mbed TLS security team | ||
url: mailto:mbed-tls-security@lists.trustedfirmware.org | ||
about: Report a security vulnerability. | ||
- name: Mbed TLS mailing list | ||
url: https://lists.trustedfirmware.org/mailman/listinfo/mbed-tls | ||
about: Mbed TLS community support and general discussion. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Enhancement request | ||
about: To request an enhancement, please fill this form. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Suggested enhancement | ||
|
||
|
||
|
||
### Justification | ||
|
||
Mbed TLS needs this because | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Bugfix | ||
* Fix a regression introduced in 2.24.0 which broke (D)TLS CBC ciphersuites | ||
(when the encrypt-then-MAC extension is not in use) with some ALT | ||
implementations of the underlying hash (SHA-1, SHA-256, SHA-384), causing | ||
the affected side to wrongly reject valid messages. Fixes #4118. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
Removals | ||
* Remove the TLS 1.0, TLS 1.1 and DTLS 1.0 support by removing the following | ||
library constants: MBEDTLS_SSL_PROTO_TLS1, | ||
MBEDTLS_SSL_PROTO_TLS1_1, MBEDTLS_SSL_CBC_RECORD_SPLITTING, | ||
MBEDTLS_SSL_CBC_RECORD_SPLITTING_ENABLED, | ||
MBEDTLS_SSL_CBC_RECORD_SPLITTING_DISABLED, | ||
MBEDTLS_SSL_FALLBACK_SCSV, MBEDTLS_SSL_FALLBACK_SCSV_VALUE, | ||
MBEDTLS_SSL_IS_FALLBACK, MBEDTLS_SSL_IS_NOT_FALLBACK, and functions: | ||
* Remove support for TLS 1.0, TLS 1.1 and DTLS 1.0, as well as support for | ||
CBC record splitting, fallback SCSV, and the ability to configure | ||
ciphersuites per version, which are no longer relevant. This removes the | ||
configuration options MBEDTLS_SSL_PROTO_TLS1, | ||
MBEDTLS_SSL_PROTO_TLS1_1, MBEDTLS_SSL_CBC_RECORD_SPLITTING and | ||
MBEDTLS_SSL_FALLBACK_SCSV as well as the functions | ||
mbedtls_ssl_conf_cbc_record_splitting(), | ||
mbedtls_ssl_get_key_exchange_md_ssl_tls(), mbedtls_ssl_conf_fallback(). | ||
Fixes #4286. | ||
mbedtls_ssl_get_key_exchange_md_ssl_tls(), mbedtls_ssl_conf_fallback(), | ||
and mbedtls_ssl_conf_ciphersuites_for_version(). Fixes #4286. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Removals | ||
* Remove the following macros: MBEDTLS_CHECK_PARAMS, | ||
MBEDTLS_CHECK_PARAMS_ASSERT, MBEDTLS_PARAM_FAILED, | ||
MBEDTLS_PARAM_FAILED_ALT. Fixes #4313. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
API changes | ||
* Remove the SSL APIs mbedtls_ssl_get_input_max_frag_len() and | ||
mbedtls_ssl_get_output_max_frag_len(), and add a new API | ||
mbedtls_ssl_get_max_in_record_payload(), complementing the existing | ||
mbedtls_ssl_get_max_out_record_payload(). | ||
Uses of mbedtls_ssl_get_input_max_frag_len() and | ||
mbedtls_ssl_get_input_max_frag_len() should be replaced by | ||
mbedtls_ssl_get_max_in_record_payload() and | ||
mbedtls_ssl_get_max_out_record_payload(), respectively. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
API changes | ||
* mbedtls_rsa_init() now always selects the PKCS#1v1.5 encoding for an RSA | ||
key. To use an RSA key with PSS or OAEP, call mbedtls_rsa_set_padding() | ||
after initializing the context. mbedtls_rsa_set_padding() now returns an | ||
error if its parameters are invalid. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Requirement changes | ||
* Refresh the minimum supported versions of tools to build the | ||
library. CMake versions older than 3.10.2 and Python older | ||
than 3.6 are no longer supported. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Remove MaximumFragmentLength (MFL) query API | ||
----------------------------------------------------------------- | ||
|
||
This affects users which use the MFL query APIs | ||
`mbedtls_ssl_get_{input,output}_max_frag_len()` to | ||
infer upper bounds on the plaintext size of incoming and | ||
outgoing record. | ||
|
||
Users should switch to `mbedtls_ssl_get_max_{in,out}_record_payload()` | ||
instead, which also provides such upper bounds but takes more factors | ||
than just the MFL configuration into account. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
docs/3.0-migration-guide.d/remove_mbedtls_check_params_option.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Remove MBEDTLS_CHECK_PARAMS option | ||
---------------------------------- | ||
|
||
This change does not affect users who use the default configuration; it only | ||
affects users who enabled that option. | ||
|
||
The option `MBEDTLS_CHECK_PARAMS` (disabled by default) enabled certain kinds | ||
of “parameter validation”. It covered two kinds of validations: | ||
|
||
- In some functions that require a valid pointer, “parameter validation” checks | ||
that the pointer is non-null. With the feature disabled, a null pointer is not | ||
treated differently from any other invalid pointer, and typically leads to a | ||
runtime crash. 90% of the uses of the feature are of this kind. | ||
- In some functions that take an enum-like argument, “parameter validation” | ||
checks that the value is a valid one. With the feature disabled, an invalid | ||
value causes a silent default to one of the valid values. | ||
|
||
The default reaction to a failed check was to call a function | ||
`mbedtls_param_failed()` which the application had to provide. If this function | ||
returned, its caller returned an error `MBEDTLS_ERR_xxx_BAD_INPUT_DATA`. | ||
|
||
This feature was only used in some classic (non-PSA) cryptography modules. It was | ||
not used in X.509, TLS or in PSA crypto, and it was not implemented in all | ||
classic crypto modules. | ||
|
||
This feature has been removed. The library no longer checks for NULL pointers; | ||
checks for enum-like arguments will be kept or re-introduced on a case-by-case | ||
basis, but their presence will no longer be dependent on a compile-time option. | ||
|
||
Validation of enum-like values is somewhat useful, but not extremely important, | ||
because the parameters concerned are usually constants in applications. | ||
|
||
For more information see issue #4313. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Remove the padding parameters from mbedtls_rsa_init() | ||
----------------------------------------------------- | ||
|
||
This affects all users who use the RSA encryption, decryption, sign and | ||
verify APIs. | ||
|
||
The function mbedtls_rsa_init() no longer supports selecting the PKCS#1 v2.1 | ||
encoding and its hash. It just selects the PKCS#1 v1.5 encoding by default. If | ||
you were using the PKCS#1 v2.1 encoding you now need, subsequently to the call | ||
to mbedtls_rsa_init(), to call mbedtls_rsa_set_padding() to set it. | ||
|
||
To choose the padding type when initializing a context, instead of | ||
```C | ||
mbedtls_rsa_init(ctx, padding, hash_id); | ||
``` | ||
, use | ||
```C | ||
mbedtls_rsa_init(ctx); | ||
mbedtls_rsa_set_padding(ctx, padding, hash_id); | ||
``` | ||
|
||
To use PKCS#1 v1.5 padding, instead of | ||
```C | ||
mbedtls_rsa_init(ctx, MBEDTLS_RSA_PKCS_V15, <ignored>); | ||
``` | ||
, just use | ||
```C | ||
mbedtls_rsa_init(ctx); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.