aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/buffer/buffer.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-04-10 00:11:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-04-10 00:11:30 +0000
commit9befdf1d2072f3366086583462332cf6f2bc1540 (patch)
tree75b7a912df90b997a0d4100a3ef786113b32a5dc /crypto/buffer/buffer.h
parent75d44c0452e8807dcd9dd126390dd8df35c57efa (diff)
downloadopenssl-9befdf1d2072f3366086583462332cf6f2bc1540.tar.gz
New utility function to reverse a buffer, either by copying or in-place.
Diffstat (limited to 'crypto/buffer/buffer.h')
-rw-r--r--crypto/buffer/buffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/buffer/buffer.h b/crypto/buffer/buffer.h
index 1db9607450..f7acca56ed 100644
--- a/crypto/buffer/buffer.h
+++ b/crypto/buffer/buffer.h
@@ -88,6 +88,7 @@ int BUF_MEM_grow_clean(BUF_MEM *str, int 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);
/* safe string functions */
size_t BUF_strlcpy(char *dst,const char *src,size_t siz);