ber: Add const to ber_write_octet_string input parameter.

This commit is contained in:
Mike Gilbert 2011-11-30 17:36:27 -05:00
parent 5b7fc71b37
commit c676bd0ac8
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ boolean ber_read_octet_string(STREAM* s, int* length)
* @param length string length
*/
void ber_write_octet_string(STREAM* s, uint8* oct_str, int length)
void ber_write_octet_string(STREAM* s, const uint8* oct_str, int length)
{
ber_write_universal_tag(s, BER_TAG_OCTET_STRING, false);
ber_write_length(s, length);

View File

@ -70,7 +70,7 @@ int ber_skip_sequence(int length);
int ber_skip_sequence_tag(int length);
boolean ber_read_bit_string(STREAM* s, int* length, uint8* padding);
boolean ber_read_octet_string(STREAM* s, int* length);
void ber_write_octet_string(STREAM* s, uint8* oct_str, int length);
void ber_write_octet_string(STREAM* s, const uint8* oct_str, int length);
int ber_write_octet_string_tag(STREAM* s, int length);
int ber_skip_octet_string(int length);
boolean ber_read_boolean(STREAM* s, boolean* value);