summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2013-10-01 14:51:04 +0100
committerBen Laurie <ben@links.org>2013-10-01 14:53:18 +0100
commitb93916149d843df20e7e8e960813db81c7981863 (patch)
tree67196cbb80052db058f773a0e6b3149a43e710a8 /crypto
parent82f42a1d2e9271359b60d16249c26baadae788db (diff)
Constification.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/buffer/buffer.c2
-rw-r--r--crypto/buffer/buffer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/buffer/buffer.c b/crypto/buffer/buffer.c
index a6b590c3b2..d4a4ce43b3 100644
--- a/crypto/buffer/buffer.c
+++ b/crypto/buffer/buffer.c
@@ -179,7 +179,7 @@ int BUF_MEM_grow_clean(BUF_MEM *str, size_t len)
return(len);
}
-void BUF_reverse(unsigned char *out, unsigned char *in, size_t size)
+void BUF_reverse(unsigned char *out, const unsigned char *in, size_t size)
{
size_t i;
if (in)
diff --git a/crypto/buffer/buffer.h b/crypto/buffer/buffer.h
index 178e418282..f8da32b485 100644
--- a/crypto/buffer/buffer.h
+++ b/crypto/buffer/buffer.h
@@ -88,7 +88,7 @@ int BUF_MEM_grow_clean(BUF_MEM *str, size_t len);
char * BUF_strdup(const char *str);
char * BUF_strndup(const char *str, size_t siz);
void * BUF_memdup(const void *data, size_t siz);
-void BUF_reverse(unsigned char *out, unsigned char *in, size_t siz);
+void BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz);
/* safe string functions */
size_t BUF_strlcpy(char *dst,const char *src,size_t siz);