summaryrefslogtreecommitdiffstats
path: root/thirdparties/common/include/openssl/buffer.h
diff options
context:
space:
mode:
authorDoubango Telecom <github@doubango.org>2016-08-02 21:31:33 +0200
committerDoubango Telecom <github@doubango.org>2016-08-02 21:31:33 +0200
commita6e8cd78927b8a2115c051c9ce574241474a6ea4 (patch)
treec90b4c85a1f9c3d2f9b5a3b9e7d25c1a2b0d1f72 /thirdparties/common/include/openssl/buffer.h
parent6f5bd675fd67732ce19912a1c78b617c3a224a47 (diff)
downloaddoubango-a6e8cd78927b8a2115c051c9ce574241474a6ea4.zip
doubango-a6e8cd78927b8a2115c051c9ce574241474a6ea4.tar.gz
Update OpenSSL for Android and Windows to version 1.0.2h
Diffstat (limited to 'thirdparties/common/include/openssl/buffer.h')
-rw-r--r--[-rwxr-xr-x]thirdparties/common/include/openssl/buffer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/thirdparties/common/include/openssl/buffer.h b/thirdparties/common/include/openssl/buffer.h
index c343dd7..efd240a 100755..100644
--- a/thirdparties/common/include/openssl/buffer.h
+++ b/thirdparties/common/include/openssl/buffer.h
@@ -86,7 +86,13 @@ 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);
OpenPOWER on IntegriCloud