diff options
Diffstat (limited to 'src/lib/libcrypto/bio')
-rw-r--r-- | src/lib/libcrypto/bio/bio_cb.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_file.c | 28 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_log.c | 20 |
3 files changed, 26 insertions, 26 deletions
diff --git a/src/lib/libcrypto/bio/bio_cb.c b/src/lib/libcrypto/bio/bio_cb.c index 9bcbc321d9..7334a254bf 100644 --- a/src/lib/libcrypto/bio/bio_cb.c +++ b/src/lib/libcrypto/bio/bio_cb.c | |||
@@ -63,11 +63,11 @@ | |||
63 | #include <openssl/bio.h> | 63 | #include <openssl/bio.h> |
64 | #include <openssl/err.h> | 64 | #include <openssl/err.h> |
65 | 65 | ||
66 | long MS_CALLBACK BIO_debug_callback(BIO *bio, int cmd, const char *argp, | 66 | long BIO_debug_callback(BIO *bio, int cmd, const char *argp, |
67 | int argi, long argl, long ret) | 67 | int argi, long argl, long ret) |
68 | { | 68 | { |
69 | BIO *b; | 69 | BIO *b; |
70 | MS_STATIC char buf[256]; | 70 | char buf[256]; |
71 | char *p; | 71 | char *p; |
72 | long r=1; | 72 | long r=1; |
73 | size_t p_maxlen; | 73 | size_t p_maxlen; |
diff --git a/src/lib/libcrypto/bio/bss_file.c b/src/lib/libcrypto/bio/bss_file.c index b954fe7ebc..4a4e747bc7 100644 --- a/src/lib/libcrypto/bio/bss_file.c +++ b/src/lib/libcrypto/bio/bss_file.c | |||
@@ -95,13 +95,13 @@ | |||
95 | 95 | ||
96 | #if !defined(OPENSSL_NO_STDIO) | 96 | #if !defined(OPENSSL_NO_STDIO) |
97 | 97 | ||
98 | static int MS_CALLBACK file_write(BIO *h, const char *buf, int num); | 98 | static int file_write(BIO *h, const char *buf, int num); |
99 | static int MS_CALLBACK file_read(BIO *h, char *buf, int size); | 99 | static int file_read(BIO *h, char *buf, int size); |
100 | static int MS_CALLBACK file_puts(BIO *h, const char *str); | 100 | static int file_puts(BIO *h, const char *str); |
101 | static int MS_CALLBACK file_gets(BIO *h, char *str, int size); | 101 | static int file_gets(BIO *h, char *str, int size); |
102 | static long MS_CALLBACK file_ctrl(BIO *h, int cmd, long arg1, void *arg2); | 102 | static long file_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
103 | static int MS_CALLBACK file_new(BIO *h); | 103 | static int file_new(BIO *h); |
104 | static int MS_CALLBACK file_free(BIO *data); | 104 | static int file_free(BIO *data); |
105 | static BIO_METHOD methods_filep= | 105 | static BIO_METHOD methods_filep= |
106 | { | 106 | { |
107 | BIO_TYPE_FILE, | 107 | BIO_TYPE_FILE, |
@@ -202,7 +202,7 @@ BIO_METHOD *BIO_s_file(void) | |||
202 | return(&methods_filep); | 202 | return(&methods_filep); |
203 | } | 203 | } |
204 | 204 | ||
205 | static int MS_CALLBACK file_new(BIO *bi) | 205 | static int file_new(BIO *bi) |
206 | { | 206 | { |
207 | bi->init=0; | 207 | bi->init=0; |
208 | bi->num=0; | 208 | bi->num=0; |
@@ -211,7 +211,7 @@ static int MS_CALLBACK file_new(BIO *bi) | |||
211 | return(1); | 211 | return(1); |
212 | } | 212 | } |
213 | 213 | ||
214 | static int MS_CALLBACK file_free(BIO *a) | 214 | static int file_free(BIO *a) |
215 | { | 215 | { |
216 | if (a == NULL) return(0); | 216 | if (a == NULL) return(0); |
217 | if (a->shutdown) | 217 | if (a->shutdown) |
@@ -230,7 +230,7 @@ static int MS_CALLBACK file_free(BIO *a) | |||
230 | return(1); | 230 | return(1); |
231 | } | 231 | } |
232 | 232 | ||
233 | static int MS_CALLBACK file_read(BIO *b, char *out, int outl) | 233 | static int file_read(BIO *b, char *out, int outl) |
234 | { | 234 | { |
235 | int ret=0; | 235 | int ret=0; |
236 | 236 | ||
@@ -250,7 +250,7 @@ static int MS_CALLBACK file_read(BIO *b, char *out, int outl) | |||
250 | return(ret); | 250 | return(ret); |
251 | } | 251 | } |
252 | 252 | ||
253 | static int MS_CALLBACK file_write(BIO *b, const char *in, int inl) | 253 | static int file_write(BIO *b, const char *in, int inl) |
254 | { | 254 | { |
255 | int ret=0; | 255 | int ret=0; |
256 | 256 | ||
@@ -270,7 +270,7 @@ static int MS_CALLBACK file_write(BIO *b, const char *in, int inl) | |||
270 | return(ret); | 270 | return(ret); |
271 | } | 271 | } |
272 | 272 | ||
273 | static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) | 273 | static long file_ctrl(BIO *b, int cmd, long num, void *ptr) |
274 | { | 274 | { |
275 | long ret=1; | 275 | long ret=1; |
276 | FILE *fp=(FILE *)b->ptr; | 276 | FILE *fp=(FILE *)b->ptr; |
@@ -440,7 +440,7 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
440 | return(ret); | 440 | return(ret); |
441 | } | 441 | } |
442 | 442 | ||
443 | static int MS_CALLBACK file_gets(BIO *bp, char *buf, int size) | 443 | static int file_gets(BIO *bp, char *buf, int size) |
444 | { | 444 | { |
445 | int ret=0; | 445 | int ret=0; |
446 | 446 | ||
@@ -461,7 +461,7 @@ static int MS_CALLBACK file_gets(BIO *bp, char *buf, int size) | |||
461 | return(ret); | 461 | return(ret); |
462 | } | 462 | } |
463 | 463 | ||
464 | static int MS_CALLBACK file_puts(BIO *bp, const char *str) | 464 | static int file_puts(BIO *bp, const char *str) |
465 | { | 465 | { |
466 | int n,ret; | 466 | int n,ret; |
467 | 467 | ||
diff --git a/src/lib/libcrypto/bio/bss_log.c b/src/lib/libcrypto/bio/bss_log.c index 2227b2b52d..1cc413a916 100644 --- a/src/lib/libcrypto/bio/bss_log.c +++ b/src/lib/libcrypto/bio/bss_log.c | |||
@@ -122,11 +122,11 @@ | |||
122 | #define LOG_DAEMON OPC$M_NM_NTWORK | 122 | #define LOG_DAEMON OPC$M_NM_NTWORK |
123 | #endif | 123 | #endif |
124 | 124 | ||
125 | static int MS_CALLBACK slg_write(BIO *h, const char *buf, int num); | 125 | static int slg_write(BIO *h, const char *buf, int num); |
126 | static int MS_CALLBACK slg_puts(BIO *h, const char *str); | 126 | static int slg_puts(BIO *h, const char *str); |
127 | static long MS_CALLBACK slg_ctrl(BIO *h, int cmd, long arg1, void *arg2); | 127 | static long slg_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
128 | static int MS_CALLBACK slg_new(BIO *h); | 128 | static int slg_new(BIO *h); |
129 | static int MS_CALLBACK slg_free(BIO *data); | 129 | static int slg_free(BIO *data); |
130 | static void xopenlog(BIO* bp, char* name, int level); | 130 | static void xopenlog(BIO* bp, char* name, int level); |
131 | static void xsyslog(BIO* bp, int priority, const char* string); | 131 | static void xsyslog(BIO* bp, int priority, const char* string); |
132 | static void xcloselog(BIO* bp); | 132 | static void xcloselog(BIO* bp); |
@@ -149,7 +149,7 @@ BIO_METHOD *BIO_s_log(void) | |||
149 | return(&methods_slg); | 149 | return(&methods_slg); |
150 | } | 150 | } |
151 | 151 | ||
152 | static int MS_CALLBACK slg_new(BIO *bi) | 152 | static int slg_new(BIO *bi) |
153 | { | 153 | { |
154 | bi->init=1; | 154 | bi->init=1; |
155 | bi->num=0; | 155 | bi->num=0; |
@@ -158,14 +158,14 @@ static int MS_CALLBACK slg_new(BIO *bi) | |||
158 | return(1); | 158 | return(1); |
159 | } | 159 | } |
160 | 160 | ||
161 | static int MS_CALLBACK slg_free(BIO *a) | 161 | static int slg_free(BIO *a) |
162 | { | 162 | { |
163 | if (a == NULL) return(0); | 163 | if (a == NULL) return(0); |
164 | xcloselog(a); | 164 | xcloselog(a); |
165 | return(1); | 165 | return(1); |
166 | } | 166 | } |
167 | 167 | ||
168 | static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl) | 168 | static int slg_write(BIO *b, const char *in, int inl) |
169 | { | 169 | { |
170 | int ret= inl; | 170 | int ret= inl; |
171 | char* buf; | 171 | char* buf; |
@@ -218,7 +218,7 @@ static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl) | |||
218 | return(ret); | 218 | return(ret); |
219 | } | 219 | } |
220 | 220 | ||
221 | static long MS_CALLBACK slg_ctrl(BIO *b, int cmd, long num, void *ptr) | 221 | static long slg_ctrl(BIO *b, int cmd, long num, void *ptr) |
222 | { | 222 | { |
223 | switch (cmd) | 223 | switch (cmd) |
224 | { | 224 | { |
@@ -232,7 +232,7 @@ static long MS_CALLBACK slg_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
232 | return(0); | 232 | return(0); |
233 | } | 233 | } |
234 | 234 | ||
235 | static int MS_CALLBACK slg_puts(BIO *bp, const char *str) | 235 | static int slg_puts(BIO *bp, const char *str) |
236 | { | 236 | { |
237 | int n,ret; | 237 | int n,ret; |
238 | 238 | ||