Fix private DER output shifted by one byte.

This commit is contained in:
Christian Walther
2019-01-31 19:22:03 +02:00
committed by Ron Eldor
parent 874b60423e
commit 38c919bc95
+1 -1
View File
@@ -189,7 +189,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 )