summaryrefslogtreecommitdiff
path: root/windows-x86_64/include/openssl/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'windows-x86_64/include/openssl/buffer.h')
-rw-r--r--windows-x86_64/include/openssl/buffer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/windows-x86_64/include/openssl/buffer.h b/windows-x86_64/include/openssl/buffer.h
index 632df93..efd240a 100644
--- a/windows-x86_64/include/openssl/buffer.h
+++ b/windows-x86_64/include/openssl/buffer.h
@@ -84,8 +84,15 @@ BUF_MEM *BUF_MEM_new(void);
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);
+size_t BUF_strnlen(const char *str, size_t maxlen);
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);