Add mbedtls_asn1_write_len() support for 3 and 4 byte lengths

As a consequence also adds coverage for reading 3 and 4 byte lengths
(which were not covered before)
This commit is contained in:
Paul Bakker 2016-07-14 11:39:56 +01:00 committed by Simon Butcher
parent 5e8b77cd8c
commit c7d6bd4b5f
3 changed files with 52 additions and 18 deletions

View file

@ -40,8 +40,6 @@ extern "C" {
* \param start start of the buffer (for bounds-checking)
* \param len the length to write
*
* \note lengths over 65535 are not supported at the moment
*
* \return the length written or a negative error code
*/
int mbedtls_asn1_write_len( unsigned char **p, unsigned char *start, size_t len );