diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-04-10 00:11:30 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-04-10 00:11:30 +0000 |
commit | 9befdf1d2072f3366086583462332cf6f2bc1540 (patch) | |
tree | 75b7a912df90b997a0d4100a3ef786113b32a5dc /crypto/buffer/buffer.h | |
parent | 75d44c0452e8807dcd9dd126390dd8df35c57efa (diff) | |
download | openssl-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.h | 1 |
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); |