mirror of
https://github.com/cuberite/polarssl.git
synced 2025-08-22 20:40:14 -04:00
Fix private DER output shifted by one byte.
This commit is contained in:
parent
556d7d9e3b
commit
a92c5455cd
@ -173,7 +173,7 @@ static int write_private_key( mbedtls_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 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user