mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Fix DER output of gen_key app (found by Gergely Budai)
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user