Constification.
This commit is contained in:
parent
d318fb79d2
commit
376bf1d4aa
@ -360,10 +360,10 @@ static char *strip_spaces(char *name)
|
|||||||
* @@@ (Contents of buffer are always kept in ASCII, also on EBCDIC machines)
|
* @@@ (Contents of buffer are always kept in ASCII, also on EBCDIC machines)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *hex_to_string(unsigned char *buffer, long len)
|
char *hex_to_string(const unsigned char *buffer, long len)
|
||||||
{
|
{
|
||||||
char *tmp, *q;
|
char *tmp, *q;
|
||||||
unsigned char *p;
|
const unsigned char *p;
|
||||||
int i;
|
int i;
|
||||||
const static char hexdig[] = "0123456789ABCDEF";
|
const static char hexdig[] = "0123456789ABCDEF";
|
||||||
if(!buffer || !len) return NULL;
|
if(!buffer || !len) return NULL;
|
||||||
@ -389,7 +389,7 @@ char *hex_to_string(unsigned char *buffer, long len)
|
|||||||
* a buffer
|
* a buffer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned char *string_to_hex(char *str, long *len)
|
unsigned char *string_to_hex(const char *str, long *len)
|
||||||
{
|
{
|
||||||
unsigned char *hexbuf, *q;
|
unsigned char *hexbuf, *q;
|
||||||
unsigned char ch, cl, *p;
|
unsigned char ch, cl, *p;
|
||||||
|
@ -616,8 +616,8 @@ void *X509V3_get_d2i(STACK_OF(X509_EXTENSION) *x, int nid, int *crit, int *idx);
|
|||||||
X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc);
|
X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc);
|
||||||
int X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value, int crit, unsigned long flags);
|
int X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value, int crit, unsigned long flags);
|
||||||
|
|
||||||
char *hex_to_string(unsigned char *buffer, long len);
|
char *hex_to_string(const unsigned char *buffer, long len);
|
||||||
unsigned char *string_to_hex(char *str, long *len);
|
unsigned char *string_to_hex(const char *str, long *len);
|
||||||
int name_cmp(const char *name, const char *cmp);
|
int name_cmp(const char *name, const char *cmp);
|
||||||
|
|
||||||
void X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent,
|
void X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user