mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-22 22:00:58 +00:00
Merge remote-tracking branch 'origin/pr/2400' into mbedtls-2.7
* origin/pr/2400: Add ChangeLog entry Fix private DER output shifted by one byte.
This commit is contained in:
commit
f337513bce
|
@ -27,6 +27,9 @@ Bugfix
|
||||||
due to an unacceptable hash signature. The certificate has been
|
due to an unacceptable hash signature. The certificate has been
|
||||||
updated to one that is SHA-256 signed. Fix contributed by
|
updated to one that is SHA-256 signed. Fix contributed by
|
||||||
Illya Gerasymchuk.
|
Illya Gerasymchuk.
|
||||||
|
* 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
|
||||||
* Include configuration file in all header files that use configuration,
|
* Include configuration file in all header files that use configuration,
|
||||||
|
|
|
@ -175,7 +175,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