aboutsummaryrefslogtreecommitdiff
path: root/crypto/x509v3/v3_utl.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-04-11 12:26:53 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-04-11 12:26:53 +0000
commit376bf1d4aaddbc7645b364e6963b34951fe51f9b (patch)
treee7fe3d1d00282c2bf2960c4310f535223496ecb7 /crypto/x509v3/v3_utl.c
parentd318fb79d291b491b07ee073a0d352f14729786c (diff)
downloadopenssl-376bf1d4aaddbc7645b364e6963b34951fe51f9b.zip
openssl-376bf1d4aaddbc7645b364e6963b34951fe51f9b.tar.gz
openssl-376bf1d4aaddbc7645b364e6963b34951fe51f9b.tar.bz2
Constification.
Diffstat (limited to 'crypto/x509v3/v3_utl.c')
-rw-r--r--crypto/x509v3/v3_utl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c
index 3dba055..f1b5c94 100644
--- a/crypto/x509v3/v3_utl.c
+++ b/crypto/x509v3/v3_utl.c
@@ -360,10 +360,10 @@ static char *strip_spaces(char *name)
* @@@ (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;
- unsigned char *p;
+ const unsigned char *p;
int i;
const static char hexdig[] = "0123456789ABCDEF";
if(!buffer || !len) return NULL;
@@ -389,7 +389,7 @@ char *hex_to_string(unsigned char *buffer, long len)
* 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 ch, cl, *p;