)]}' { "commit": "5903de45b6aa2501c59a8e2606b468297af2c8d4", "tree": "c466b32349b29bc68c8221e093c23945be537107", "parents": [ "f661c9c39cf75fa2f2c233dbc8d736fed7faae1d" ], "author": { "name": "Hanno Becker", "email": "hanno.becker@arm.com", "time": "Fri May 03 14:46:38 2019 +0100" }, "committer": { "name": "Hanno Becker", "email": "hanno.becker@arm.com", "time": "Mon Jun 03 16:07:50 2019 +0100" }, "message": "Split mbedtls_ssl_hdr_len() in separate functions for in/out records\n\nThe function mbedtls_ssl_hdr_len() returns the length of the record\nheader (so far: always 13 Bytes for DTLS, and always 5 Bytes for TLS).\n\nWith the introduction of the CID extension, the lengths of record\nheaders depends on whether the records are incoming or outgoing,\nand also on the current transform.\n\nPreparing for this, this commit splits mbedtls_ssl_hdr_len() in two\n-- so far unmodified -- functions mbedtls_ssl_in_hdr_len() and\nmbedtls_ssl_out_hdr_len() and replaces the uses of mbedtls_ssl_hdr_len()\naccording to whether they are about incoming or outgoing records.\n\nThere is no need to change the signature of mbedtls_ssl_{in/out}_hdr_len()\nin preparation for its dependency on the currently active transform,\nsince the SSL context is passed as an argument, and the currently\nactive transform is referenced from that.\n", "tree_diff": [ { "type": "modify", "old_id": "fd9177583793144155c5554331302abc3597df85", "old_mode": 33188, "old_path": "include/mbedtls/ssl_internal.h", "new_id": "b07da397182247b9438ad02b6efe15bfa02f7690", "new_mode": 33188, "new_path": "include/mbedtls/ssl_internal.h" }, { "type": "modify", "old_id": "51340b443da58f18550b81204c8f45383751e2fe", "old_mode": 33188, "old_path": "library/ssl_srv.c", "new_id": "29d5bdd7410dc8c55c7a3f60c8d21ba362d512bd", "new_mode": 33188, "new_path": "library/ssl_srv.c" }, { "type": "modify", "old_id": "8c3c74d23b39bd6898811a7bb131343ec62190b8", "old_mode": 33188, "old_path": "library/ssl_tls.c", "new_id": "8fb98ca963da3a183c541d7d2ad80fdc814cb6d9", "new_mode": 33188, "new_path": "library/ssl_tls.c" } ] }