mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Fix constness of asn1_write_mpi()
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user