mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 09:35:39 +00:00
Fix constness of asn1_write_mpi()
This commit is contained in:
parent
5bf262d710
commit
49ce6f0973
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue