Home
last modified time | relevance | path

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

12345678910>>...23

/freebsd/crypto/openssl/include/openssl/
H A Dbio.h217 void BIO_set_flags(BIO *b, int flags);
218 int BIO_test_flags(const BIO *b, int flags);
219 void BIO_clear_flags(BIO *b, int flags);
276 typedef long (*BIO_callback_fn)(BIO *b, int oper, const char *argp, int argi,
278 OSSL_DEPRECATEDIN_3_0 BIO_callback_fn BIO_get_callback(const BIO *b);
279 OSSL_DEPRECATEDIN_3_0 void BIO_set_callback(BIO *b, BIO_callback_fn callback);
280 OSSL_DEPRECATEDIN_3_0 long BIO_debug_callback(BIO *bio, int cmd,
285 typedef long (*BIO_callback_fn_ex)(BIO *b, int oper, const char *argp,
288 BIO_callback_fn_ex BIO_get_callback_ex(const BIO *b);
289 void BIO_set_callback_ex(BIO *b, BIO_callback_fn_ex callback);
[all …]
H A Dhttp.h41 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
56 BIO *OSSL_HTTP_REQ_CTX_exchange(OSSL_HTTP_REQ_CTX *rctx);
57 BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(const OSSL_HTTP_REQ_CTX *rctx);
64 typedef BIO *(*OSSL_HTTP_bio_cb_t)(BIO *bio, void *arg, int connect, int detail);
67 int use_ssl, BIO *bio, BIO *rbio,
70 int OSSL_HTTP_proxy_connect(BIO *bio, const char *server, const char *port,
72 int timeout, BIO *bio_err, const char *prog);
75 const char *content_type, BIO *req,
78 BIO *OSSL_HTTP_exchange(OSSL_HTTP_REQ_CTX *rctx, char **redirection_url);
79 BIO *OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy,
[all …]
H A Dbio.h.in60 # define BIO_TYPE_NBIO_TEST (16|BIO_TYPE_FILTER)/* server proxy BIO */
62 # define BIO_TYPE_BIO (19|BIO_TYPE_SOURCE_SINK)/* half a BIO pair */
95 # define BIO_CTRL_DUP 12/* man - extra stuff for 'duped' BIO */
103 /* dgram BIO stuff */
104 # define BIO_CTRL_DGRAM_CONNECT 31/* BIO dgram special */
158 * internal BIO:
212 /* the BIO FLAGS values 0x1000 to 0x4000 are reserved for internal KTLS flags */
218 void BIO_set_flags(BIO *b, int flags);
219 int BIO_test_flags(const BIO *b, int flags);
220 void BIO_clear_flags(BIO *b, int flags);
[all …]
/freebsd/crypto/openssl/crypto/bio/
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()
121 BIO *BIO_new(const BIO_METHOD *method) in BIO_new()
126 int BIO_free(BIO *a) in BIO_free()
136 REF_PRINT_COUNT("BIO", a); in BIO_free()
159 void BIO_set_data(BIO *a, void *ptr) in BIO_set_data()
164 void *BIO_get_data(BIO *a) in BIO_get_data()
169 void BIO_set_init(BIO *a, int init) in BIO_set_init()
174 int BIO_get_init(BIO *
[all...]
H A Dbio_meth.c58 int (*BIO_meth_get_write(const BIO_METHOD *biom)) (BIO *, const char *, int) in BIO_meth_get_write()
63 int (*BIO_meth_get_write_ex(const BIO_METHOD *biom)) (BIO *, const char *, size_t, in BIO_meth_get_write_ex()
70 int bwrite_conv(BIO *bio, const char *data, size_t datal, size_t *written) in bwrite_conv()
90 int (*bwrite) (BIO *, const char *, int)) in BIO_meth_set_write()
98 int (*bwrite) (BIO *, const char *, size_t, size_t *)) in BIO_meth_set_write_ex()
105 int (*BIO_meth_get_read(const BIO_METHOD *biom)) (BIO *, char *, int) in BIO_meth_get_read()
110 int (*BIO_meth_get_read_ex(const BIO_METHOD *biom)) (BIO *, char *, size_t, size_t *) in BIO_meth_get_read_ex()
116 int bread_conv(BIO *bio, char *data, size_t datal, size_t *readbytes) in bread_conv()
136 int (*bread) (BIO *, char *, int)) in BIO_meth_set_read()
144 int (*bread) (BIO *, char *, size_t, size_t *)) in BIO_meth_set_read_ex()
[all …]
H A Dbss_log.c78 static int slg_write(BIO *h, const char *buf, int num);
79 static int slg_puts(BIO *h, const char *str);
80 static long slg_ctrl(BIO *h, int cmd, long arg1, void *arg2);
81 static int slg_new(BIO *h);
82 static int slg_free(BIO *data);
83 static void xopenlog(BIO *bp, char *name, int level);
84 static void xsyslog(BIO *bp, int priority, const char *string);
85 static void xcloselog(BIO *bp);
107 static int slg_new(BIO *bi) in slg_new()
116 static int slg_free(BIO *a) in slg_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 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()
69 static int nbiof_free(BIO *a) in nbiof_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 …]
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()
94 static long nullf_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) in nullf_callback_ctrl()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DBIO_s_mem.pod7 BIO_get_mem_ptr, BIO_new_mem_buf - memory BIO
16 BIO_set_mem_eof_return(BIO *b, int v);
17 long BIO_get_mem_data(BIO *b, char **pp);
18 BIO_set_mem_buf(BIO *b, BUF_MEM *bm, int c);
19 BIO_get_mem_ptr(BIO *b, BUF_MEM **pp);
21 BIO *BIO_new_mem_buf(const void *buf, int len);
25 BIO_s_mem() returns the memory BIO method function.
27 A memory BIO is a source/sink BIO which uses memory for its I/O. Data
28 written to a memory BIO is stored in a BUF_MEM structure which is extended
34 Any data written to a memory BIO can be recalled by reading from it.
[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_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 BIO of a given type in a chain, starting
18 at BIO B<b>. If B<type> is a specific type (such as B<BIO_TYPE_MEM>) then a search
19 is made for a BIO of that type. If B<type> is a general type (such as
20 B<BIO_TYPE_SOURCE_SINK>) then the next matching BIO of the given general type is
21 searched for. BIO_find_type() returns the next matching 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_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_meth_new.pod12 BIO_meth_set_callback_ctrl - Routines to build up BIO methods
24 int (*BIO_meth_get_write_ex(const BIO_METHOD *biom))(BIO *, const char *, size_t,
26 int (*BIO_meth_get_write(const BIO_METHOD *biom))(BIO *, const char *, int);
28 int (*bwrite)(BIO *, const char *, size_t, size_t *));
30 int (*write)(BIO *, const char *, int));
32 int (*BIO_meth_get_read_ex(const BIO_METHOD *biom))(BIO *, char *, size_t, size_t *);
33 int (*BIO_meth_get_read(const BIO_METHOD *biom))(BIO *, char *, int);
35 int (*bread)(BIO *, char *, size_t, size_t *));
36 int BIO_meth_set_read(BIO_METHOD *biom, int (*read)(BIO *, char *, int));
38 int (*BIO_meth_get_puts(const BIO_METHOD *biom))(BIO *, const char *);
[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 …]
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_accept_bios(BIO *b, char *bio);
28 char *BIO_get_peer_name(BIO *b);
29 char *BIO_get_peer_port(BIO *b);
[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.
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 …]
/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 …]
/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/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/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/cms/
H A Dcms_io.c36 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio()
52 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio()
59 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in IMPLEMENT_PEM_rw()
67 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in i2d_CMS_bio_stream()
73 int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, in PEM_write_bio_CMS_stream()
80 int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags) in SMIME_write_CMS()
99 CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont, in SMIME_read_CMS_ex()
118 CMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont) in SMIME_read_CMS()

12345678910>>...23