summaryrefslogtreecommitdiff
path: root/Cryptlib/Include/openssl/buffer.h
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2016-09-22 10:15:26 -0400
committerMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2016-09-22 10:15:26 -0400
commit5998f019f85f765070f049332bf68d347d60c993 (patch)
tree796531832eed643b2fec02ae7f0949e84d152968 /Cryptlib/Include/openssl/buffer.h
parente3ef28acdfacfe07c42662d86af2135d1a100c24 (diff)
parent62f0afa2ecead02b1258dabab8097ca278a22f8f (diff)
downloadefi-boot-shim-5998f019f85f765070f049332bf68d347d60c993.tar.gz
efi-boot-shim-5998f019f85f765070f049332bf68d347d60c993.zip
New upstream release.
Diffstat (limited to 'Cryptlib/Include/openssl/buffer.h')
-rw-r--r--Cryptlib/Include/openssl/buffer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Cryptlib/Include/openssl/buffer.h b/Cryptlib/Include/openssl/buffer.h
index c343dd77..efd240a5 100644
--- a/Cryptlib/Include/openssl/buffer.h
+++ b/Cryptlib/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);