Home
last modified time | relevance | path

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

1234567891011

/external/boringssl/src/include/openssl/
Dbio.h80 DEFINE_STACK_OF(BIO)
84 OPENSSL_EXPORT BIO *BIO_new(const BIO_METHOD *method);
92 OPENSSL_EXPORT int BIO_free(BIO *bio);
98 OPENSSL_EXPORT void BIO_vfree(BIO *bio);
101 OPENSSL_EXPORT int BIO_up_ref(BIO *bio);
108 OPENSSL_EXPORT int BIO_read(BIO *bio, void *data, int len);
118 OPENSSL_EXPORT int BIO_gets(BIO *bio, char *buf, int size);
122 OPENSSL_EXPORT int BIO_write(BIO *bio, const void *data, int len);
126 OPENSSL_EXPORT int BIO_write_all(BIO *bio, const void *data, size_t len);
130 OPENSSL_EXPORT int BIO_puts(BIO *bio, const char *buf);
[all …]
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Dbio.h80 DEFINE_STACK_OF(BIO)
84 OPENSSL_EXPORT BIO *BIO_new(const BIO_METHOD *method);
92 OPENSSL_EXPORT int BIO_free(BIO *bio);
98 OPENSSL_EXPORT void BIO_vfree(BIO *bio);
101 OPENSSL_EXPORT int BIO_up_ref(BIO *bio);
108 OPENSSL_EXPORT int BIO_read(BIO *bio, void *data, int len);
118 OPENSSL_EXPORT int BIO_gets(BIO *bio, char *buf, int size);
122 OPENSSL_EXPORT int BIO_write(BIO *bio, const void *data, int len);
126 OPENSSL_EXPORT int BIO_write_all(BIO *bio, const void *data, size_t len);
130 OPENSSL_EXPORT int BIO_puts(BIO *bio, const char *buf);
[all …]
/external/boringssl/src/crypto/bio/
Dbio.c72 BIO *BIO_new(const BIO_METHOD *method) { in BIO_new()
73 BIO *ret = OPENSSL_malloc(sizeof(BIO)); in BIO_new()
75 OPENSSL_PUT_ERROR(BIO, ERR_R_MALLOC_FAILURE); in BIO_new()
79 OPENSSL_memset(ret, 0, sizeof(BIO)); in BIO_new()
92 int BIO_free(BIO *bio) { in BIO_free()
93 BIO *next_bio; in BIO_free()
111 int BIO_up_ref(BIO *bio) { in BIO_up_ref()
116 void BIO_vfree(BIO *bio) { in BIO_vfree()
120 void BIO_free_all(BIO *bio) { in BIO_free_all()
124 int BIO_read(BIO *bio, void *buf, int len) { in BIO_read()
[all …]
Dfile.c92 BIO *BIO_new_file(const char *filename, const char *mode) { in BIO_new_file()
93 BIO *ret; in BIO_new_file()
102 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_SUCH_FILE); in BIO_new_file()
104 OPENSSL_PUT_ERROR(BIO, BIO_R_SYS_LIB); in BIO_new_file()
118 BIO *BIO_new_fp(FILE *stream, int close_flag) { in BIO_new_fp()
119 BIO *ret = BIO_new(BIO_s_file()); in BIO_new_fp()
129 static int file_new(BIO *bio) { return 1; } in file_new()
131 static int file_free(BIO *bio) { in file_free()
149 static int file_read(BIO *b, char *out, int outl) { in file_read()
157 OPENSSL_PUT_ERROR(BIO, ERR_R_SYS_LIB); in file_read()
[all …]
Dconnect.c108 int (*info_callback)(const BIO *bio, int state, int ret);
168 static int conn_state(BIO *bio, BIO_CONNECT *c) { in conn_state()
170 int (*cb)(const BIO *, int, int) = NULL; in conn_state()
184 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_HOSTNAME_SPECIFIED); in conn_state()
194 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_PORT_SPECIFIED); in conn_state()
208 OPENSSL_PUT_ERROR(BIO, BIO_R_UNABLE_TO_CREATE_SOCKET); in conn_state()
215 OPENSSL_PUT_ERROR(BIO, BIO_R_ERROR_SETTING_NBIO); in conn_state()
227 OPENSSL_PUT_ERROR(BIO, BIO_R_KEEPALIVE); in conn_state()
241 OPENSSL_PUT_ERROR(BIO, BIO_R_CONNECT_ERROR); in conn_state()
262 OPENSSL_PUT_ERROR(BIO, BIO_R_NBIO_CONNECT_ERROR); in conn_state()
[all …]
Dpair.c65 BIO *peer; // NULL if buf == NULL.
83 static int bio_new(BIO *bio) { in bio_new()
97 static void bio_destroy_pair(BIO *bio) { in bio_destroy_pair()
99 BIO *peer_bio; in bio_destroy_pair()
129 static int bio_free(BIO *bio) { in bio_free()
149 static int bio_read(BIO *bio, char *buf, int size_) { in bio_read()
232 static int bio_write(BIO *bio, const char *buf, int num_) { in bio_write()
251 OPENSSL_PUT_ERROR(BIO, BIO_R_BROKEN_PIPE); in bio_write()
304 static int bio_make_pair(BIO *bio1, BIO *bio2, size_t writebuf1_len, in bio_make_pair()
315 OPENSSL_PUT_ERROR(BIO, BIO_R_IN_USE); in bio_make_pair()
[all …]
Dbio_mem.c69 BIO *BIO_new_mem_buf(const void *buf, int len) { in BIO_new_mem_buf()
70 BIO *ret; in BIO_new_mem_buf()
75 OPENSSL_PUT_ERROR(BIO, BIO_R_NULL_PARAMETER); in BIO_new_mem_buf()
100 static int mem_new(BIO *bio) { in mem_new()
118 static int mem_free(BIO *bio) { in mem_free()
138 static int mem_read(BIO *bio, char *out, int outl) { in mem_read()
165 static int mem_write(BIO *bio, const char *in, int inl) { in mem_write()
173 OPENSSL_PUT_ERROR(BIO, BIO_R_WRITE_TO_READ_ONLY_BIO); in mem_write()
192 static int mem_gets(BIO *bio, char *buf, int size) { in mem_gets()
227 static long mem_ctrl(BIO *bio, int cmd, long num, void *ptr) { in mem_ctrl()
[all …]
Dfd.c133 BIO *BIO_new_fd(int fd, int close_flag) { in BIO_new_fd()
134 BIO *ret = BIO_new(BIO_s_fd()); in BIO_new_fd()
142 static int fd_new(BIO *bio) { in fd_new()
148 static int fd_free(BIO *bio) { in fd_free()
162 static int fd_read(BIO *b, char *out, int outl) { in fd_read()
176 static int fd_write(BIO *b, const char *in, int inl) { in fd_write()
188 static long fd_ctrl(BIO *b, int cmd, long num, void *ptr) { in fd_ctrl()
247 static int fd_gets(BIO *bp, char *buf, int size) { in fd_gets()
271 int BIO_set_fd(BIO *bio, int fd, int close_flag) { in BIO_set_fd()
275 int BIO_get_fd(BIO *bio, int *out_fd) { in BIO_get_fd()
/external/rust/crates/quiche/deps/boringssl/src/crypto/bio/
Dbio.c72 BIO *BIO_new(const BIO_METHOD *method) { in BIO_new()
73 BIO *ret = OPENSSL_malloc(sizeof(BIO)); in BIO_new()
75 OPENSSL_PUT_ERROR(BIO, ERR_R_MALLOC_FAILURE); in BIO_new()
79 OPENSSL_memset(ret, 0, sizeof(BIO)); in BIO_new()
92 int BIO_free(BIO *bio) { in BIO_free()
93 BIO *next_bio; in BIO_free()
111 int BIO_up_ref(BIO *bio) { in BIO_up_ref()
116 void BIO_vfree(BIO *bio) { in BIO_vfree()
120 void BIO_free_all(BIO *bio) { in BIO_free_all()
124 int BIO_read(BIO *bio, void *buf, int len) { in BIO_read()
[all …]
Dfile.c92 BIO *BIO_new_file(const char *filename, const char *mode) { in BIO_new_file()
93 BIO *ret; in BIO_new_file()
102 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_SUCH_FILE); in BIO_new_file()
104 OPENSSL_PUT_ERROR(BIO, BIO_R_SYS_LIB); in BIO_new_file()
118 BIO *BIO_new_fp(FILE *stream, int close_flag) { in BIO_new_fp()
119 BIO *ret = BIO_new(BIO_s_file()); in BIO_new_fp()
129 static int file_new(BIO *bio) { return 1; } in file_new()
131 static int file_free(BIO *bio) { in file_free()
149 static int file_read(BIO *b, char *out, int outl) { in file_read()
157 OPENSSL_PUT_ERROR(BIO, ERR_R_SYS_LIB); in file_read()
[all …]
Dconnect.c108 int (*info_callback)(const BIO *bio, int state, int ret);
168 static int conn_state(BIO *bio, BIO_CONNECT *c) { in conn_state()
170 int (*cb)(const BIO *, int, int) = NULL; in conn_state()
184 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_HOSTNAME_SPECIFIED); in conn_state()
194 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_PORT_SPECIFIED); in conn_state()
208 OPENSSL_PUT_ERROR(BIO, BIO_R_UNABLE_TO_CREATE_SOCKET); in conn_state()
215 OPENSSL_PUT_ERROR(BIO, BIO_R_ERROR_SETTING_NBIO); in conn_state()
227 OPENSSL_PUT_ERROR(BIO, BIO_R_KEEPALIVE); in conn_state()
241 OPENSSL_PUT_ERROR(BIO, BIO_R_CONNECT_ERROR); in conn_state()
262 OPENSSL_PUT_ERROR(BIO, BIO_R_NBIO_CONNECT_ERROR); in conn_state()
[all …]
Dpair.c65 BIO *peer; // NULL if buf == NULL.
83 static int bio_new(BIO *bio) { in bio_new()
97 static void bio_destroy_pair(BIO *bio) { in bio_destroy_pair()
99 BIO *peer_bio; in bio_destroy_pair()
129 static int bio_free(BIO *bio) { in bio_free()
149 static int bio_read(BIO *bio, char *buf, int size_) { in bio_read()
232 static int bio_write(BIO *bio, const char *buf, int num_) { in bio_write()
251 OPENSSL_PUT_ERROR(BIO, BIO_R_BROKEN_PIPE); in bio_write()
304 static int bio_make_pair(BIO *bio1, BIO *bio2, size_t writebuf1_len, in bio_make_pair()
315 OPENSSL_PUT_ERROR(BIO, BIO_R_IN_USE); in bio_make_pair()
[all …]
Dbio_mem.c69 BIO *BIO_new_mem_buf(const void *buf, int len) { in BIO_new_mem_buf()
70 BIO *ret; in BIO_new_mem_buf()
75 OPENSSL_PUT_ERROR(BIO, BIO_R_NULL_PARAMETER); in BIO_new_mem_buf()
100 static int mem_new(BIO *bio) { in mem_new()
118 static int mem_free(BIO *bio) { in mem_free()
138 static int mem_read(BIO *bio, char *out, int outl) { in mem_read()
165 static int mem_write(BIO *bio, const char *in, int inl) { in mem_write()
173 OPENSSL_PUT_ERROR(BIO, BIO_R_WRITE_TO_READ_ONLY_BIO); in mem_write()
192 static int mem_gets(BIO *bio, char *buf, int size) { in mem_gets()
227 static long mem_ctrl(BIO *bio, int cmd, long num, void *ptr) { in mem_ctrl()
[all …]
Dfd.c133 BIO *BIO_new_fd(int fd, int close_flag) { in BIO_new_fd()
134 BIO *ret = BIO_new(BIO_s_fd()); in BIO_new_fd()
142 static int fd_new(BIO *bio) { in fd_new()
148 static int fd_free(BIO *bio) { in fd_free()
162 static int fd_read(BIO *b, char *out, int outl) { in fd_read()
176 static int fd_write(BIO *b, const char *in, int inl) { in fd_write()
188 static long fd_ctrl(BIO *b, int cmd, long num, void *ptr) { in fd_ctrl()
247 static int fd_gets(BIO *bp, char *buf, int size) { in fd_gets()
271 int BIO_set_fd(BIO *bio, int fd, int close_flag) { in BIO_set_fd()
275 int BIO_get_fd(BIO *bio, int *out_fd) { in BIO_get_fd()
/external/boringssl/src/crypto/err/
Dbio.errordata1 BIO,100,BAD_FOPEN_MODE
2 BIO,101,BROKEN_PIPE
3 BIO,102,CONNECT_ERROR
4 BIO,103,ERROR_SETTING_NBIO
5 BIO,104,INVALID_ARGUMENT
6 BIO,105,IN_USE
7 BIO,106,KEEPALIVE
8 BIO,107,NBIO_CONNECT_ERROR
9 BIO,108,NO_HOSTNAME_SPECIFIED
10 BIO,109,NO_PORT_SPECIFIED
[all …]
/external/libbrillo/brillo/streams/
Dopenssl_stream_bio.cc18 static void BIO_set_data(BIO* a, void* ptr) { in BIO_set_data()
22 static void* BIO_get_data(BIO* a) { in BIO_get_data()
26 static void BIO_set_init(BIO* a, int init) { in BIO_set_init()
30 static int BIO_get_init(BIO* a) { in BIO_get_init()
34 static void BIO_set_shutdown(BIO* a, int shut) { in BIO_set_shutdown()
40 int stream_write(BIO* bio, const char* buf, int size) { in stream_write()
55 int stream_read(BIO* bio, char* buf, int size) { in stream_read()
73 long stream_ctrl(BIO* bio, int cmd, long /* num */, void* /* ptr */) { in stream_ctrl()
81 int stream_new(BIO* bio) { in stream_new()
88 int stream_free(BIO* bio) { in stream_free()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/ssl/test/
Dasync_bio.cc37 AsyncBio *GetData(BIO *bio) { in GetData()
44 static int AsyncWrite(BIO *bio, const char *in, int inl) { in AsyncWrite()
74 static int AsyncRead(BIO *bio, char *out, int outl) { in AsyncRead()
100 static long AsyncCtrl(BIO *bio, int cmd, long num, void *ptr) { in AsyncCtrl()
110 static int AsyncNew(BIO *bio) { in AsyncNew()
122 static int AsyncFree(BIO *bio) { in AsyncFree()
134 static long AsyncCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) { in AsyncCallbackCtrl()
156 bssl::UniquePtr<BIO> AsyncBioCreate() { in AsyncBioCreate()
157 return bssl::UniquePtr<BIO>(BIO_new(&g_async_bio_method)); in AsyncBioCreate()
160 bssl::UniquePtr<BIO> AsyncBioCreateDatagram() { in AsyncBioCreateDatagram()
[all …]
Dpacketed_bio.cc49 PacketedBio *GetData(BIO *bio) { in GetData()
58 static int ReadAll(BIO *bio, uint8_t *out, size_t len) { in ReadAll()
74 static int PacketedWrite(BIO *bio, const char *in, int inl) { in PacketedWrite()
104 static int PacketedRead(BIO *bio, char *out, int outl) { in PacketedRead()
192 static long PacketedCtrl(BIO *bio, int cmd, long num, void *ptr) { in PacketedCtrl()
203 static int PacketedNew(BIO *bio) { in PacketedNew()
208 static int PacketedFree(BIO *bio) { in PacketedFree()
218 static long PacketedCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) { in PacketedCallbackCtrl()
240 bssl::UniquePtr<BIO> PacketedBioCreate(timeval *clock) { in PacketedBioCreate()
241 bssl::UniquePtr<BIO> bio(BIO_new(&g_packeted_bio_method)); in PacketedBioCreate()
[all …]
Dasync_bio.h26 bssl::UniquePtr<BIO> AsyncBioCreate();
31 bssl::UniquePtr<BIO> AsyncBioCreateDatagram();
34 void AsyncBioAllowRead(BIO *bio, size_t count);
37 void AsyncBioAllowWrite(BIO *bio, size_t count);
40 void AsyncBioEnforceWriteQuota(BIO *bio, bool enforce);
/external/boringssl/src/ssl/test/
Dasync_bio.cc37 AsyncBio *GetData(BIO *bio) { in GetData()
44 static int AsyncWrite(BIO *bio, const char *in, int inl) { in AsyncWrite()
74 static int AsyncRead(BIO *bio, char *out, int outl) { in AsyncRead()
100 static long AsyncCtrl(BIO *bio, int cmd, long num, void *ptr) { in AsyncCtrl()
110 static int AsyncNew(BIO *bio) { in AsyncNew()
122 static int AsyncFree(BIO *bio) { in AsyncFree()
134 static long AsyncCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) { in AsyncCallbackCtrl()
156 bssl::UniquePtr<BIO> AsyncBioCreate() { in AsyncBioCreate()
157 return bssl::UniquePtr<BIO>(BIO_new(&g_async_bio_method)); in AsyncBioCreate()
160 bssl::UniquePtr<BIO> AsyncBioCreateDatagram() { in AsyncBioCreateDatagram()
[all …]
Dpacketed_bio.cc49 PacketedBio *GetData(BIO *bio) { in GetData()
58 static int ReadAll(BIO *bio, uint8_t *out, size_t len) { in ReadAll()
74 static int PacketedWrite(BIO *bio, const char *in, int inl) { in PacketedWrite()
104 static int PacketedRead(BIO *bio, char *out, int outl) { in PacketedRead()
192 static long PacketedCtrl(BIO *bio, int cmd, long num, void *ptr) { in PacketedCtrl()
203 static int PacketedNew(BIO *bio) { in PacketedNew()
208 static int PacketedFree(BIO *bio) { in PacketedFree()
218 static long PacketedCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) { in PacketedCallbackCtrl()
240 bssl::UniquePtr<BIO> PacketedBioCreate(timeval *clock) { in PacketedBioCreate()
241 bssl::UniquePtr<BIO> bio(BIO_new(&g_packeted_bio_method)); in PacketedBioCreate()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/
Dprint.c67 static int bn_print(BIO *bp, const char *number, const BIGNUM *num, in bn_print()
136 static int do_rsa_print(BIO *out, const RSA *rsa, int off, in do_rsa_print()
204 static int rsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, in rsa_pub_print()
209 static int rsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, in rsa_priv_print()
217 static int do_dsa_print(BIO *bp, const DSA *x, int off, int ptype) { in do_dsa_print()
275 static int dsa_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_param_print()
280 static int dsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_pub_print()
285 static int dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_priv_print()
293 static int do_EC_KEY_print(BIO *bp, const EC_KEY *x, int off, int ktype) { in do_EC_KEY_print()
399 static int eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, in eckey_param_print()
[all …]
/external/boringssl/src/crypto/evp/
Dprint.c67 static int bn_print(BIO *bp, const char *number, const BIGNUM *num, in bn_print()
136 static int do_rsa_print(BIO *out, const RSA *rsa, int off, in do_rsa_print()
204 static int rsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, in rsa_pub_print()
209 static int rsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, in rsa_priv_print()
217 static int do_dsa_print(BIO *bp, const DSA *x, int off, int ptype) { in do_dsa_print()
275 static int dsa_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_param_print()
280 static int dsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_pub_print()
285 static int dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_priv_print()
293 static int do_EC_KEY_print(BIO *bp, const EC_KEY *x, int off, int ktype) { in do_EC_KEY_print()
399 static int eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, in eckey_param_print()
[all …]
/external/boringssl/src/ssl/
Dbio_ssl.cc15 static SSL *get_ssl(BIO *bio) { in get_ssl()
19 static int ssl_read(BIO *bio, char *out, int outl) { in ssl_read()
59 static int ssl_write(BIO *bio, const char *out, int outl) { in ssl_write()
93 static long ssl_ctrl(BIO *bio, int cmd, long num, void *ptr) { in ssl_ctrl()
131 BIO *wbio = SSL_get_wbio(ssl); in ssl_ctrl()
149 static int ssl_new(BIO *bio) { in ssl_new()
153 static int ssl_free(BIO *bio) { in ssl_free()
168 static long ssl_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) { in ssl_callback_ctrl()
190 long BIO_set_ssl(BIO *bio, SSL *ssl, int take_owership) { in BIO_set_ssl()
/external/libcups/cups/
Dtls-boringssl.c43 static int http_bio_write(BIO *h, const char *buf, int num);
44 static int http_bio_read(BIO *h, char *buf, int size);
45 static int http_bio_puts(BIO *h, const char *str);
46 static long http_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2);
47 static int http_bio_new(BIO *h);
48 static int http_bio_free(BIO *data);
141 http_bio_ctrl(BIO *h, /* I - BIO data */ in http_bio_ctrl()
181 http_bio_free(BIO *h) /* I - BIO data */ in http_bio_free()
201 http_bio_new(BIO *h) /* I - BIO data */ in http_bio_new()
220 http_bio_puts(BIO *h, /* I - BIO data */ in http_bio_puts()
[all …]

1234567891011