diff options
author | Ben Laurie <ben@links.org> | 2014-05-21 11:54:54 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-05-21 11:56:21 +0100 |
commit | ed693e43329383c0d68455d83778cdc9748a074d (patch) | |
tree | 520883edfb4838bd9d5f2f22f242bf22cc5363eb /crypto/buffer/buffer.h | |
parent | a2219f6be36d12f02b6420dd95f819cf364baf1d (diff) | |
download | openssl-ed693e43329383c0d68455d83778cdc9748a074d.tar.gz |
Implement BUF_strnlen() and use it instead of strlen().
Diffstat (limited to 'crypto/buffer/buffer.h')
-rw-r--r-- | crypto/buffer/buffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/buffer/buffer.h b/crypto/buffer/buffer.h index f8da32b485..881c2da170 100644 --- a/crypto/buffer/buffer.h +++ b/crypto/buffer/buffer.h @@ -85,6 +85,7 @@ 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); char * BUF_strndup(const char *str, size_t siz); void * BUF_memdup(const void *data, size_t siz); |