/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 113 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> 101 /* the file descriptor is kept in bio->num in order to match the socket 107 int (*info_callback)(const BIO *bio, int state, int ret); 167 static int conn_state(BIO *bio, BIO_CONNECT *c) { argument 205 &bio->num, &c->them, &c->them_length, c->param_hostname, 213 if (!bio_socket_nbio(bio->num, 1)) { 222 ret = setsockopt(bio->num, SOL_SOCKET, SO_KEEPALIVE, (char *)&i, 231 BIO_clear_retry_flags(bio); 232 ret = connect(bio->num, (struct sockaddr*) &c->them, c->them_length); 235 BIO_set_flags(bio, (BIO_FLAGS_IO_SPECIA 318 conn_new(BIO *bio) argument 326 conn_close_socket(BIO *bio) argument 341 conn_free(BIO *bio) argument 355 conn_read(BIO *bio, char *out, int out_len) argument 379 conn_write(BIO *bio, const char *in, int in_len) argument 403 conn_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 491 conn_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) argument 534 BIO_set_conn_hostname(BIO *bio, const char *name) argument 538 BIO_set_conn_port(BIO *bio, const char *port_str) argument 542 BIO_set_nbio(BIO *bio, int on) argument [all...] |
/external/curl/docs/examples/ |
H A D | cacertinmem.c | 47 BIO * bio; local 91 bio=BIO_new_mem_buf(mypem, -1); 95 PEM_read_bio_X509(bio, &cert, 0, NULL); 108 BIO_free(bio);
|
H A D | usercertinmem.c | 45 BIO *bio = NULL; local 118 bio = BIO_new_mem_buf((char *)mypem, -1); 120 if (bio == NULL) { 127 cert = PEM_read_bio_X509(bio, NULL, 0, NULL); 138 /*create a bio for the RSA key*/ 144 /*read the key bio into an RSA object*/ 147 printf("Failed to create key bio\n"); 157 if (bio) 158 BIO_free(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)
|
/external/libbrillo/brillo/streams/ |
H A D | openssl_stream_bio.cc | 7 #include <openssl/bio.h> 17 int stream_write(BIO* bio, const char* buf, int size) { argument 18 brillo::Stream* stream = static_cast<brillo::Stream*>(bio->ptr); 20 BIO_clear_retry_flags(bio); 26 BIO_set_retry_write(bio); 32 int stream_read(BIO* bio, char* buf, int size) { argument 33 brillo::Stream* stream = static_cast<brillo::Stream*>(bio->ptr); 35 BIO_clear_retry_flags(bio); 43 BIO_set_retry_read(bio); 50 long stream_ctrl(BIO* bio, in argument 58 stream_new(BIO* bio) argument 65 stream_free(BIO* bio) argument 93 BIO* bio = BIO_new(&stream_method); local [all...] |
/external/libchrome/crypto/ |
H A D | openssl_bio_string.cc | 7 #include <openssl/bio.h> 14 int bio_string_write(BIO* bio, const char* data, int len) { argument 15 reinterpret_cast<std::string*>(bio->ptr)->append(data, len); 19 int bio_string_puts(BIO* bio, const char* data) { argument 21 return bio_string_write(bio, data, strlen(data)); 24 long bio_string_ctrl(BIO* bio, int cmd, long num, void* ptr) { argument 25 std::string* str = reinterpret_cast<std::string*>(bio->ptr); 41 int bio_string_new(BIO* bio) { argument 42 bio->ptr = NULL; 43 bio 47 bio_string_free(BIO* bio) argument 69 BIO* bio = BIO_new(&bio_string_methods); local [all...] |
/external/boringssl/src/tool/ |
H A D | server.cc | 132 BIO *bio = BIO_new_socket(sock, BIO_CLOSE); local 134 SSL_set_bio(ssl, bio, 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/third_party/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 static 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);
|
H A D | t_req.c | 68 BIO *bio = BIO_new(BIO_s_file()); local 69 if (bio == NULL) { 74 BIO_set_fp(bio, fp, BIO_NOCLOSE); 75 int ret = X509_REQ_print(bio, x); 76 BIO_free(bio); 80 int X509_REQ_print_ex(BIO *bio, X509_REQ *x, unsigned long nmflags, argument 100 if (BIO_write(bio, "Certificate Request:\n", 21) <= 0 || 101 BIO_write(bio, " Data:\n", 10) <= 0) { 107 if (BIO_printf(bio, "%8sVersion: %ld (0x%lx)\n", "", l + 1, l) <= 0) { 112 if (BIO_printf(bio, " Subjec 244 X509_REQ_print(BIO *bio, X509_REQ *req) argument [all...] |
/external/boringssl/src/ssl/ |
H A D | ssl_file.c | 117 #include <openssl/bio.h> 624 SSL_SESSION *d2i_SSL_SESSION_bio(BIO *bio, SSL_SESSION **out) { argument 625 return ASN1_d2i_bio_of(SSL_SESSION, SSL_SESSION_new, d2i_SSL_SESSION, bio, 629 int i2d_SSL_SESSION_bio(BIO *bio, const SSL_SESSION *session) { argument 630 return ASN1_i2d_bio_of(SSL_SESSION, i2d_SSL_SESSION, bio, session);
|
/external/boringssl/src/ssl/test/ |
H A D | async_bio.cc | 34 AsyncBio *GetData(BIO *bio) { argument 35 if (bio->method != &g_async_bio_method) { 38 return (AsyncBio *)bio->ptr; 41 static int AsyncWrite(BIO *bio, const char *in, int inl) { argument 42 AsyncBio *a = GetData(bio); 43 if (a == NULL || bio->next_bio == NULL) { 48 return BIO_write(bio->next_bio, in, inl); 51 BIO_clear_retry_flags(bio); 54 BIO_set_retry_write(bio); 62 int ret = BIO_write(bio 71 AsyncRead(BIO *bio, char *out, int outl) argument 97 AsyncCtrl(BIO *bio, int cmd, long num, void *ptr) argument 107 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 182 AsyncBioEnforceWriteQuota(BIO *bio, bool enforce) 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/libweave/examples/provider/ |
H A D | ssl_stream.cc | 38 void SSLStream::SslDeleter::operator()(BIO* bio) const { 39 BIO_free(bio); 165 BIO* bio = SSL_get_rbio(stream->ssl_.get()); local 166 if (BIO_do_connect(bio) == 1) 170 if (BIO_should_retry(bio)) {
|