mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-10 10:35:39 +00:00
Merge remote-tracking branch 'origin/pr/2239' into development
* origin/pr/2239: Add ChangeLog entry Fix private DER output shifted by one byte.
This commit is contained in:
commit
eb0195d55b
|
@ -49,6 +49,9 @@ Bugfix
|
||||||
extensions in CSRs and CRTs that caused these bitstrings to not be encoded
|
extensions in CSRs and CRTs that caused these bitstrings to not be encoded
|
||||||
correctly as trailing zeroes were not accounted for as unused bits in the
|
correctly as trailing zeroes were not accounted for as unused bits in the
|
||||||
leading content octet. Fixes #1610.
|
leading content octet. Fixes #1610.
|
||||||
|
* Fix private key DER output in the key_app_writer example. File contents
|
||||||
|
were shifted by one byte, creating an invalid ASN.1 tag. Fixed by
|
||||||
|
Christian Walther in #2239.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Reduce RAM consumption during session renegotiation by not storing
|
* Reduce RAM consumption during session renegotiation by not storing
|
||||||
|
|
|
@ -189,7 +189,7 @@ static int write_private_key( mbedtls_pk_context *key, const char *output_file )
|
||||||
return( ret );
|
return( ret );
|
||||||
|
|
||||||
len = ret;
|
len = ret;
|
||||||
c = output_buf + sizeof(output_buf) - len - 1;
|
c = output_buf + sizeof(output_buf) - len;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ( f = fopen( output_file, "w" ) ) == NULL )
|
if( ( f = fopen( output_file, "w" ) ) == NULL )
|
||||||
|
|
Loading…
Reference in a new issue