summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/buffer/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/buffer/buffer.h')
-rw-r--r--src/lib/libcrypto/buffer/buffer.h25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/lib/libcrypto/buffer/buffer.h b/src/lib/libcrypto/buffer/buffer.h
index 417548c04a..11e2d0359a 100644
--- a/src/lib/libcrypto/buffer/buffer.h
+++ b/src/lib/libcrypto/buffer/buffer.h
@@ -70,38 +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
74BUF_MEM *BUF_MEM_new(void); 73BUF_MEM *BUF_MEM_new(void);
75void BUF_MEM_free(BUF_MEM *a); 74void BUF_MEM_free(BUF_MEM *a);
76int BUF_MEM_grow(BUF_MEM *str, int len); 75int BUF_MEM_grow(BUF_MEM *str, int len);
77char * BUF_strdup(char *str); 76char * BUF_strdup(const char *str);
78
79void ERR_load_BUF_strings(void );
80
81#else
82
83BUF_MEM *BUF_MEM_new();
84void BUF_MEM_free();
85int BUF_MEM_grow();
86char * BUF_strdup();
87
88void ERR_load_BUF_strings();
89
90#endif
91 77
92/* BEGIN ERROR CODES */ 78/* BEGIN ERROR CODES */
79/* 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.
81 */
82void ERR_load_BUF_strings(void);
83
93/* Error codes for the BUF functions. */ 84/* Error codes for the BUF functions. */
94 85
95/* Function codes. */ 86/* Function codes. */
96#define BUF_F_BUF_MEM_GROW 100 87#define BUF_F_BUF_MEM_GROW 100
97#define BUF_F_BUF_MEM_NEW 101 88#define BUF_F_BUF_MEM_NEW 101
98#define BUF_F_BUF_STRDUP 102 89#define BUF_F_BUF_STRDUP 102
99#define BUF_F_PXYCLNT_READ 103
100 90
101/* Reason codes. */ 91/* Reason codes. */
102 92
103#ifdef __cplusplus 93#ifdef __cplusplus
104} 94}
105#endif 95#endif
106#endif 96#endif
107