mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Fix DER output of gen_key app (found by Gergely Budai)
This commit is contained in:
parent
3461772559
commit
3c38f29a61
2 changed files with 2 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ static int write_private_key( 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…
Add table
Add a link
Reference in a new issue