summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio')
-rw-r--r--src/lib/libcrypto/bio/bio_cb.c4
-rw-r--r--src/lib/libcrypto/bio/bss_file.c28
-rw-r--r--src/lib/libcrypto/bio/bss_log.c20
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
66long MS_CALLBACK BIO_debug_callback(BIO *bio, int cmd, const char *argp, 66long 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
98static int MS_CALLBACK file_write(BIO *h, const char *buf, int num); 98static int file_write(BIO *h, const char *buf, int num);
99static int MS_CALLBACK file_read(BIO *h, char *buf, int size); 99static int file_read(BIO *h, char *buf, int size);
100static int MS_CALLBACK file_puts(BIO *h, const char *str); 100static int file_puts(BIO *h, const char *str);
101static int MS_CALLBACK file_gets(BIO *h, char *str, int size); 101static int file_gets(BIO *h, char *str, int size);
102static long MS_CALLBACK file_ctrl(BIO *h, int cmd, long arg1, void *arg2); 102static long file_ctrl(BIO *h, int cmd, long arg1, void *arg2);
103static int MS_CALLBACK file_new(BIO *h); 103static int file_new(BIO *h);
104static int MS_CALLBACK file_free(BIO *data); 104static int file_free(BIO *data);
105static BIO_METHOD methods_filep= 105static 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
205static int MS_CALLBACK file_new(BIO *bi) 205static 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
214static int MS_CALLBACK file_free(BIO *a) 214static 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
233static int MS_CALLBACK file_read(BIO *b, char *out, int outl) 233static 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
253static int MS_CALLBACK file_write(BIO *b, const char *in, int inl) 253static 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
273static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) 273static 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
443static int MS_CALLBACK file_gets(BIO *bp, char *buf, int size) 443static 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
464static int MS_CALLBACK file_puts(BIO *bp, const char *str) 464static 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
125static int MS_CALLBACK slg_write(BIO *h, const char *buf, int num); 125static int slg_write(BIO *h, const char *buf, int num);
126static int MS_CALLBACK slg_puts(BIO *h, const char *str); 126static int slg_puts(BIO *h, const char *str);
127static long MS_CALLBACK slg_ctrl(BIO *h, int cmd, long arg1, void *arg2); 127static long slg_ctrl(BIO *h, int cmd, long arg1, void *arg2);
128static int MS_CALLBACK slg_new(BIO *h); 128static int slg_new(BIO *h);
129static int MS_CALLBACK slg_free(BIO *data); 129static int slg_free(BIO *data);
130static void xopenlog(BIO* bp, char* name, int level); 130static void xopenlog(BIO* bp, char* name, int level);
131static void xsyslog(BIO* bp, int priority, const char* string); 131static void xsyslog(BIO* bp, int priority, const char* string);
132static void xcloselog(BIO* bp); 132static 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
152static int MS_CALLBACK slg_new(BIO *bi) 152static 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
161static int MS_CALLBACK slg_free(BIO *a) 161static 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
168static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl) 168static 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
221static long MS_CALLBACK slg_ctrl(BIO *b, int cmd, long num, void *ptr) 221static 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
235static int MS_CALLBACK slg_puts(BIO *bp, const char *str) 235static int slg_puts(BIO *bp, const char *str)
236 { 236 {
237 int n,ret; 237 int n,ret;
238 238