diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/buffer/buffer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/libcrypto/buffer/buffer.h b/src/lib/libcrypto/buffer/buffer.h index 11e2d0359a..465dc34f3f 100644 --- a/src/lib/libcrypto/buffer/buffer.h +++ b/src/lib/libcrypto/buffer/buffer.h | |||
| @@ -63,6 +63,9 @@ | |||
| 63 | extern "C" { | 63 | extern "C" { |
| 64 | #endif | 64 | #endif |
| 65 | 65 | ||
| 66 | #include <stddef.h> | ||
| 67 | #include <sys/types.h> | ||
| 68 | |||
| 66 | typedef struct buf_mem_st | 69 | typedef struct buf_mem_st |
| 67 | { | 70 | { |
| 68 | int length; /* current number of bytes */ | 71 | int length; /* current number of bytes */ |
| @@ -73,8 +76,14 @@ typedef struct buf_mem_st | |||
| 73 | BUF_MEM *BUF_MEM_new(void); | 76 | BUF_MEM *BUF_MEM_new(void); |
| 74 | void BUF_MEM_free(BUF_MEM *a); | 77 | void BUF_MEM_free(BUF_MEM *a); |
| 75 | int BUF_MEM_grow(BUF_MEM *str, int len); | 78 | int BUF_MEM_grow(BUF_MEM *str, int len); |
| 79 | int BUF_MEM_grow_clean(BUF_MEM *str, int len); | ||
| 76 | char * BUF_strdup(const char *str); | 80 | char * BUF_strdup(const char *str); |
| 77 | 81 | ||
| 82 | /* safe string functions */ | ||
| 83 | size_t BUF_strlcpy(char *dst,const char *src,size_t siz); | ||
| 84 | size_t BUF_strlcat(char *dst,const char *src,size_t siz); | ||
| 85 | |||
| 86 | |||
| 78 | /* BEGIN ERROR CODES */ | 87 | /* BEGIN ERROR CODES */ |
| 79 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 88 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
| 80 | * made after this point may be overwritten when the script is next run. | 89 | * made after this point may be overwritten when the script is next run. |
