Const correctness added for asn1write functions

This commit is contained in:
Paul Bakker 2013-04-07 13:11:31 +02:00
parent c295b834a2
commit 37de6bec16
2 changed files with 4 additions and 4 deletions

View file

@ -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 );

View file

@ -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;