summaryrefslogtreecommitdiffstats
path: root/crypto/buffer/buffer.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-04-29 22:08:57 +0000
committerRichard Levitte <levitte@openssl.org>2003-04-29 22:08:57 +0000
commit1ae0a83bdd37cdbe09d6612b7d50627dbabbe882 (patch)
tree5b2f807ec89ce7d9c1312812a5147bbb7913cf1e /crypto/buffer/buffer.h
parent7ae46c676142a675ea3fd0c8ca66d2cbc6a5a30e (diff)
Add BUF_strndup() and BUF_memdup(). Not currently used, but I've code
that uses them that I'll commit in a few days.
Diffstat (limited to 'crypto/buffer/buffer.h')
-rw-r--r--crypto/buffer/buffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/buffer/buffer.h b/crypto/buffer/buffer.h
index 465dc34f3f..164f8aa6ee 100644
--- a/crypto/buffer/buffer.h
+++ b/crypto/buffer/buffer.h
@@ -78,6 +78,8 @@ void BUF_MEM_free(BUF_MEM *a);
int BUF_MEM_grow(BUF_MEM *str, int len);
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);
/* safe string functions */
size_t BUF_strlcpy(char *dst,const char *src,size_t siz);
@@ -93,9 +95,11 @@ void ERR_load_BUF_strings(void);
/* Error codes for the BUF functions. */
/* Function codes. */
+#define BUF_F_BUF_MEMDUP 103
#define BUF_F_BUF_MEM_GROW 100
#define BUF_F_BUF_MEM_NEW 101
#define BUF_F_BUF_STRDUP 102
+#define BUF_F_BUF_STRNDUP 104
/* Reason codes. */