mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 00:55:36 +00:00
Fix private DER output shifted by one byte.
This commit is contained in:
parent
bdc807dbe8
commit
42aa453de8
|
@ -175,7 +175,7 @@ static int write_private_key( mbedtls_pk_context *key, const char *output_file )
|
|||
return( 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 )
|
||||
|
|
Loading…
Reference in a new issue