Fix constness of asn1_write_mpi()

This commit is contained in:
Manuel Pégourié-Gonnard 2015-03-31 13:05:39 +02:00
parent 5bf262d710
commit 49ce6f0973
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ int asn1_write_raw_buffer( unsigned char **p, unsigned char *start,
*
* \return the length written or a negative error code
*/
int asn1_write_mpi( unsigned char **p, unsigned char *start, mpi *X );
int asn1_write_mpi( unsigned char **p, unsigned char *start, const mpi *X );
#endif /* POLARSSL_BIGNUM_C */
/**

View file

@ -99,7 +99,7 @@ int asn1_write_raw_buffer( unsigned char **p, unsigned char *start,
}
#if defined(POLARSSL_BIGNUM_C)
int asn1_write_mpi( unsigned char **p, unsigned char *start, mpi *X )
int asn1_write_mpi( unsigned char **p, unsigned char *start, const mpi *X )
{
int ret;
size_t len = 0;