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/bf_buff.c4
-rw-r--r--src/lib/libcrypto/bio/bf_lbuf.c4
-rw-r--r--src/lib/libcrypto/bio/bf_nbio.c4
-rw-r--r--src/lib/libcrypto/bio/bf_null.c4
-rw-r--r--src/lib/libcrypto/bio/bio_lib.c36
-rw-r--r--src/lib/libcrypto/bio/bss_acpt.c12
-rw-r--r--src/lib/libcrypto/bio/bss_bio.c4
-rw-r--r--src/lib/libcrypto/bio/bss_conn.c12
-rw-r--r--src/lib/libcrypto/bio/bss_dgram.c16
-rw-r--r--src/lib/libcrypto/bio/bss_fd.c8
-rw-r--r--src/lib/libcrypto/bio/bss_file.c12
-rw-r--r--src/lib/libcrypto/bio/bss_log.c4
-rw-r--r--src/lib/libcrypto/bio/bss_mem.c8
-rw-r--r--src/lib/libcrypto/bio/bss_null.c4
-rw-r--r--src/lib/libcrypto/bio/bss_sock.c8
15 files changed, 70 insertions, 70 deletions
diff --git a/src/lib/libcrypto/bio/bf_buff.c b/src/lib/libcrypto/bio/bf_buff.c
index be2ebab148..7b76e895a4 100644
--- a/src/lib/libcrypto/bio/bf_buff.c
+++ b/src/lib/libcrypto/bio/bf_buff.c
@@ -84,8 +84,8 @@ static BIO_METHOD methods_buffer = {
84 buffer_callback_ctrl, 84 buffer_callback_ctrl,
85}; 85};
86 86
87BIO_METHOD 87BIO_METHOD *
88*BIO_f_buffer(void) 88BIO_f_buffer(void)
89{ 89{
90 return (&methods_buffer); 90 return (&methods_buffer);
91} 91}
diff --git a/src/lib/libcrypto/bio/bf_lbuf.c b/src/lib/libcrypto/bio/bf_lbuf.c
index 5020795ded..e233cbc92c 100644
--- a/src/lib/libcrypto/bio/bf_lbuf.c
+++ b/src/lib/libcrypto/bio/bf_lbuf.c
@@ -89,8 +89,8 @@ static BIO_METHOD methods_linebuffer = {
89 linebuffer_callback_ctrl, 89 linebuffer_callback_ctrl,
90}; 90};
91 91
92BIO_METHOD 92BIO_METHOD *
93*BIO_f_linebuffer(void) 93BIO_f_linebuffer(void)
94{ 94{
95 return (&methods_linebuffer); 95 return (&methods_linebuffer);
96} 96}
diff --git a/src/lib/libcrypto/bio/bf_nbio.c b/src/lib/libcrypto/bio/bf_nbio.c
index 200ca706ff..48c9781700 100644
--- a/src/lib/libcrypto/bio/bf_nbio.c
+++ b/src/lib/libcrypto/bio/bf_nbio.c
@@ -93,8 +93,8 @@ static BIO_METHOD methods_nbiof = {
93 nbiof_callback_ctrl, 93 nbiof_callback_ctrl,
94}; 94};
95 95
96BIO_METHOD 96BIO_METHOD *
97*BIO_f_nbio_test(void) 97BIO_f_nbio_test(void)
98{ 98{
99 return (&methods_nbiof); 99 return (&methods_nbiof);
100} 100}
diff --git a/src/lib/libcrypto/bio/bf_null.c b/src/lib/libcrypto/bio/bf_null.c
index ada677c91e..3bba2afe98 100644
--- a/src/lib/libcrypto/bio/bf_null.c
+++ b/src/lib/libcrypto/bio/bf_null.c
@@ -86,8 +86,8 @@ static BIO_METHOD methods_nullf = {
86 nullf_callback_ctrl, 86 nullf_callback_ctrl,
87}; 87};
88 88
89BIO_METHOD 89BIO_METHOD *
90*BIO_f_null(void) 90BIO_f_null(void)
91{ 91{
92 return (&methods_nullf); 92 return (&methods_nullf);
93} 93}
diff --git a/src/lib/libcrypto/bio/bio_lib.c b/src/lib/libcrypto/bio/bio_lib.c
index c226d943af..485374931b 100644
--- a/src/lib/libcrypto/bio/bio_lib.c
+++ b/src/lib/libcrypto/bio/bio_lib.c
@@ -63,8 +63,8 @@
63#include <openssl/bio.h> 63#include <openssl/bio.h>
64#include <openssl/stack.h> 64#include <openssl/stack.h>
65 65
66BIO 66BIO *
67*BIO_new(BIO_METHOD *method) 67BIO_new(BIO_METHOD *method)
68{ 68{
69 BIO *ret = NULL; 69 BIO *ret = NULL;
70 70
@@ -352,8 +352,8 @@ BIO_int_ctrl(BIO *b, int cmd, long larg, int iarg)
352 return (BIO_ctrl(b, cmd, larg, (char *)&i)); 352 return (BIO_ctrl(b, cmd, larg, (char *)&i));
353} 353}
354 354
355char 355char *
356*BIO_ptr_ctrl(BIO *b, int cmd, long larg) 356BIO_ptr_ctrl(BIO *b, int cmd, long larg)
357{ 357{
358 char *p = NULL; 358 char *p = NULL;
359 359
@@ -435,8 +435,8 @@ BIO_ctrl_wpending(BIO *bio)
435 435
436 436
437/* put the 'bio' on the end of b's list of operators */ 437/* put the 'bio' on the end of b's list of operators */
438BIO 438BIO *
439*BIO_push(BIO *b, BIO *bio) 439BIO_push(BIO *b, BIO *bio)
440{ 440{
441 BIO *lb; 441 BIO *lb;
442 442
@@ -454,8 +454,8 @@ BIO
454} 454}
455 455
456/* Remove the first and return the rest */ 456/* Remove the first and return the rest */
457BIO 457BIO *
458*BIO_pop(BIO *b) 458BIO_pop(BIO *b)
459{ 459{
460 BIO *ret; 460 BIO *ret;
461 461
@@ -475,8 +475,8 @@ BIO
475 return (ret); 475 return (ret);
476} 476}
477 477
478BIO 478BIO *
479*BIO_get_retry_BIO(BIO *bio, int *reason) 479BIO_get_retry_BIO(BIO *bio, int *reason)
480{ 480{
481 BIO *b, *last; 481 BIO *b, *last;
482 482
@@ -500,8 +500,8 @@ BIO_get_retry_reason(BIO *bio)
500 return (bio->retry_reason); 500 return (bio->retry_reason);
501} 501}
502 502
503BIO 503BIO *
504*BIO_find_type(BIO *bio, int type) 504BIO_find_type(BIO *bio, int type)
505{ 505{
506 int mt, mask; 506 int mt, mask;
507 507
@@ -522,8 +522,8 @@ BIO
522 return (NULL); 522 return (NULL);
523} 523}
524 524
525BIO 525BIO *
526*BIO_next(BIO *b) 526BIO_next(BIO *b)
527{ 527{
528 if (!b) 528 if (!b)
529 return NULL; 529 return NULL;
@@ -547,8 +547,8 @@ BIO_free_all(BIO *bio)
547 } 547 }
548} 548}
549 549
550BIO 550BIO *
551*BIO_dup_chain(BIO *in) 551BIO_dup_chain(BIO *in)
552{ 552{
553 BIO *ret = NULL, *eoc = NULL, *bio, *new_bio; 553 BIO *ret = NULL, *eoc = NULL, *bio, *new_bio;
554 554
@@ -611,8 +611,8 @@ BIO_set_ex_data(BIO *bio, int idx, void *data)
611 return (CRYPTO_set_ex_data(&(bio->ex_data), idx, data)); 611 return (CRYPTO_set_ex_data(&(bio->ex_data), idx, data));
612} 612}
613 613
614void 614void *
615*BIO_get_ex_data(BIO *bio, int idx) 615BIO_get_ex_data(BIO *bio, int idx)
616{ 616{
617 return (CRYPTO_get_ex_data(&(bio->ex_data), idx)); 617 return (CRYPTO_get_ex_data(&(bio->ex_data), idx));
618} 618}
diff --git a/src/lib/libcrypto/bio/bss_acpt.c b/src/lib/libcrypto/bio/bss_acpt.c
index 161b5d01f8..a272ada366 100644
--- a/src/lib/libcrypto/bio/bss_acpt.c
+++ b/src/lib/libcrypto/bio/bss_acpt.c
@@ -110,8 +110,8 @@ static BIO_METHOD methods_acceptp = {
110 NULL, 110 NULL,
111}; 111};
112 112
113BIO_METHOD 113BIO_METHOD *
114*BIO_s_accept(void) 114BIO_s_accept(void)
115{ 115{
116 return (&methods_acceptp); 116 return (&methods_acceptp);
117} 117}
@@ -132,8 +132,8 @@ acpt_new(BIO *bi)
132 return (1); 132 return (1);
133} 133}
134 134
135static BIO_ACCEPT 135static BIO_ACCEPT *
136*BIO_ACCEPT_new(void) 136BIO_ACCEPT_new(void)
137{ 137{
138 BIO_ACCEPT *ret; 138 BIO_ACCEPT *ret;
139 139
@@ -443,8 +443,8 @@ acpt_puts(BIO *bp, const char *str)
443 return (ret); 443 return (ret);
444} 444}
445 445
446BIO 446BIO *
447*BIO_new_accept(char *str) 447BIO_new_accept(char *str)
448{ 448{
449 BIO *ret; 449 BIO *ret;
450 450
diff --git a/src/lib/libcrypto/bio/bss_bio.c b/src/lib/libcrypto/bio/bss_bio.c
index 4d93aba0a4..33a0709aaf 100644
--- a/src/lib/libcrypto/bio/bss_bio.c
+++ b/src/lib/libcrypto/bio/bss_bio.c
@@ -116,8 +116,8 @@ static BIO_METHOD methods_biop = {
116 NULL /* no bio_callback_ctrl */ 116 NULL /* no bio_callback_ctrl */
117}; 117};
118 118
119BIO_METHOD 119BIO_METHOD *
120*BIO_s_bio(void) 120BIO_s_bio(void)
121{ 121{
122 return &methods_biop; 122 return &methods_biop;
123} 123}
diff --git a/src/lib/libcrypto/bio/bss_conn.c b/src/lib/libcrypto/bio/bss_conn.c
index 78ce240648..9c5320cafb 100644
--- a/src/lib/libcrypto/bio/bss_conn.c
+++ b/src/lib/libcrypto/bio/bss_conn.c
@@ -288,8 +288,8 @@ end:
288 return (ret); 288 return (ret);
289} 289}
290 290
291BIO_CONNECT 291BIO_CONNECT *
292*BIO_CONNECT_new(void) 292BIO_CONNECT_new(void)
293{ 293{
294 BIO_CONNECT *ret; 294 BIO_CONNECT *ret;
295 295
@@ -322,8 +322,8 @@ BIO_CONNECT_free(BIO_CONNECT *a)
322 free(a); 322 free(a);
323} 323}
324 324
325BIO_METHOD 325BIO_METHOD *
326*BIO_s_connect(void) 326BIO_s_connect(void)
327{ 327{
328 return (&methods_connectp); 328 return (&methods_connectp);
329} 329}
@@ -592,8 +592,8 @@ conn_puts(BIO *bp, const char *str)
592 return (ret); 592 return (ret);
593} 593}
594 594
595BIO 595BIO *
596*BIO_new_connect(char *str) 596BIO_new_connect(char *str)
597{ 597{
598 BIO *ret; 598 BIO *ret;
599 599
diff --git a/src/lib/libcrypto/bio/bss_dgram.c b/src/lib/libcrypto/bio/bss_dgram.c
index e0445fc97e..4c54601abc 100644
--- a/src/lib/libcrypto/bio/bss_dgram.c
+++ b/src/lib/libcrypto/bio/bss_dgram.c
@@ -187,14 +187,14 @@ typedef struct bio_dgram_sctp_data_st {
187} bio_dgram_sctp_data; 187} bio_dgram_sctp_data;
188#endif 188#endif
189 189
190BIO_METHOD 190BIO_METHOD *
191*BIO_s_datagram(void) 191BIO_s_datagram(void)
192{ 192{
193 return (&methods_dgramp); 193 return (&methods_dgramp);
194} 194}
195 195
196BIO 196BIO *
197*BIO_new_dgram(int fd, int close_flag) 197BIO_new_dgram(int fd, int close_flag)
198{ 198{
199 BIO *ret; 199 BIO *ret;
200 200
@@ -764,14 +764,14 @@ dgram_puts(BIO *bp, const char *str)
764} 764}
765 765
766#ifndef OPENSSL_NO_SCTP 766#ifndef OPENSSL_NO_SCTP
767BIO_METHOD 767BIO_METHOD *
768*BIO_s_datagram_sctp(void) 768BIO_s_datagram_sctp(void)
769{ 769{
770 return (&methods_dgramp_sctp); 770 return (&methods_dgramp_sctp);
771} 771}
772 772
773BIO 773BIO *
774*BIO_new_dgram_sctp(int fd, int close_flag) 774BIO_new_dgram_sctp(int fd, int close_flag)
775{ 775{
776 BIO *bio; 776 BIO *bio;
777 int ret, optval = 20000; 777 int ret, optval = 20000;
diff --git a/src/lib/libcrypto/bio/bss_fd.c b/src/lib/libcrypto/bio/bss_fd.c
index 988104e77c..4369d6411d 100644
--- a/src/lib/libcrypto/bio/bss_fd.c
+++ b/src/lib/libcrypto/bio/bss_fd.c
@@ -90,14 +90,14 @@ static BIO_METHOD methods_fdp = {
90 NULL, 90 NULL,
91}; 91};
92 92
93BIO_METHOD 93BIO_METHOD *
94*BIO_s_fd(void) 94BIO_s_fd(void)
95{ 95{
96 return (&methods_fdp); 96 return (&methods_fdp);
97} 97}
98 98
99BIO 99BIO *
100*BIO_new_fd(int fd, int close_flag) 100BIO_new_fd(int fd, int close_flag)
101{ 101{
102 BIO *ret; 102 BIO *ret;
103 ret = BIO_new(BIO_s_fd()); 103 ret = BIO_new(BIO_s_fd());
diff --git a/src/lib/libcrypto/bio/bss_file.c b/src/lib/libcrypto/bio/bss_file.c
index c92c4753aa..995c623341 100644
--- a/src/lib/libcrypto/bio/bss_file.c
+++ b/src/lib/libcrypto/bio/bss_file.c
@@ -112,8 +112,8 @@ static BIO_METHOD methods_filep = {
112 NULL, 112 NULL,
113}; 113};
114 114
115BIO 115BIO *
116*BIO_new_file(const char *filename, const char *mode) 116BIO_new_file(const char *filename, const char *mode)
117{ 117{
118 BIO *ret; 118 BIO *ret;
119 FILE *file = NULL; 119 FILE *file = NULL;
@@ -138,8 +138,8 @@ BIO
138 return (ret); 138 return (ret);
139} 139}
140 140
141BIO 141BIO *
142*BIO_new_fp(FILE *stream, int close_flag) 142BIO_new_fp(FILE *stream, int close_flag)
143{ 143{
144 BIO *ret; 144 BIO *ret;
145 145
@@ -150,8 +150,8 @@ BIO
150 return (ret); 150 return (ret);
151} 151}
152 152
153BIO_METHOD 153BIO_METHOD *
154*BIO_s_file(void) 154BIO_s_file(void)
155{ 155{
156 return (&methods_filep); 156 return (&methods_filep);
157} 157}
diff --git a/src/lib/libcrypto/bio/bss_log.c b/src/lib/libcrypto/bio/bss_log.c
index cde3c858f1..342176f82e 100644
--- a/src/lib/libcrypto/bio/bss_log.c
+++ b/src/lib/libcrypto/bio/bss_log.c
@@ -97,8 +97,8 @@ static BIO_METHOD methods_slg = {
97 NULL, 97 NULL,
98}; 98};
99 99
100BIO_METHOD 100BIO_METHOD *
101*BIO_s_log(void) 101BIO_s_log(void)
102{ 102{
103 return (&methods_slg); 103 return (&methods_slg);
104} 104}
diff --git a/src/lib/libcrypto/bio/bss_mem.c b/src/lib/libcrypto/bio/bss_mem.c
index a5192202bd..1a477c12be 100644
--- a/src/lib/libcrypto/bio/bss_mem.c
+++ b/src/lib/libcrypto/bio/bss_mem.c
@@ -85,14 +85,14 @@ static BIO_METHOD mem_method = {
85/* bio->num is used to hold the value to return on 'empty', if it is 85/* bio->num is used to hold the value to return on 'empty', if it is
86 * 0, should_retry is not set */ 86 * 0, should_retry is not set */
87 87
88BIO_METHOD 88BIO_METHOD *
89*BIO_s_mem(void) 89BIO_s_mem(void)
90{ 90{
91 return (&mem_method); 91 return (&mem_method);
92} 92}
93 93
94BIO 94BIO *
95*BIO_new_mem_buf(void *buf, int len) 95BIO_new_mem_buf(void *buf, int len)
96{ 96{
97 BIO *ret; 97 BIO *ret;
98 BUF_MEM *b; 98 BUF_MEM *b;
diff --git a/src/lib/libcrypto/bio/bss_null.c b/src/lib/libcrypto/bio/bss_null.c
index 51aed2ac4b..c7289725d9 100644
--- a/src/lib/libcrypto/bio/bss_null.c
+++ b/src/lib/libcrypto/bio/bss_null.c
@@ -82,8 +82,8 @@ static BIO_METHOD null_method = {
82 NULL, 82 NULL,
83}; 83};
84 84
85BIO_METHOD 85BIO_METHOD *
86*BIO_s_null(void) 86BIO_s_null(void)
87{ 87{
88 return (&null_method); 88 return (&null_method);
89} 89}
diff --git a/src/lib/libcrypto/bio/bss_sock.c b/src/lib/libcrypto/bio/bss_sock.c
index b9cf817a0c..5335495c6e 100644
--- a/src/lib/libcrypto/bio/bss_sock.c
+++ b/src/lib/libcrypto/bio/bss_sock.c
@@ -86,14 +86,14 @@ static BIO_METHOD methods_sockp = {
86 NULL, 86 NULL,
87}; 87};
88 88
89BIO_METHOD 89BIO_METHOD *
90*BIO_s_socket(void) 90BIO_s_socket(void)
91{ 91{
92 return (&methods_sockp); 92 return (&methods_sockp);
93} 93}
94 94
95BIO 95BIO *
96*BIO_new_socket(int fd, int close_flag) 96BIO_new_socket(int fd, int close_flag)
97{ 97{
98 BIO *ret; 98 BIO *ret;
99 99