Home
last modified time | relevance | path

Searched refs:BIO (Results 1 – 25 of 641) sorted by relevance

12345678910>>...26

/openssl/crypto/bio/
H A Dbio_meth.c92 int (*bwrite) (BIO *, const char *, int)) in BIO_meth_set_write()
108 int (*BIO_meth_get_read(const BIO_METHOD *biom)) (BIO *, char *, int) in BIO_meth_get_read()
140 int (*bread) (BIO *, char *, int)) in BIO_meth_set_read()
163 int (*bputs) (BIO *, const char *)) in BIO_meth_set_puts()
177 int (*bgets) (BIO *, char *, int)) in BIO_meth_set_gets()
191 long (*ctrl) (BIO *, int, long, void *)) in BIO_meth_set_ctrl()
198 int (*BIO_meth_get_create(const BIO_METHOD *biom)) (BIO *) in BIO_meth_get_create()
204 int BIO_meth_set_create(BIO_METHOD *biom, int (*create) (BIO *)) in BIO_meth_set_create() argument
211 int (*BIO_meth_get_destroy(const BIO_METHOD *biom)) (BIO *) in BIO_meth_get_destroy()
217 int BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy) (BIO *)) in BIO_meth_set_destroy() argument
[all …]
H A Dbio_lib.c119 int BIO_free(BIO *a) in BIO_free()
746 BIO *BIO_push(BIO *b, BIO *bio) in BIO_push()
748 BIO *lb; in BIO_push()
764 BIO *BIO_pop(BIO *b) in BIO_pop()
766 BIO *ret; in BIO_pop()
784 BIO *BIO_get_retry_BIO(BIO *bio, int *reason) in BIO_get_retry_BIO()
812 BIO *BIO_find_type(BIO *bio, int type) in BIO_find_type()
837 BIO *BIO_next(BIO *b) in BIO_next()
844 void BIO_set_next(BIO *b, BIO *next) in BIO_set_next()
851 BIO *b; in BIO_free_all()
[all …]
H A Dbf_nbio.c20 static int nbiof_write(BIO *h, const char *buf, int num);
21 static int nbiof_read(BIO *h, char *buf, int size);
22 static int nbiof_puts(BIO *h, const char *str);
23 static int nbiof_gets(BIO *h, char *str, int size);
25 static int nbiof_new(BIO *h);
26 static int nbiof_free(BIO *data);
54 static int nbiof_new(BIO *bi) in nbiof_new()
67 static int nbiof_free(BIO *a) in nbiof_free()
78 static int nbiof_read(BIO *b, char *out, int outl) in nbiof_read()
177 static int nbiof_gets(BIO *bp, char *buf, int size) in nbiof_gets()
[all …]
H A Dbss_fd.c19 BIO *BIO_new_fd(int fd, int close_flag) in BIO_new_fd()
52 static int fd_read(BIO *h, char *buf, int size);
53 static int fd_puts(BIO *h, const char *str);
54 static int fd_gets(BIO *h, char *buf, int size);
56 static int fd_new(BIO *h);
57 static int fd_free(BIO *data);
80 BIO *BIO_new_fd(int fd, int close_flag) in BIO_new_fd()
82 BIO *ret; in BIO_new_fd()
90 static int fd_new(BIO *bi) in fd_new()
99 static int fd_free(BIO *a) in fd_free()
[all …]
H A Dbss_null.c15 static int null_write(BIO *h, const char *buf, int num);
16 static int null_read(BIO *h, char *buf, int size);
17 static int null_puts(BIO *h, const char *str);
18 static int null_gets(BIO *h, char *str, int size);
19 static long null_ctrl(BIO *h, int cmd, long arg1, void *arg2);
40 static int null_read(BIO *b, char *out, int outl) in null_read()
45 static int null_write(BIO *b, const char *in, int inl) in null_write()
50 static long null_ctrl(BIO *b, int cmd, long num, void *ptr) in null_ctrl()
75 static int null_gets(BIO *bp, char *buf, int size) in null_gets()
80 static int null_puts(BIO *bp, const char *str) in null_puts()
H A Dbss_log.c81 static int slg_puts(BIO *h, const char *str);
83 static int slg_new(BIO *h);
84 static int slg_free(BIO *data);
85 static void xopenlog(BIO *bp, char *name, int level);
87 static void xcloselog(BIO *bp);
109 static int slg_new(BIO *bi) in slg_new()
118 static int slg_free(BIO *a) in slg_free()
232 static int slg_puts(BIO *bp, const char *str) in slg_puts()
291 static void xcloselog(BIO *bp) in xcloselog()
385 static void xcloselog(BIO *bp) in xcloselog()
[all …]
H A Dbf_null.c19 static int nullf_write(BIO *h, const char *buf, int num);
20 static int nullf_read(BIO *h, char *buf, int size);
21 static int nullf_puts(BIO *h, const char *str);
22 static int nullf_gets(BIO *h, char *str, int size);
23 static long nullf_ctrl(BIO *h, int cmd, long arg1, void *arg2);
24 static long nullf_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
45 static int nullf_read(BIO *b, char *out, int outl) in nullf_read()
59 static int nullf_write(BIO *b, const char *in, int inl) in nullf_write()
73 static long nullf_ctrl(BIO *b, int cmd, long num, void *ptr) in nullf_ctrl()
101 static int nullf_gets(BIO *bp, char *buf, int size) in nullf_gets()
[all …]
H A Dbf_prefix.c15 static int prefix_write(BIO *b, const char *out, size_t outl,
18 static int prefix_puts(BIO *b, const char *str);
19 static int prefix_gets(BIO *b, char *str, int size);
20 static long prefix_ctrl(BIO *b, int cmd, long arg1, void *arg2);
21 static int prefix_create(BIO *b);
22 static int prefix_destroy(BIO *b);
52 static int prefix_create(BIO *b) in prefix_create()
67 static int prefix_destroy(BIO *b) in prefix_destroy()
81 static int prefix_write(BIO *b, const char *out, size_t outl, in prefix_write()
199 static int prefix_gets(BIO *b, char *buf, int size) in prefix_gets()
[all …]
H A Dbss_file.c36 static int file_read(BIO *h, char *buf, int size);
37 static int file_puts(BIO *h, const char *str);
40 static int file_new(BIO *h);
41 static int file_free(BIO *data);
59 BIO *ret; in BIO_new_file()
91 BIO *BIO_new_fp(FILE *stream, int close_flag) in BIO_new_fp()
93 BIO *ret; in BIO_new_fp()
109 static int file_new(BIO *bi) in file_new()
118 static int file_free(BIO *a) in file_free()
396 static int file_new(BIO *bi) in file_new()
[all …]
/openssl/include/openssl/
H A Dhttp.h45 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
60 BIO *OSSL_HTTP_REQ_CTX_exchange(OSSL_HTTP_REQ_CTX *rctx);
61 BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(const OSSL_HTTP_REQ_CTX *rctx);
68 typedef BIO *(*OSSL_HTTP_bio_cb_t)(BIO *bio, void *arg, int connect, int detail);
71 int use_ssl, BIO *bio, BIO *rbio,
76 int timeout, BIO *bio_err, const char *prog);
79 const char *content_type, BIO *req,
84 BIO *bio, BIO *rbio,
89 BIO *OSSL_HTTP_transfer(OSSL_HTTP_REQ_CTX **prctx,
93 BIO *bio, BIO *rbio,
[all …]
H A Dbio.h.in108 /* dgram BIO stuff */
163 * internal BIO:
190 * internal BIO:
704 int BIO_free(BIO *a);
733 BIO *BIO_push(BIO *b, BIO *append);
734 BIO *BIO_pop(BIO *b);
736 BIO *BIO_find_type(BIO *b, int bio_type);
737 BIO *BIO_next(BIO *b);
738 void BIO_set_next(BIO *b, BIO *next);
739 BIO *BIO_get_retry_BIO(BIO *bio, int *reason);
[all …]
/openssl/include/internal/
H A Dbio.h21 int (*bwrite_old) (BIO *, const char *, int);
22 int (*bread) (BIO *, char *, size_t, size_t *);
23 int (*bread_old) (BIO *, char *, int);
24 int (*bputs) (BIO *, const char *);
25 int (*bgets) (BIO *, char *, int);
26 long (*ctrl) (BIO *, int, long, void *);
27 int (*create) (BIO *);
28 int (*destroy) (BIO *);
29 long (*callback_ctrl) (BIO *, int, BIO_info_cb *);
34 void bio_free_ex_data(BIO *bio);
[all …]
/openssl/doc/man3/
H A DBIO_ctrl.pod10 - BIO control operations
23 int BIO_reset(BIO *b);
24 int BIO_seek(BIO *b, int ofs);
25 int BIO_tell(BIO *b);
26 int BIO_flush(BIO *b);
27 int BIO_eof(BIO *b);
29 int BIO_get_close(BIO *b);
30 int BIO_pending(BIO *b);
31 int BIO_wpending(BIO *b);
90 the BIO connection mode.
[all …]
H A DBIO_f_ssl.pod10 BIO_ssl_shutdown - SSL BIO
31 int BIO_ssl_copy_session_id(BIO *to, BIO *from);
34 long BIO_do_handshake(BIO *b);
38 BIO_f_ssl() returns the SSL BIO method. This is a filter BIO which
46 If a BIO is appended to an SSL BIO using BIO_push() it is automatically
82 SSL BIO (using B<ctx>) followed by a connect BIO.
85 of a buffering BIO, an SSL BIO (using B<ctx>), and a connect BIO.
160 BIO *sbio, *out;
205 BIO to allow lines to be read from the SSL BIO using BIO_gets.
244 * BIO chain is now 'swallowed' by the accept BIO and
[all …]
H A DBIO_s_dgram_pair.pod18 int BIO_dgram_get_no_trunc(BIO *bio);
20 uint32_t BIO_dgram_get_caps(BIO *bio);
23 unsigned int BIO_dgram_get_mtu(BIO *bio);
27 BIO_s_dgram_pair() returns the method for a BIO datagram pair. A BIO datagram
79 L<BIO_eof(3)> returns 1 only if the given BIO datagram pair BIO is not currently
80 connected to a peer BIO.
98 MTU value on the BIO datagram pair. If BIO_dgram_set_mtu() is used on a BIO
102 code to determine a requested MTU. When a BIO datagram pair BIO is created, the
120 other BIO call is also in progress to either half of the same BIO datagram pair
141 advertised by the peer of that BIO.
[all …]
H A DBIO_new.pod6 - BIO allocation and freeing functions
13 BIO *BIO_new(const BIO_METHOD *type);
14 int BIO_up_ref(BIO *a);
15 int BIO_free(BIO *a);
16 void BIO_vfree(BIO *a);
17 void BIO_free_all(BIO *a);
30 BIO_free() frees up a single BIO, BIO_vfree() also frees up a single BIO
39 occurs freeing up an individual BIO in the chain.
52 If BIO_free() is called on a BIO chain it will only free one BIO resulting
66 Create a memory BIO:
[all …]
H A DBIO_meth_new.pod28 int (*write)(BIO *, const char *, int));
36 int (*gets)(BIO *, char *, int));
39 long (*ctrl)(BIO *, int, long, void *));
41 int BIO_meth_set_create(BIO_METHOD *biom, int (*create)(BIO *));
42 int BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy)(BIO *));
68 int (*BIO_meth_get_create(const BIO_METHOD *bion))(BIO *);
69 int (*BIO_meth_get_destroy(const BIO_METHOD *biom))(BIO *);
151 BIO_new() will not mark the BIO as initialised on allocation.
153 by a BIO ctrl function, once BIO initialisation is complete.
159 for BIO specific clean up. The memory for the BIO itself should not be freed by
[all …]
H A DBIO_find_type.pod5 BIO_find_type, BIO_next, BIO_method_type - BIO chain traversal
11 BIO *BIO_find_type(BIO *b, int bio_type);
12 BIO *BIO_next(BIO *b);
13 int BIO_method_type(const BIO *b);
17 The BIO_find_type() searches for a B<BIO> of a given type in a chain, starting
33 BIO_method_type() returns the type of a BIO.
37 BIO_find_type() returns a matching BIO or NULL for no match.
39 BIO_next() returns the next BIO in a chain.
41 BIO_method_type() returns the type of the BIO I<b>.
47 BIO *btmp;
[all …]
H A DBIO_s_mem.pod7 BIO_get_mem_ptr, BIO_new_mem_buf - memory BIO
17 BIO_set_mem_eof_return(BIO *b, int v);
20 BIO_get_mem_ptr(BIO *b, BUF_MEM **pp);
28 A memory BIO is a source/sink BIO which uses memory for its I/O. Data
53 the BIO.
67 data can be read again. On a read only BIO it similarly restores the BIO to
125 immediately after BIO creation and set the BIO as read only.
140 BIO are intertwined. As documented above the BIO will be reset to the
168 BIO *mem = BIO_new(BIO_s_mem());
172 Create a read only memory BIO:
[all …]
H A DBIO_get_data.pod6 BIO_get_shutdown - functions for managing BIO state information
12 void BIO_set_data(BIO *a, void *ptr);
13 void *BIO_get_data(BIO *a);
14 void BIO_set_init(BIO *a, int init);
15 int BIO_get_init(BIO *a);
16 void BIO_set_shutdown(BIO *a, int shut);
17 int BIO_get_shutdown(BIO *a);
21 These functions are mainly useful when implementing a custom BIO.
37 is also closed when the BIO is freed.
42 associated with this BIO, or NULL if none has been set.
[all …]
H A DBIO_s_file.pod15 BIO *BIO_new_fp(FILE *stream, int flags);
17 BIO_set_fp(BIO *b, FILE *fp, int flags);
18 BIO_get_fp(BIO *b, FILE **fpp);
23 int BIO_rw_filename(BIO *b, char *name);
29 source/sink BIO.
50 flag is set on the returned BIO.
103 File BIO "hello world":
105 BIO *bio_out;
112 BIO *bio_out;
123 BIO *out;
[all …]
/openssl/crypto/evp/
H A Dbio_md.c21 static int md_read(BIO *h, char *buf, int size);
22 static int md_gets(BIO *h, char *str, int size);
24 static int md_new(BIO *h);
25 static int md_free(BIO *data);
48 static int md_new(BIO *bi) in md_new()
62 static int md_free(BIO *a) in md_free()
73 static int md_read(BIO *b, char *out, int outl) in md_read()
77 BIO *next; in md_read()
105 BIO *next; in md_write()
137 BIO *dbio, *next; in md_ctrl()
[all …]
/openssl/crypto/asn1/
H A Dbio_asn1.c67 static int asn1_bio_new(BIO *h);
68 static int asn1_bio_free(BIO *data);
99 static int asn1_bio_new(BIO *b) in asn1_bio_new()
130 static int asn1_bio_free(BIO *b) in asn1_bio_free()
159 BIO *next; in asn1_bio_write()
297 BIO *next = BIO_next(b); in asn1_bio_read()
310 BIO *next = BIO_next(b); in asn1_bio_gets()
318 BIO *next = BIO_next(b); in asn1_bio_callback_ctrl()
329 BIO *next; in asn1_bio_ctrl()
404 static int asn1_bio_set_ex(BIO *b, int cmd, in asn1_bio_set_ex()
[all …]
/openssl/doc/man7/
H A Dbio.pod15 A BIO is an I/O abstraction, it hides many of the underlying I/O
20 There are two types of BIO, a source/sink BIO and a filter BIO.
23 examples include a socket BIO and a file BIO.
25 A filter BIO takes data from one BIO and passes it through to
28 encryption BIO). The effect of a filter BIO may change according
37 BIO).
43 If BIO_free() is called on a BIO chain it will only free one BIO resulting
51 a source/sink BIO typically starts with I<BIO_s_> and
52 a filter BIO with I<BIO_f_>.
79 Create a memory BIO:
[all …]
/openssl/crypto/cms/
H A Dcms_io.c37 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio()
53 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio()
60 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in IMPLEMENT_PEM_rw()
68 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in i2d_CMS_bio_stream()
74 int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, in PEM_write_bio_CMS_stream()
81 int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags) in SMIME_write_CMS()
100 CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont, in SMIME_read_CMS_ex()
119 CMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont) in SMIME_read_CMS()

Completed in 41 milliseconds

12345678910>>...26