-
Notifications
You must be signed in to change notification settings - Fork 96
Bring in changes from Mbed TLS as of 2019-07-22 #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Patater
merged 380 commits into
ARMmbed:development
from
Patater:tls-development-20190722
Jul 31, 2019
Merged
Changes from all commits
Commits
Show all changes
380 commits
Select commit
Hold shift + click to select a range
43c24b8
Fix missing compile-time guards around CID-only constants
fe6bb8c
Unify documentation of internal SSL record structure
d5aeab1
Improve documentation of ssl_extract_add_data_from_record()
c4a190b
Add length of CID to additional data used for record protection
92fb4fa
Reduce stack usage for additional data buffers in record dec/enc
edb24f8
Remove unnecessary whitespace in ssl_extract_add_data_from_record()
d3f8c79
Improve wording in ssl_build_inner_plaintext()
07dc97d
Don't quote DTLSInnerPlaintext structure multiple times
af05ac0
Remove unnecessary empty line in ssl_tls.c
95e4bbc
Fix additional data calculation if CID is disabled
e2c2314
Add missing dependencies in unit tests for CID-based record enc/dec
76a79ab
Don't allow calling CID API outside of DTLS
6e7700d
Expain rationale for handling of consecutive empty AD records
82e2a39
Treat an invalid record after decryption as fatal
79594fd
Set pointer to start of plaintext at record decryption time
37ae952
Move dropping of unexpected AD records to after record decryption
f661c9c
Add helper function to check validity of record content type
5903de4
Split mbedtls_ssl_hdr_len() in separate functions for in/out records
3b154c1
Re-implement mbedtls_ssl_{in/out}_hdr_len() via in/out pointers
ad4a137
Add CID configuration API
6cbad55
Account for additional record expansion when using CIDs
f9c6a4b
Add pointers to in/out CID fields to mbedtls_ssl_context
6430faf
Adapt record encryption/decryption routines to change of record type
ca59c2b
Implement parsing of CID-based records
938489a
Re-enable CID comparison when decrypting CID-based records
16ded98
Don't fail on record with unexpected CID
05154c3
Re-enable passing CIDs to record transforms
2749a67
Reintroduce grepping for debug messages in CID tests in ssl-opt.sh
b42ec0d
Add support for change of CID to ssl_client2 / ssl_server2
b3e9dd5
Fix mismatching debug grep in ssl-opt.sh CID tests
22a59fd
Remove indicators and warnings about unfinished CID implementation
78c9137
Add Proxy tests for Connection ID to ssl-opt.sh
31f6e37
UDP Proxy: Don't drop CID records
c2045b0
Add CID test not using datagram packing to ssl-opt.sh
4a4af9f
Fix typo in comment
4c3eb7c
Set CID pointer to default value even for TLS
b1aa1b3
Allow the configuration of padding when using CID extension
2cdc5c3
Make signed to unsigned integer truncation cast explicit
3a96828
Add missing compile-time guard around CID API in ssl_server2
ddf775a
Reword CID documentation
b9ec44f
Remove restriction on value of MBEDTLS_SSL_CID_PADDING_GRANULARITY
c37c96a
Add specific SSL error code for unexpected CIDs
8367ccc
Allow to configure the stack's behaviour on unexpected CIDs
5d12467
Remove warnings about unfinished CID implementation
7fefd83
Modify MBEDTLS_SSL_UNEXPECTED_CID_{FAIL|IGNORE} to ignore by default
611ac77
Fix mbedtls_ssl_conf_cid() to not depend on macro constant values
56f81c7
Improve wording in documentation of MBEDTLS_SSL_CID
4cac442
Update references to CID draft to version 5
d9d4adb
Improve wording in documentation of mbedtls_ssl_set_cid()
08cbc0c
Use uniform spacing in def's of MBEDTLS_SSL_CID_{IN|OUT}_LEN_MAX
08cd9db
Use full sentences in Doxygen documentation of mbedtls_ssl_set_cid()
5cc145d
Slightly reword documentation of mbedtls_ssl_set_cid()
fb034e8
Improve wording of documentation of mbedtls_ssl_get_peer_cid()
f1a2808
Fix typo in documentation of `mbedtls_ssl_context::cid_in_use`
d1f2035
Slightly reorder CID debug messages during creation of transforms
ebcc913
Consistently reference CID draft through name + URL
a0e20d0
Rename MBEDTLS_SSL_CID to MBEDTLS_SSL_DTLS_CONNECTION_ID
62e5afa
Fix typo in Doxygen documentation of mbedtls_ssl_conf_cid()
8c07bee
Rename MBEDTLS_SSL_CID->MBEDTLS_SSL_DTLS_CONNECTION_ID in SSL suite
615ef17
Allow passing NULL pointers to mbedtls_ssl_get_peer_cid()
6ae14c0
Exemplify ways of calling mbedtls_ssl_get_peer_cid() in ssl_client2
1125952
Expand CID to Connection ID in documentation of mbedtls_ssl_conf_cid
d5eed42
Use negative-hex format for error codes in ssl_client2/ssl_server2
1d433a3
Remove superfluous newline in ssl_client2
3279822
Improve readability of ssl_client2/ssl_server2 usage instructions
3978d10
Remove superfluous new line in ssl_server2
3739e20
Disable Connection ID feature by default
8e55b0f
Improve comment in ssl_parse_record_header()
92d30f5
Fix indentation in debug message in ssl_tls.c
98aaf25
Add bad_cid option UDP proxy to insert unexpected CID records
e8d6afd
Add debug line witnessing receipt of unexpected CID
d0ac5fa
Insert records with unexpected CID in CID tests in ssl-opt.sh
b9355b7
Add description of CID feature to ChangeLog
09b8cae
Adapt ssl_server2 to parse DER encoded test CRTs if PEM is disabled
2900b14
Adapt ssl_client2 to parse DER encoded test CRTs if PEM is disabled
a0c5ceb
Correct white spaces in ssl_server2 and ssl_client2
623e7b4
ssl_client2: Skip CA setup if `ca_path` or `ca_file` argument "none"
8174bdf
ssl_server2: Skip CA setup if `ca_path` or `ca_file` argument "none"
422d199
Document "none" value for ca_path/ca_file in ssl_client2/ssl_server2
e21387e
Add build instructions to generate DER versions of CRTs and keys
8843c25
Add DER encoded files to git tree
58fc28c
Rename server1.der to server1.crt.der
666f60d
Adapt ChangeLog
960e588
Document origin of hardcoded certificates in library/certs.c
91e72c3
ssl-opt.sh: Auto-skip tests that use files if MBEDTLS_FS_IO unset
3217c8d
Allow DHM self test to run without MBEDTLS_PEM_PARSE_C
a545be2
Add run to all.sh exercising !MBEDTLS_PEM_PARSE_C + !MBEDTLS_FS_IO
92b4f81
Use strict syntax to annotate origin of test data in certs.c
471ad47
Add new line at the end of test-ca2.key.enc
ff552f7
Re-generate library/certs.c from script
4cbea4b
Remove heading spaces in tests/data_files/Makefile
e35f02e
Update crypto submodule
12f62fb
Obey bounds of ASN.1 substructures
6ccfb18
Always return a high-level error code from X.509 module
d57a3a6
Adapt ChangeLog
3cddba8
Improve documentation of mbedtls_x509_get_ext()
3c03a88
Correct placement of ChangeLog entry
ca6aee4
Merge remote-tracking branch 'public/pr/2641' into HEAD
simonbutcher 150deca
Merge remote-tracking branch 'public/pr/2642' into HEAD
simonbutcher fe20bea
Merge remote-tracking branch 'public/pr/2643' into HEAD
simonbutcher a1491fe
Merge remote-tracking branch 'public/pr/2651' into HEAD
simonbutcher a5c481e
Extend negative testing for X.509 TBS header parsing
a9ef412
Extend negative testing for X.509 Version parsing
e7d8f96
Extend negative testing for X.509 Serial number parsing
a328fff
Extend negative testing for X.509 AlgorithmIdentifier parsing
5e2cf38
Extend negative testing for X.509 Issuer parsing
18459d4
Extend negative testing for X.509 Validity parsing
28ae6b1
Extend negative testing for X.509 Subject parsing
bb955e5
Extend negative testing for X.509 SubjectPublicKeyInfo parsing
9f06b50
Extend negative testing for X.509 IssuerID parsing
be3850a
Extend negative testing for X.509 SubjectID parsing
05987e3
Extend negative testing for X.509 v3 Extension parsing
5f88a77
Extend negative testing for X.509 SignatureAlgorithm parsing
44199b6
Extend negative testing for X.509 Signature parsing
2389d16
Shorten X.509 CRT parsing test names
0f5acc1
Use ASN.1 NULL TLVs when testing invalid tags
19db19e
Fix test case name formatting in X.509 parsing suite
31af3b8
Fix non-DER length encoding in two X.509 CRT parsing tests
60dd6fc
Fix test dependencies in X.509 CRT parsing suite
764fbdf
Always use the same X.509 alg structure inside and outside of TBS
7ca07e3
Improve name of X.509 CRT parsing test
d51d485
Add negative X.509 parsing tests for IssuerID/SubjectID in v1 CRT
04b10c0
Add negative X.509 parsing tests for v3Ext in v1/v2 CRT
8671e81
Improve X.509 CRT parsing test names
7717c41
Add X.509 CRT parsing test for mixed time-encodings
c6f874b
Show removed symbols in abi check
dgreen-arm 2de07f1
ssl: Don't access non-existent encrypt_then_mac field
Patater 6b1683d
all.sh: Perform targeted EtM tests for MAC-less configs
Patater ab11889
test: Check empty buffer decryption for chachapoly
Patater 2353b54
test: Remove redundant 0-byte decryption test
Patater bb16d0c
Merge remote-tracking branch 'origin/pr/2654' into development
Patater 048df33
Merge remote-tracking branch 'origin/pr/2679' into development
Patater aa4d152
SSL reproducible test mode
catenacyber e1ae731
Update crypto submodule to 1.1.0d2
Patater 986b6f2
Style fixes
catenacyber 95f5cbc
Don't systematically rebuild programs
gilles-peskine-arm 5d26e7c
Pass -m32 to the linker as well
gilles-peskine-arm 3ca5085
Code review
catenacyber a3daa21
Merge remote-tracking branch 'origin/pr/2678' into development
Patater 7c9d724
Option used added in string
catenacyber 0ff84fb
Only warns if MBEDTLS_HAVE_TIME
catenacyber f91b372
More clarity for ifdef orders
catenacyber 12e85de
Adds missing ret definition
catenacyber d2235f2
Commit to C90 style
catenacyber 154feb2
comment alignment
catenacyber c5de462
Making version features easily ROM-able when using Arm C compiler.
mate-varga-arm 961e677
UDP proxy: Don't attempt to dissect dgram into records when dropping
61cf9e3
Fix documentation of X.509 parsing test
e7655df
Make test suites compatible with #include <assert.h>
gilles-peskine-arm c7ad122
Make it easier to define MBEDTLS_PARAM_FAILED as assert
gilles-peskine-arm 3abbced
Remove mbedtls_param_failed from programs
gilles-peskine-arm e1b02df
Merge remote-tracking branch 'origin/pr/2260' into development
Patater 6b5dc68
Merge remote-tracking branch 'origin/pr/2430' into development
Patater 39a8a26
Merge remote-tracking branch 'origin/pr/2661' into development
Patater d042198
Merge remote-tracking branch 'origin/pr/2675' into development
Patater 3acb5eb
Merge remote-tracking branch 'origin/pr/2694' into development
Patater adcde5e
Add all.sh component that exercises invalid_param checks
gilles-peskine-arm 3097a71
Update crypto submodule
gilles-peskine-arm 7af080a
Merge remote-tracking branch 'origin/pr/2442' into development
Patater c54ee93
Merge remote-tracking branch 'origin/pr/2443' into development
Patater f3820e3
Fix misuse of signed ints in the HAVEGE module
gilles-peskine-arm 738153a
Adding usage and removing dummy random
catenacyber b94cf82
unconditional mbedtls_ssl_conf_rng
catenacyber a152e42
net_sockets: Fix typo in net_would_block()
Patater a180926
timing: Remove redundant include file
Patater 32eb58f
platform: Include stdarg.h where needed
Patater 4f4af6e
windows: Fix Release x64 configuration
Patater d431104
ssl_tls: Enable Suite B with subset of ECP curves
Patater befe1e1
programs: Make `make clean` clean all programs always
Patater aada0c7
Merge remote-tracking branch 'origin/pr/2053' into development
Patater ca4e4a8
Merge remote-tracking branch 'origin/pr/2614' into development
Patater 8d936e8
Merge remote-tracking branch 'origin/pr/2681' into development
Patater e2d5b9e
Merge remote-tracking branch 'origin/pr/2690' into development
Patater fd0f654
Merge remote-tracking branch 'origin/pr/2697' into development
Patater 66b7edb
Merge remote-tracking branch 'origin/pr/2711' into development
Patater 7233352
Fuzz testing
catenacyber 9c7b698
Fuzz performance test without entropy
catenacyber f049304
Removes warnings for unused parameters
catenacyber 2b7c9a2
Use rand instead of srand
catenacyber 3abe15b
Fixes dummy leak in fuzz driver
catenacyber dbc0db9
include bignum.h from x509_crt.h
catenacyber 0863382
Using custom time
catenacyber 499c735
Factoring code
catenacyber 801194b
Adds a ChangeLog entry
catenacyber 8149627
Fuzz README and direct compilation
catenacyber 03e87d9
Makefile support 1
catenacyber c32fd24
Protecting client/server fuzz targts with ifdefs
catenacyber cd6cd81
copyediting README.md
catenacyber a8210b3
Also clean the fuzz subdirectory
catenacyber 7fff1fb
Ignore compiled object files and executables
catenacyber 661d725
Deref pointer when using sizeof in x509_get_other_name
ekse 33908e8
update the test script
5075f4d
Update the test encoding to support python3
64e4595
Make the script portable to both pythons
b220489
Refactor get_byte function
72662a4
Refactor receive_uint32()
3278081
Remove use of CMAKE_SOURCE_DIR
ashesman 33b6a99
ChangeLog: Enable builds as a CMake subproject
Patater 41421c4
README: Enable builds as a CMake subproject
Patater ab83fdf
CMake: Add a subdirectory build regression test
Patater c2d56a4
Allow declarations after statements
gilles-peskine-arm cd2c127
Adds LDFLAGS fsanitize=address
catenacyber adc23e6
Adding ifdefs to avoid warnings for unused globals
catenacyber 1c582c3
Restore tests/fuzz/Makefile after in-tree cmake
catenacyber cf8fdfd
Documentation for corpus generation
catenacyber 0069ab7
ChangeLog: Add ChangeLog entry for #2681
Patater 48f35f5
Move fuzz directory to programs
catenacyber 5dece6d
Restore programs/fuzz/Makefile after in-tree cmake
catenacyber daab28a
checks MBEDTLS_PEM_PARSE_C
catenacyber e4e2d3a
Add docker-based test scripts
pkolbus 4225b1a
Clean up file prologue comments
pkolbus 49c2435
Change Docker container to bionic
pkolbus be54358
Dockerfile: apt -> apt-get
pkolbus 718c74c
Improve compatibility with firewalled networks
pkolbus a4b94c4
Update Mbed Crypto to contain mbed-crypto#152
Patater 5131f77
Fix parsing issue when int parameter is in base 16
85aba47
Consistently spell -Wextra
gilles-peskine-arm 1e65771
Remove redundant compiler flag
gilles-peskine-arm be51716
Warn if VLAs are used
gilles-peskine-arm 6e70eb2
tests: Limit each log to 10 GiB
Patater 6aa32cc
Allow running /somewhere/else/path/to/abi_check.py
gilles-peskine-arm b6ce234
Document how to build the typical argument for -s
gilles-peskine-arm 3e2da4a
Record the commits that were compared
gilles-peskine-arm ada828f
Split _abi_compliance_command into smaller functions
gilles-peskine-arm 7dfcfce
Use the docstring in the command line help
gilles-peskine-arm 55b49ee
Allow TODO in code
gilles-peskine-arm 0f220ec
Test with MBEDTLS_ECP_RESTARTABLE
Patater 06e752b
Update crypto submodule to a revision with the HAVEGE header changes
gilles-peskine-arm 482a479
Merge remote-tracking branch 'origin/pr/2699' into development
Patater 702c659
Add a linker flag to enable gcov in basic-build-test.sh
catenacyber 3e408d5
Fixes warnings from MSVC
catenacyber 2321945
Syntax fix
catenacyber b348a3b
Merge remote-tracking branch 'origin/pr/2314' into development
Patater f473fa8
Merge remote-tracking branch 'origin/pr/2455' into development
Patater 6d77d20
Merge remote-tracking branch 'origin/pr/2632' into development
Patater 0b8b5e3
Merge remote-tracking branch 'origin/pr/2706' into development
Patater 150d774
Merge remote-tracking branch 'origin/pr/2719' into development
Patater 58259fe
Merge remote-tracking branch 'origin/pr/2721' into development
Patater 01604a3
Merge remote-tracking branch 'origin/pr/2726' into development
Patater 98c234f
Merge remote-tracking branch 'origin/pr/2729' into development
Patater 5db519b
Merge remote-tracking branch 'origin/pr/2730' into development
Patater 74a87f8
Merge remote-tracking branch 'origin/pr/2738' into development
Patater b3d3127
Style corrections
catenacyber a82fdd4
Removing space before opening parenthesis
catenacyber 42a2ce8
No booleans and import config
catenacyber a864db0
Do not build fuzz on windows
catenacyber 072959f
Merge remote-tracking branch 'origin/pr/1622' into development
Patater 8306508
Merge remote-tracking branch 'origin/pr/2660' into development
Patater ff645d9
Merge remote-tracking branch 'origin/pr/2727' into development
Patater 8dd1690
Merge remote-tracking branch 'tls/development' into development
Patater File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,4 +1,3 @@ | ||
|
||
DESTDIR=/usr/local | ||
PREFIX=mbedtls_ | ||
|
||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.