Home
last modified time | relevance | path

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

12345678910>>...29

/freebsd/crypto/openssl/include/openssl/
H A Dbio.h249 void BIO_set_flags(BIO *b, int flags);
250 int BIO_test_flags(const BIO *b, int flags);
251 void BIO_clear_flags(BIO *b, int flags);
310 typedef long (*BIO_callback_fn)(BIO *b, int oper, const char *argp, int argi,
312 OSSL_DEPRECATEDIN_3_0 BIO_callback_fn BIO_get_callback(const BIO *b);
313 OSSL_DEPRECATEDIN_3_0 void BIO_set_callback(BIO *b, BIO_callback_fn callback);
314 OSSL_DEPRECATEDIN_3_0 long BIO_debug_callback(BIO *bio, int cmd,
319 typedef long (*BIO_callback_fn_ex)(BIO *b, int oper, const char *argp,
322 BIO_callback_fn_ex BIO_get_callback_ex(const BIO *b);
323 void BIO_set_callback_ex(BIO *b, BIO_callback_fn_ex callback);
[all …]
H A Dhttp.h48 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
63 BIO *OSSL_HTTP_REQ_CTX_exchange(OSSL_HTTP_REQ_CTX *rctx);
64 BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(const OSSL_HTTP_REQ_CTX *rctx);
73 typedef BIO *(*OSSL_HTTP_bio_cb_t)(BIO *bio, void *arg, int connect, int detail);
76 int use_ssl, BIO *bio, BIO *rbio,
79 int OSSL_HTTP_proxy_connect(BIO *bio, const char *server, const char *port,
81 int timeout, BIO *bio_err, const char *prog);
84 const char *content_type, BIO *req,
87 BIO *OSSL_HTTP_exchange(OSSL_HTTP_REQ_CTX *rctx, char **redirection_url);
88 BIO *OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy,
[all …]
H A Dbio.h.in62 #define BIO_TYPE_NBIO_TEST (16 | BIO_TYPE_FILTER) /* server proxy BIO */
64 #define BIO_TYPE_BIO (19 | BIO_TYPE_SOURCE_SINK) /* half a BIO pair */
102 #define BIO_CTRL_DUP 12 /* man - extra stuff for 'duped' BIO */
110 /* dgram BIO stuff */
111 #define BIO_CTRL_DGRAM_CONNECT 31 /* BIO dgram special */
165 * internal BIO:
192 * internal BIO:
244 /* the BIO FLAGS values 0x1000 to 0x8000 are reserved for internal KTLS flags */
250 void BIO_set_flags(BIO *b, int flags);
251 int BIO_test_flags(const BIO *b, int flags);
[all …]
/freebsd/crypto/openssl/crypto/bio/
H A Dbio_meth.c59 int (*BIO_meth_get_write(const BIO_METHOD *biom))(BIO *, const char *, int) in BIO_meth_get_write()
64 int (*BIO_meth_get_write_ex(const BIO_METHOD *biom))(BIO *, const char *, size_t, in BIO_meth_get_write_ex()
72 int bwrite_conv(BIO *bio, const char *data, size_t datal, size_t *written) in bwrite_conv()
92 int (*bwrite)(BIO *, const char *, int)) in BIO_meth_set_write() argument
100 int (*bwrite)(BIO *, const char *, size_t, size_t *)) in BIO_meth_set_write_ex() argument
108 int (*BIO_meth_get_read(const BIO_METHOD *biom))(BIO *, char *, int) in BIO_meth_get_read()
113 int (*BIO_meth_get_read_ex(const BIO_METHOD *biom))(BIO *, char *, size_t, size_t *) in BIO_meth_get_read_ex()
120 int bread_conv(BIO *bio, char *data, size_t datal, size_t *readbytes) in bread_conv()
140 int (*bread)(BIO *, char *, int)) in BIO_meth_set_read() argument
148 int (*bread)(BIO *, char *, size_t, size_t *)) in BIO_meth_set_read_ex() argument
[all …]
H A Dbio_lib.c37 static long bio_call_callback(BIO *b, int oper, const char *argp, size_t len, in bio_call_callback()
81 BIO *BIO_new_ex(OSSL_LIB_CTX *libctx, const BIO_METHOD *method) in BIO_new_ex()
83 BIO *bio = OPENSSL_zalloc(sizeof(*bio)); in BIO_new_ex()
114 BIO *BIO_new(const BIO_METHOD *method) in BIO_new()
119 int BIO_free(BIO *a) in BIO_free()
152 void BIO_set_data(BIO *a, void *ptr) in BIO_set_data()
157 void *BIO_get_data(BIO *a) in BIO_get_data()
162 void BIO_set_init(BIO *a, int init) in BIO_set_init()
167 int BIO_get_init(BIO *a) in BIO_get_init()
172 void BIO_set_shutdown(BIO *a, int shut) in BIO_set_shutdown()
[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);
24 static long nbiof_ctrl(BIO *h, int cmd, long arg1, void *arg2);
25 static int nbiof_new(BIO *h);
26 static int nbiof_free(BIO *data);
27 static long nbiof_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
54 static int nbiof_new(BIO *bi) in nbiof_new()
67 static int nbiof_free(BIO *a) in nbiof_free()
[all …]
H A Dbss_fd.c19 BIO *BIO_new_fd(int fd, int close_flag) in BIO_new_fd()
51 static int fd_write(BIO *h, const char *buf, int num);
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);
55 static long fd_ctrl(BIO *h, int cmd, long arg1, void *arg2);
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()
[all …]
H A Dbss_log.c80 static int slg_write(BIO *h, const char *buf, int num);
81 static int slg_puts(BIO *h, const char *str);
82 static long slg_ctrl(BIO *h, int cmd, long arg1, void *arg2);
83 static int slg_new(BIO *h);
84 static int slg_free(BIO *data);
85 static void xopenlog(BIO *bp, char *name, int level);
86 static void xsyslog(BIO *bp, int priority, const char *string);
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()
[all …]
H A Dbss_file.c35 static int file_write(BIO *h, const char *buf, int num);
36 static int file_read(BIO *h, char *buf, int size);
37 static int file_puts(BIO *h, const char *str);
38 static int file_gets(BIO *h, char *str, int size);
39 static long file_ctrl(BIO *h, int cmd, long arg1, void *arg2);
40 static int file_new(BIO *h);
41 static int file_free(BIO *data);
57 BIO *BIO_new_file(const char *filename, const char *mode) in BIO_new_file()
59 BIO *ret; in BIO_new_file()
91 BIO *BIO_new_fp(FILE *stream, int close_flag) in BIO_new_fp()
[all …]
H A Dbf_prefix.c15 static int prefix_write(BIO *b, const char *out, size_t outl,
17 static int prefix_read(BIO *b, char *buf, size_t size, size_t *numread);
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);
23 static long prefix_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp);
52 static int prefix_create(BIO *b) in prefix_create()
67 static int prefix_destroy(BIO *b) in prefix_destroy()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DBIO_set_flags.pod8 - manipulate and interpret BIO flags
14 void BIO_set_flags(BIO *b, int flags);
15 void BIO_clear_flags(BIO *b, int flags);
16 int BIO_test_flags(const BIO *b, int flags);
17 int BIO_get_flags(const BIO *b);
19 void BIO_set_retry_read(BIO *b);
20 void BIO_set_retry_write(BIO *b);
21 void BIO_set_retry_special(BIO *b);
22 void BIO_clear_retry_flags(BIO *b);
23 int BIO_get_retry_flags(BIO *b);
[all …]
H A DBIO_s_dgram_pair.pod8 BIO_dgram_set0_local_addr - datagram pair BIO
16 int BIO_new_bio_dgram_pair(BIO **bio1, size_t writebuf1,
17 BIO **bio2, size_t writebuf2);
18 int BIO_dgram_set_no_trunc(BIO *bio, int enable);
19 int BIO_dgram_get_no_trunc(BIO *bio);
20 uint32_t BIO_dgram_get_effective_caps(BIO *bio);
21 uint32_t BIO_dgram_get_caps(BIO *bio);
22 int BIO_dgram_set_caps(BIO *bio, uint32_t caps);
23 int BIO_dgram_set_mtu(BIO *bio, unsigned int mtu);
24 unsigned int BIO_dgram_get_mtu(BIO *bio);
[all …]
H A DBIO_f_ssl.pod10 BIO_ssl_shutdown - SSL BIO
21 long BIO_set_ssl(BIO *b, SSL *ssl, long c);
22 long BIO_get_ssl(BIO *b, SSL **sslp);
23 long BIO_set_ssl_mode(BIO *b, long client);
24 long BIO_set_ssl_renegotiate_bytes(BIO *b, long num);
25 long BIO_set_ssl_renegotiate_timeout(BIO *b, long seconds);
26 long BIO_get_num_renegotiates(BIO *b);
28 BIO *BIO_new_ssl(SSL_CTX *ctx, int client);
29 BIO *BIO_new_ssl_connect(SSL_CTX *ctx);
30 BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx);
[all …]
H A DBIO_ctrl.pod10 - BIO control operations
16 typedef int BIO_info_cb(BIO *b, int state, int res);
18 long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg);
19 long BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *cb);
20 void *BIO_ptr_ctrl(BIO *bp, int cmd, long larg);
21 long BIO_int_ctrl(BIO *bp, int cmd, long larg, int iarg);
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);
[all …]
H A DBIO_meth_new.pod13 BIO_meth_set_recvmmsg, BIO_meth_get_recvmmsg - Routines to build up BIO methods
26 int (*bwrite)(BIO *, const char *, size_t, size_t *));
28 int (*write)(BIO *, const char *, int));
31 int (*bread)(BIO *, char *, size_t, size_t *));
32 int BIO_meth_set_read(BIO_METHOD *biom, int (*read)(BIO *, char *, int));
34 int BIO_meth_set_puts(BIO_METHOD *biom, int (*puts)(BIO *, const char *));
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 *));
[all …]
H A DBIO_new.pod6 - BIO allocation and freeing functions
12 BIO *BIO_new_ex(OSSL_LIB_CTX *libctx, const BIO_METHOD *type);
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);
21 The BIO_new_ex() function returns a new BIO using method B<type> associated with
28 BIO_up_ref() increments the reference count associated with the BIO object.
30 BIO_free() frees up a single BIO, BIO_vfree() also frees up a single BIO
[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);
18 long BIO_get_mem_data(BIO *b, char **pp);
19 BIO_set_mem_buf(BIO *b, BUF_MEM *bm, int c);
20 BIO_get_mem_ptr(BIO *b, BUF_MEM **pp);
22 BIO *BIO_new_mem_buf(const void *buf, int len);
26 BIO_s_mem() returns the memory BIO method function.
28 A memory BIO is a source/sink BIO which uses memory for its I/O. Data
29 written to a memory BIO is stored in a BUF_MEM structure which is extended
35 BIO_s_dgram_mem() is a memory BIO that respects datagram semantics. A single
[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
18 at B<BIO> I<b>. If I<type> is a specific type (such as B<BIO_TYPE_MEM>) then a
19 search is made for a B<BIO> of that type. If I<type> is a general type (such as
20 B<BIO_TYPE_SOURCE_SINK>) then the next matching B<BIO> of the given general type is
21 searched for. BIO_find_type() returns the next matching B<BIO> or NULL if none is
29 BIO_next() returns the next BIO in a chain. It can be used to traverse all BIOs
[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 can be used when implementing a custom BIO.
24 the BIO. This data can subsequently be retrieved via a call to BIO_get_data().
27 The BIO_set_init() function sets the value of the BIO's "init" flag to indicate
[all …]
H A DBIO_s_accept.pod9 BIO_set_bind_mode, BIO_get_bind_mode, BIO_do_accept - accept BIO
17 long BIO_set_accept_name(BIO *b, char *name);
18 char *BIO_get_accept_name(BIO *b);
20 long BIO_set_accept_port(BIO *b, char *port);
21 char *BIO_get_accept_port(BIO *b);
23 BIO *BIO_new_accept(char *host_port);
25 long BIO_set_nbio_accept(BIO *b, int n);
26 long BIO_set_tfo_accept(BIO *b, int n);
27 long BIO_set_accept_bios(BIO *b, char *bio);
29 char *BIO_get_peer_name(BIO *b);
[all …]
H A DBIO_s_file.pod14 BIO *BIO_new_file(const char *filename, const char *mode);
15 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);
20 int BIO_read_filename(BIO *b, char *name);
21 int BIO_write_filename(BIO *b, char *name);
22 int BIO_append_filename(BIO *b, char *name);
23 int BIO_rw_filename(BIO *b, char *name);
27 BIO_s_file() returns the BIO file method. As its name implies it
29 source/sink BIO.
[all …]
/freebsd/crypto/openssl/include/internal/
H A Dbio.h20 int (*bwrite)(BIO *, const char *, size_t, size_t *);
21 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 *);
[all …]
/freebsd/crypto/openssl/crypto/evp/
H A Dbio_md.c20 static int md_write(BIO *h, char const *buf, int num);
21 static int md_read(BIO *h, char *buf, int size);
22 static int md_gets(BIO *h, char *str, int size);
23 static long md_ctrl(BIO *h, int cmd, long arg1, void *arg2);
24 static int md_new(BIO *h);
25 static int md_free(BIO *data);
26 static long md_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
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()
[all …]
/freebsd/crypto/openssl/crypto/asn1/
H A Dbio_asn1.c62 static int asn1_bio_write(BIO *h, const char *buf, int num);
63 static int asn1_bio_read(BIO *h, char *buf, int size);
64 static int asn1_bio_puts(BIO *h, const char *str);
65 static int asn1_bio_gets(BIO *h, char *str, int size);
66 static long asn1_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2);
67 static int asn1_bio_new(BIO *h);
68 static int asn1_bio_free(BIO *data);
69 static long asn1_bio_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
72 static int asn1_bio_flush_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx,
74 static int asn1_bio_setup_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx,
[all …]
/freebsd/crypto/openssl/doc/man7/
H A Dbio.pod15 A BIO is an I/O abstraction, it hides many of the underlying I/O
16 details from an application. If an application uses a BIO for its
20 There are two types of BIO, a source/sink BIO and a filter BIO.
22 As its name implies a source/sink BIO is a source and/or sink of data,
23 examples include a socket BIO and a file BIO.
25 A filter BIO takes data from one BIO and passes it through to
27 example a message digest BIO) or translated (for example an
28 encryption BIO). The effect of a filter BIO may change according
30 BIO will encrypt data if it is being written to and decrypt data
33 BIOs can be joined together to form a chain (a single BIO is a chain
[all …]

12345678910>>...29