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.h21
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
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 77
79void ERR_load_BUF_strings(void ); 78void ERR_load_BUF_strings(void );
80 79
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
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