diff options
| author | markus <> | 2003-05-12 02:18:40 +0000 |
|---|---|---|
| committer | markus <> | 2003-05-12 02:18:40 +0000 |
| commit | d4fcd82bb7f6d603bd61e19a81ba97337b89dfca (patch) | |
| tree | d52e3a0f1f08f65ad283027e560e17ed0d720462 /src/lib/libcrypto/buffer/buffer.h | |
| parent | 582bbd139cd2afd58d10dc051c5b0b989b441074 (diff) | |
| download | openbsd-d4fcd82bb7f6d603bd61e19a81ba97337b89dfca.tar.gz openbsd-d4fcd82bb7f6d603bd61e19a81ba97337b89dfca.tar.bz2 openbsd-d4fcd82bb7f6d603bd61e19a81ba97337b89dfca.zip | |
merge 0.9.7b with local changes; crank majors for libssl/libcrypto
Diffstat (limited to 'src/lib/libcrypto/buffer/buffer.h')
| -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. |
