summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_file.c')
-rw-r--r--src/lib/libcrypto/bio/bss_file.c28
1 files changed, 14 insertions, 14 deletions
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