summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/buffer/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/crypto/buffer/buffer.h')
-rw-r--r--crypto/openssl/crypto/buffer/buffer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/openssl/crypto/buffer/buffer.h b/crypto/openssl/crypto/buffer/buffer.h
index 632df93..89183ad 100644
--- a/crypto/openssl/crypto/buffer/buffer.h
+++ b/crypto/openssl/crypto/buffer/buffer.h
@@ -85,7 +85,13 @@ void BUF_MEM_free(BUF_MEM *a);
int BUF_MEM_grow(BUF_MEM *str, size_t len);
int BUF_MEM_grow_clean(BUF_MEM *str, size_t len);
char *BUF_strdup(const char *str);
+
+/*
+ * Like strndup, but in addition, explicitly guarantees to never read past the
+ * first |siz| bytes of |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, const unsigned char *in, size_t siz);
OpenPOWER on IntegriCloud