/external/boringssl/src/crypto/bio/ |
H A D | printf.c | 61 #include <openssl/bio.h> 70 int BIO_printf(BIO *bio, const char *format, ...) { argument 109 ret = BIO_write(bio, out, out_len);
|
H A D | hexdump.c | 57 #include <openssl/bio.h> 65 BIO *bio; member in struct:hexdump_ctx 101 BIO_indent(ctx->bio, ctx->indent, UINT_MAX); 108 if (BIO_write(ctx->bio, buf, 10) < 0) { 128 if (BIO_write(ctx->bio, buf, l) < 0) { 137 if (BIO_write(ctx->bio, ctx->right_chars, sizeof(ctx->right_chars)) < 0) { 168 if (BIO_write(ctx->bio, buf, l) < 0) { 175 if (BIO_write(ctx->bio, ctx->right_chars, n_bytes + 2) < 0) { 181 int BIO_hexdump(BIO *bio, const uint8_t *data, size_t len, unsigned indent) { argument 184 ctx.bio [all...] |
H A D | socket.c | 1 /* crypto/bio/bss_sock.c */ 58 #include <openssl/bio.h> 82 static int sock_new(BIO *bio) { argument 83 bio->init = 0; 84 bio->num = 0; 85 bio->ptr = NULL; 86 bio->flags = 0; 90 static int sock_free(BIO *bio) { argument 91 if (bio == NULL) { 95 if (bio [all...] |
H A D | bio_mem.c | 57 #include <openssl/bio.h> 97 static int mem_new(BIO *bio) { argument 107 bio->shutdown = 1; 108 bio->init = 1; 109 bio->num = -1; 110 bio->ptr = (char *)b; 115 static int mem_free(BIO *bio) { argument 118 if (bio == NULL) { 122 if (!bio->shutdown || !bio 135 mem_read(BIO *bio, char *out, int outl) argument 162 mem_write(BIO *bio, const char *in, int inl) argument 193 mem_gets(BIO *bio, char *buf, int size) argument 228 mem_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 300 BIO_mem_contents(const BIO *bio, const uint8_t **out_contents, size_t *out_len) argument 313 BIO_get_mem_data(BIO *bio, char **contents) argument 317 BIO_get_mem_ptr(BIO *bio, BUF_MEM **out) argument 321 BIO_set_mem_buf(BIO *bio, BUF_MEM *b, int take_ownership) argument 325 BIO_set_mem_eof_return(BIO *bio, int eof_value) argument [all...] |
H A D | fd.c | 57 #include <openssl/bio.h> 133 static int fd_new(BIO *bio) { argument 135 bio->num = -1; 139 static int fd_free(BIO *bio) { argument 140 if (bio == NULL) { 144 if (bio->shutdown) { 145 if (bio->init) { 146 close(bio->num); 148 bio->init = 0; 264 int BIO_set_fd(BIO *bio, in argument 268 BIO_get_fd(BIO *bio, int *out_fd) argument [all...] |
H A D | bio_test.cc | 36 #include <openssl/bio.h> 106 ScopedBIO bio(BIO_new_connect(hostname)); 107 if (!bio) { 112 if (BIO_write(bio.get(), kTestMessage, sizeof(kTestMessage)) != 141 static size_t BioReadZeroCopyWrapper(BIO *bio, uint8_t *data, size_t len) { argument 148 if (!BIO_zero_copy_get_read_buf(bio, &read_buf, &read_buf_offset, 156 BIO_zero_copy_get_read_buf_done(bio, available_bytes); 166 static size_t BioWriteZeroCopyWrapper(BIO *bio, const uint8_t *data, argument 174 if (!BIO_zero_copy_get_write_buf(bio, &write_buf, &write_buf_offset, 182 BIO_zero_copy_get_write_buf_done(bio, available_byte [all...] |
H A D | buffer.c | 57 #include <openssl/bio.h> 90 static int buffer_new(BIO *bio) { argument 110 bio->init = 1; 111 bio->ptr = (char *)ctx; 122 static int buffer_free(BIO *bio) { argument 125 if (bio == NULL || bio->ptr == NULL) { 129 ctx = (BIO_F_BUFFER_CTX *)bio->ptr; 132 OPENSSL_free(bio->ptr); 134 bio 141 buffer_read(BIO *bio, char *out, int outl) argument 490 BIO_set_read_buffer_size(BIO *bio, int buffer_size) argument 494 BIO_set_write_buffer_size(BIO *bio, int buffer_size) argument [all...] |
H A D | connect.c | 57 #include <openssl/bio.h> 102 /* the file descriptor is kept in bio->num in order to match the socket 108 int (*info_callback)(const BIO *bio, int state, int ret); 131 static int conn_state(BIO *bio, BIO_CONNECT *c) { argument 176 &bio->num, &c->them, &c->them_length, c->param_hostname, 187 if (!bio_socket_nbio(bio->num, 1)) { 196 ret = setsockopt(bio->num, SOL_SOCKET, SO_KEEPALIVE, (char *)&i, 205 BIO_clear_retry_flags(bio); 206 ret = connect(bio->num, (struct sockaddr*) &c->them, c->them_length); 209 BIO_set_flags(bio, (BIO_FLAGS_IO_SPECIA 292 conn_new(BIO *bio) argument 300 conn_close_socket(BIO *bio) argument 315 conn_free(BIO *bio) argument 329 conn_read(BIO *bio, char *out, int out_len) argument 353 conn_write(BIO *bio, const char *in, int in_len) argument 377 conn_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 485 conn_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) argument 528 BIO_set_conn_hostname(BIO *bio, const char *name) argument 532 BIO_set_conn_port(BIO *bio, const char *port_str) argument 536 BIO_set_nbio(BIO *bio, int on) argument [all...] |
H A D | file.c | 75 #include <openssl/bio.h> 164 static int file_new(BIO *bio) { return 1; } argument 166 static int file_free(BIO *bio) { argument 167 if (bio == NULL) { 171 if (!bio->shutdown) { 175 if (bio->init && bio->ptr != NULL) { 176 fclose(bio->ptr); 177 bio->ptr = NULL; 179 bio 324 BIO_get_fp(BIO *bio, FILE **out_file) argument 328 BIO_set_fp(BIO *bio, FILE *file, int close_flag) argument 332 BIO_read_filename(BIO *bio, const char *filename) argument 337 BIO_write_filename(BIO *bio, const char *filename) argument 342 BIO_append_filename(BIO *bio, const char *filename) argument 347 BIO_rw_filename(BIO *bio, const char *filename) argument [all...] |
H A D | pair.c | 53 #include <openssl/bio.h> 88 static int bio_new(BIO *bio) { argument 98 bio->ptr = b; 102 static void bio_destroy_pair(BIO *bio) { argument 103 struct bio_bio_st *b = bio->ptr; 119 assert(peer_b->peer == bio); 128 bio->init = 0; 134 static int bio_free(BIO *bio) { argument 137 if (bio == NULL) { 140 b = bio 173 BIO_zero_copy_get_read_buf(BIO* bio, uint8_t** out_read_buf, size_t* out_buf_offset, size_t* out_available_bytes) argument 222 BIO_zero_copy_get_read_buf_done(BIO* bio, size_t bytes_read) argument 310 BIO_zero_copy_get_write_buf(BIO* bio, uint8_t** out_write_buf, size_t* out_buf_offset, size_t* out_available_bytes) argument 363 BIO_zero_copy_get_write_buf_done(BIO* bio, size_t bytes_written) argument 419 bio_read(BIO *bio, char *buf, int size_) argument 505 bio_write(BIO *bio, const char *buf, int num_) argument 655 bio_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 749 bio_puts(BIO *bio, const char *str) argument 807 BIO_ctrl_get_read_request(BIO *bio) argument 811 BIO_ctrl_get_write_guarantee(BIO *bio) argument 815 BIO_shutdown_wr(BIO *bio) argument [all...] |
H A D | bio.c | 57 #include <openssl/bio.h> 73 static int bio_set(BIO *bio, const BIO_METHOD *method) { argument 77 memset(bio, 0, sizeof(BIO)); 79 bio->method = method; 80 bio->shutdown = 1; 81 bio->references = 1; 83 if (method->create != NULL && !method->create(bio)) { 105 int BIO_free(BIO *bio) { argument 108 for (; bio != NULL; bio 131 BIO_up_ref(BIO *bio) argument 136 BIO_vfree(BIO *bio) argument 140 BIO_free_all(BIO *bio) argument 144 bio_io(BIO *bio, void *buf, int len, size_t method_offset, int callback_flags, size_t *num) argument 189 BIO_read(BIO *bio, void *buf, int len) argument 194 BIO_gets(BIO *bio, char *buf, int len) argument 199 BIO_write(BIO *bio, const void *in, int inl) argument 204 BIO_puts(BIO *bio, const char *in) argument 208 BIO_flush(BIO *bio) argument 212 BIO_ctrl(BIO *bio, int cmd, long larg, void *parg) argument 256 BIO_reset(BIO *bio) argument 260 BIO_set_flags(BIO *bio, int flags) argument 264 BIO_test_flags(const BIO *bio, int flags) argument 268 BIO_should_read(const BIO *bio) argument 272 BIO_should_write(const BIO *bio) argument 276 BIO_should_retry(const BIO *bio) argument 280 BIO_should_io_special(const BIO *bio) argument 284 BIO_get_retry_reason(const BIO *bio) argument 286 BIO_clear_flags(BIO *bio, int flags) argument 290 BIO_set_retry_read(BIO *bio) argument 294 BIO_set_retry_write(BIO *bio) argument 300 BIO_get_retry_flags(BIO *bio) argument 304 BIO_clear_retry_flags(BIO *bio) argument 309 BIO_method_type(const BIO *bio) argument 311 BIO_copy_next_retry(BIO *bio) argument 317 BIO_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) argument 348 BIO_pending(const BIO *bio) argument 352 BIO_ctrl_pending(const BIO *bio) argument 356 BIO_wpending(const BIO *bio) argument 360 BIO_set_close(BIO *bio, int close_flag) argument 364 BIO_set_callback(BIO *bio, bio_info_cb callback_func) argument 368 BIO_set_callback_arg(BIO *bio, char *arg) argument 372 BIO_get_callback_arg(const BIO *bio) argument 376 BIO_number_read(const BIO *bio) argument 380 BIO_number_written(const BIO *bio) argument 384 BIO_push(BIO *bio, BIO *appended_bio) argument 400 BIO_pop(BIO *bio) argument 411 BIO_next(BIO *bio) argument 418 BIO_find_type(BIO *bio, int type) argument 444 BIO_indent(BIO *bio, unsigned indent, unsigned max_indent) argument 457 print_bio(const char *str, size_t len, void *bio) argument 461 BIO_print_errors(BIO *bio) argument 473 bio_read_all(BIO *bio, uint8_t **out, size_t *out_len, const uint8_t *prefix, size_t prefix_len, size_t max_len) argument 524 BIO_read_asn1(BIO *bio, uint8_t **out, size_t *out_len, size_t max_len) argument [all...] |
/external/boringssl/src/tool/ |
H A D | server.cc | 82 BIO *bio = BIO_new_socket(sock, BIO_CLOSE); local 84 SSL_set_bio(ssl, bio, bio);
|
/external/jetty/src/java/org/eclipse/jetty/io/bio/ |
H A D | StringEndPoint.java | 19 package org.eclipse.jetty.io.bio;
|
H A D | SocketEndPoint.java | 19 package org.eclipse.jetty.io.bio; 115 * @see org.eclipse.jetty.io.bio.StreamEndPoint#shutdownOutput() 143 * @see org.eclipse.jetty.io.bio.StreamEndPoint#shutdownOutput() 254 * @see org.eclipse.jetty.io.bio.StreamEndPoint#setMaxIdleTime(int)
|
H A D | StreamEndPoint.java | 20 package org.eclipse.jetty.io.bio;
|
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
H A D | certificateutil.cc | 25 BIO* bio = BIO_new_mem_buf(&pem[0], pem.size()); local 26 X509* x509 = PEM_read_bio_X509(bio, NULL, 0, NULL); 27 BIO_free(bio); 41 BIO* bio = BIO_new(BIO_s_mem()); local 42 PEM_write_bio_X509(bio, x509); 43 BIO_flush(bio); 46 size_t data_size = BIO_get_mem_data(bio, &data); 49 BIO_free(bio); 56 BIO* bio = BIO_new_mem_buf(&pem[0], pem.size()); local 57 EVP_PKEY* pkey = PEM_read_bio_PrivateKey(bio, NUL 65 BIO* bio = BIO_new(BIO_s_mem()); local [all...] |
/external/pdfium/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/ |
H A D | bio.c | 48 @param bio BIO handle 51 static void opj_bio_putbit(opj_bio_t *bio, OPJ_UINT32 b); 54 @param bio BIO handle 57 static OPJ_UINT32 opj_bio_getbit(opj_bio_t *bio); 60 @param bio BIO handle 63 static OPJ_BOOL opj_bio_byteout(opj_bio_t *bio); 66 @param bio BIO handle 69 static OPJ_BOOL opj_bio_bytein(opj_bio_t *bio); 81 OPJ_BOOL opj_bio_byteout(opj_bio_t *bio) { argument 82 bio 91 opj_bio_bytein(opj_bio_t *bio) argument 101 opj_bio_putbit(opj_bio_t *bio, OPJ_UINT32 b) argument 109 opj_bio_getbit(opj_bio_t *bio) argument 124 opj_bio_t *bio = (opj_bio_t*)opj_malloc(sizeof(opj_bio_t)); local 128 opj_bio_destroy(opj_bio_t *bio) argument 134 opj_bio_numbytes(opj_bio_t *bio) argument 138 opj_bio_init_enc(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len) argument 146 opj_bio_init_dec(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len) argument 154 opj_bio_write(opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n) argument 161 opj_bio_read(opj_bio_t *bio, OPJ_UINT32 n) argument 171 opj_bio_flush(opj_bio_t *bio) argument 183 opj_bio_inalign(opj_bio_t *bio) argument [all...] |
H A D | tgt.c | 260 void opj_tgt_encode(opj_bio_t *bio, opj_tgt_tree_t *tree, OPJ_UINT32 leafno, OPJ_INT32 threshold) { argument 284 opj_bio_write(bio, 1, 1); 289 opj_bio_write(bio, 0, 1); 300 OPJ_UINT32 opj_tgt_decode(opj_bio_t *bio, opj_tgt_tree_t *tree, OPJ_UINT32 leafno, OPJ_INT32 threshold) { argument 321 if (opj_bio_read(bio, 1)) {
|
/external/boringssl/src/crypto/x509/ |
H A D | pkcs7_test.c | 599 BIO *bio = BIO_new_mem_buf((char *) pem, strlen(pem)); local 602 if (!PKCS7_get_PEM_certificates(certs, bio)) { 614 BIO_free(bio); 621 BIO *bio = BIO_new_mem_buf((char *) pem, strlen(pem)); local 624 if (!PKCS7_get_PEM_CRLs(crls, bio)) { 636 BIO_free(bio);
|
/external/boringssl/src/ssl/test/ |
H A D | async_bio.cc | 33 AsyncBio *GetData(BIO *bio) { argument 34 if (bio->method != &g_async_bio_method) { 37 return (AsyncBio *)bio->ptr; 40 static int AsyncWrite(BIO *bio, const char *in, int inl) { argument 41 AsyncBio *a = GetData(bio); 42 if (a == NULL || bio->next_bio == NULL) { 49 return BIO_write(bio->next_bio, in, inl); 52 BIO_clear_retry_flags(bio); 55 BIO_set_retry_write(bio); 63 int ret = BIO_write(bio 72 AsyncRead(BIO *bio, char *out, int outl) argument 98 AsyncCtrl(BIO *bio, int cmd, long num, void *ptr) argument 108 AsyncNew(BIO *bio) argument 119 AsyncFree(BIO *bio) argument 131 AsyncCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) argument 166 AsyncBioAllowRead(BIO *bio, size_t count) argument 174 AsyncBioAllowWrite(BIO *bio, size_t count) argument [all...] |
H A D | packeted_bio.cc | 33 // ReadAll reads |len| bytes from |bio| into |out|. It returns 1 on success and 35 static int ReadAll(BIO *bio, uint8_t *out, size_t len) { argument 41 int ret = BIO_read(bio, out, chunk_len); 51 static int PacketedWrite(BIO *bio, const char *in, int inl) { argument 52 if (bio->next_bio == NULL) { 56 BIO_clear_retry_flags(bio); 65 int ret = BIO_write(bio->next_bio, header, sizeof(header)); 67 BIO_copy_next_retry(bio); 72 ret = BIO_write(bio->next_bio, in, inl); 74 BIO_copy_next_retry(bio); 81 PacketedRead(BIO *bio, char *out, int outl) argument 165 PacketedCtrl(BIO *bio, int cmd, long num, void *ptr) argument 175 PacketedNew(BIO *bio) argument 180 PacketedFree(BIO *bio) argument 189 PacketedCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) argument [all...] |
/external/jetty/src/java/org/eclipse/jetty/server/bio/ |
H A D | SocketConnector.java | 19 package org.eclipse.jetty.server.bio; 35 import org.eclipse.jetty.io.bio.SocketEndPoint;
|
/external/boringssl/src/crypto/conf/ |
H A D | conf.c | 62 #include <openssl/bio.h> 728 int NCONF_load_bio(CONF *conf, BIO *bio, long *out_error_line) { argument 729 return def_load_bio(conf, bio, out_error_line);
|
/external/ipsec-tools/src/racoon/ |
H A D | eaytest.c | 51 #include <openssl/bio.h> 96 BIO *bio; local 100 bio = BIO_new_mem_buf(pubkey_txt, strlen(pubkey_txt)); 101 evp = PEM_read_bio_PUBKEY(bio, NULL, NULL, NULL); 199 BIO *bio; local 206 bio = BIO_new_mem_buf(buf, strlen(buf)); 207 error = PEM_read_bio(bio, &nm, &header, &data, &len);
|
/external/boringssl/src/crypto/pkcs8/ |
H A D | pkcs8.c | 1058 PKCS12* d2i_PKCS12_bio(BIO *bio, PKCS12 **out_p12) { argument 1074 int n = BIO_read(bio, &buf->data[used], buf->length - used); 1103 BIO *bio; local 1106 bio = BIO_new_fp(fp, 0 /* don't take ownership */); 1107 if (!bio) { 1111 ret = d2i_PKCS12_bio(bio, out_p12); 1112 BIO_free(bio);
|