Fix constness of asn1_write_mpi()
This commit is contained in:
parent
5bf262d710
commit
49ce6f0973
2 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ int asn1_write_raw_buffer( unsigned char **p, unsigned char *start,
|
||||||
*
|
*
|
||||||
* \return the length written or a negative error code
|
* \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 */
|
#endif /* POLARSSL_BIGNUM_C */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -99,7 +99,7 @@ int asn1_write_raw_buffer( unsigned char **p, unsigned char *start,
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(POLARSSL_BIGNUM_C)
|
#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;
|
int ret;
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue