mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 12:05:36 +01:00
Const correctness added for asn1write functions
This commit is contained in:
parent
c295b834a2
commit
37de6bec16
@ -35,8 +35,8 @@ int asn1_write_len( unsigned char **p, unsigned char *start, size_t len );
|
||||
int asn1_write_tag( unsigned char **p, unsigned char *start, unsigned char tag );
|
||||
int asn1_write_mpi( unsigned char **p, unsigned char *start, mpi *X );
|
||||
int asn1_write_null( unsigned char **p, unsigned char *start );
|
||||
int asn1_write_oid( unsigned char **p, unsigned char *start, char *oid );
|
||||
int asn1_write_algorithm_identifier( unsigned char **p, unsigned char *start, char *algorithm_oid );
|
||||
int asn1_write_oid( unsigned char **p, unsigned char *start, const char *oid );
|
||||
int asn1_write_algorithm_identifier( unsigned char **p, unsigned char *start, const char *algorithm_oid );
|
||||
int asn1_write_int( unsigned char **p, unsigned char *start, int val );
|
||||
int asn1_write_printable_string( unsigned char **p, unsigned char *start,
|
||||
char *text );
|
||||
|
@ -118,7 +118,7 @@ int asn1_write_null( unsigned char **p, unsigned char *start )
|
||||
return( len );
|
||||
}
|
||||
|
||||
int asn1_write_oid( unsigned char **p, unsigned char *start, char *oid )
|
||||
int asn1_write_oid( unsigned char **p, unsigned char *start, const char *oid )
|
||||
{
|
||||
int ret;
|
||||
size_t len = 0;
|
||||
@ -140,7 +140,7 @@ int asn1_write_oid( unsigned char **p, unsigned char *start, char *oid )
|
||||
}
|
||||
|
||||
int asn1_write_algorithm_identifier( unsigned char **p, unsigned char *start,
|
||||
char *algorithm_oid )
|
||||
const char *algorithm_oid )
|
||||
{
|
||||
int ret;
|
||||
size_t null_len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user