Commit 49ce6f09 authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard
Browse files

Fix constness of asn1_write_mpi()

parent 5bf262d7
......@@ -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 */
/**
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment