mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 17:15:42 +01: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 New Issue
Block a user