Fix DER output of gen_key app (found by Gergely Budai)

This commit is contained in:
Paul Bakker 2014-06-13 17:37:46 +02:00
parent 3461772559
commit 3c38f29a61
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ Bugfix
* Other minor issues (found by Peter Vaskovic) * Other minor issues (found by Peter Vaskovic)
* Fix symlink command for cross compiling with CMake (found by Andre * Fix symlink command for cross compiling with CMake (found by Andre
Heinecke) Heinecke)
* Fix DER output of gen_key app (found by Gergely Budai)
= PolarSSL 1.3.7 released on 2014-05-02 = PolarSSL 1.3.7 released on 2014-05-02
Features Features

View File

@ -143,7 +143,7 @@ static int write_private_key( 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 )