diff options
author | beck <> | 2014-04-13 19:50:56 +0000 |
---|---|---|
committer | beck <> | 2014-04-13 19:50:56 +0000 |
commit | b8d0226baeb7d192c015a0db36bb7d77f17b744c (patch) | |
tree | 408fd582bdaae20967d5a427b44a92580d19a1e2 /src/lib/libcrypto/bio/bss_file.c | |
parent | da46bab8c0298f3edf0a0d6efc66fc7838b161e5 (diff) | |
download | openbsd-b8d0226baeb7d192c015a0db36bb7d77f17b744c.tar.gz openbsd-b8d0226baeb7d192c015a0db36bb7d77f17b744c.tar.bz2 openbsd-b8d0226baeb7d192c015a0db36bb7d77f17b744c.zip |
Remove some stuff that isn't needed.
ok miod@ deraadt@
Diffstat (limited to 'src/lib/libcrypto/bio/bss_file.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_file.c | 28 |
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 | ||
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 | ||