diff options
Diffstat (limited to 'src/lib/libcrypto/buffer/buffer.h')
-rw-r--r-- | src/lib/libcrypto/buffer/buffer.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/lib/libcrypto/buffer/buffer.h b/src/lib/libcrypto/buffer/buffer.h index 417548c04a..bff26bf391 100644 --- a/src/lib/libcrypto/buffer/buffer.h +++ b/src/lib/libcrypto/buffer/buffer.h | |||
@@ -70,36 +70,27 @@ typedef struct buf_mem_st | |||
70 | int max; /* size of buffer */ | 70 | int max; /* size of buffer */ |
71 | } BUF_MEM; | 71 | } BUF_MEM; |
72 | 72 | ||
73 | #ifndef NOPROTO | ||
74 | BUF_MEM *BUF_MEM_new(void); | 73 | BUF_MEM *BUF_MEM_new(void); |
75 | void BUF_MEM_free(BUF_MEM *a); | 74 | void BUF_MEM_free(BUF_MEM *a); |
76 | int BUF_MEM_grow(BUF_MEM *str, int len); | 75 | int BUF_MEM_grow(BUF_MEM *str, int len); |
77 | char * BUF_strdup(char *str); | 76 | char * BUF_strdup(const char *str); |
78 | 77 | ||
79 | void ERR_load_BUF_strings(void ); | 78 | void ERR_load_BUF_strings(void ); |
80 | 79 | ||
81 | #else | ||
82 | |||
83 | BUF_MEM *BUF_MEM_new(); | ||
84 | void BUF_MEM_free(); | ||
85 | int BUF_MEM_grow(); | ||
86 | char * BUF_strdup(); | ||
87 | |||
88 | void ERR_load_BUF_strings(); | ||
89 | |||
90 | #endif | ||
91 | |||
92 | /* BEGIN ERROR CODES */ | 80 | /* BEGIN ERROR CODES */ |
81 | /* The following lines are auto generated by the script mkerr.pl. Any changes | ||
82 | * made after this point may be overwritten when the script is next run. | ||
83 | */ | ||
84 | |||
93 | /* Error codes for the BUF functions. */ | 85 | /* Error codes for the BUF functions. */ |
94 | 86 | ||
95 | /* Function codes. */ | 87 | /* Function codes. */ |
96 | #define BUF_F_BUF_MEM_GROW 100 | 88 | #define BUF_F_BUF_MEM_GROW 100 |
97 | #define BUF_F_BUF_MEM_NEW 101 | 89 | #define BUF_F_BUF_MEM_NEW 101 |
98 | #define BUF_F_BUF_STRDUP 102 | 90 | #define BUF_F_BUF_STRDUP 102 |
99 | #define BUF_F_PXYCLNT_READ 103 | ||
100 | 91 | ||
101 | /* Reason codes. */ | 92 | /* Reason codes. */ |
102 | 93 | ||
103 | #ifdef __cplusplus | 94 | #ifdef __cplusplus |
104 | } | 95 | } |
105 | #endif | 96 | #endif |