/external/tlsdate/src/ |
H A D | proxy-bio-plan9.h | 2 * proxy-bio.h - BIO layer for transparent proxy connections 22 int (*connect)(BIO *b); 25 BIO *BIO_new_proxy(); 28 int BIO_proxy_set_type(BIO *b, const char *type); 29 int BIO_proxy_set_host(BIO *b, const char *host); 30 void BIO_proxy_set_port(BIO *b, uint16_t port);
|
H A D | proxy-bio.h | 2 * proxy-bio.h - BIO layer for transparent proxy connections 22 int (*connect)(BIO *b); 25 BIO *BIO_new_proxy(); 28 int BIO_proxy_set_type (BIO *b, const char *type); 29 int BIO_proxy_set_host (BIO *b, const char *host); 30 void BIO_proxy_set_port (BIO *b, uint16_t port);
|
H A D | test-bio.h | 2 * test-bio.h - test BIO that stores reads/writes 14 BIO *BIO_new_test(); 16 size_t BIO_test_output_left (BIO *b); 17 size_t BIO_test_get_output (BIO *b, unsigned char *buf, size_t bufsz); 18 void BIO_test_add_input (BIO *b, const unsigned char *buf, size_t bufsz);
|
H A D | test-bio.c | 2 * test-bio.c - BIO layer for testing 8 * This is a 'source/sink' BIO which supports synthetic inputs and outputs, and 12 * filter BIO. 35 static struct test_ctx *bio_ctx (BIO *b) 63 int test_new (BIO *b) 79 int test_free (BIO *b) 90 int test_write (BIO *b, const char *buf, int sz) 99 int test_read (BIO *b, char *buf, int sz) 107 long test_ctrl (BIO *b, int cmd, long num, void *ptr) 112 long test_callback_ctrl (BIO * [all...] |
H A D | proxy-bio-plan9.c | 2 * proxy-bio.c - BIO layer for SOCKS4a/5 proxy connections 8 * This file implements a SOCKS4a/SOCKS5 "filter" BIO. In SSL terminology, a BIO 12 * SSL BIO (filter) -> SOCKS BIO (filter) -> connect BIO (source/sink) 15 * SSL BIO -> SOCKS BIO -> SSL BIO -> connect BIO [all...] |
H A D | proxy-bio.c | 2 * proxy-bio.c - BIO layer for SOCKS4a/5 proxy connections 8 * This file implements a SOCKS4a/SOCKS5 "filter" BIO. In SSL terminology, a BIO 12 * SSL BIO (filter) -> SOCKS BIO (filter) -> connect BIO (source/sink) 15 * SSL BIO -> SOCKS BIO -> SSL BIO -> connect BIO [all...] |
/external/libchrome/crypto/ |
H A D | openssl_bio_string.h | 13 typedef struct bio_st BIO; typedef in typeref:struct:bio_st 17 // Creates a new BIO that can be used with OpenSSL's various output functions, 23 // Note: |out| must remain valid for the duration of the BIO. 24 CRYPTO_EXPORT BIO* BIO_new_string(std::string* out);
|
H A D | openssl_bio_string.cc | 14 int bio_string_write(BIO* bio, const char* data, int len) { 19 int bio_string_puts(BIO* bio, const char* data) { 24 long bio_string_ctrl(BIO* bio, int cmd, long num, void* ptr) { 41 int bio_string_new(BIO* bio) { 47 int bio_string_free(BIO* bio) { 68 BIO* BIO_new_string(std::string* out) { 69 BIO* bio = BIO_new(&bio_string_methods);
|
/external/boringssl/include/openssl/ |
H A D | bio.h | 74 /* BIO abstracts over a file-descriptor like interface. */ 79 /* BIO_new creates a new BIO with the given type and a reference count of one. 80 * It returns the fresh |BIO|, or NULL on error. */ 81 OPENSSL_EXPORT BIO *BIO_new(const BIO_METHOD *type); 84 * drops to zero, it (optionally) calls the BIO's callback with |BIO_CB_FREE|, 85 * frees the ex_data and then, if the BIO has a destroy callback for the 87 * the next BIO in the chain, if any. 90 OPENSSL_EXPORT int BIO_free(BIO *bio); 96 OPENSSL_EXPORT void BIO_vfree(BIO *bio); 99 OPENSSL_EXPORT BIO *BIO_up_re [all...] |
/external/boringssl/src/include/openssl/ |
H A D | bio.h | 74 /* BIO abstracts over a file-descriptor like interface. */ 79 /* BIO_new creates a new BIO with the given type and a reference count of one. 80 * It returns the fresh |BIO|, or NULL on error. */ 81 OPENSSL_EXPORT BIO *BIO_new(const BIO_METHOD *type); 84 * drops to zero, it (optionally) calls the BIO's callback with |BIO_CB_FREE|, 85 * frees the ex_data and then, if the BIO has a destroy callback for the 87 * the next BIO in the chain, if any. 90 OPENSSL_EXPORT int BIO_free(BIO *bio); 96 OPENSSL_EXPORT void BIO_vfree(BIO *bio); 99 OPENSSL_EXPORT BIO *BIO_up_re [all...] |
/external/libbrillo/brillo/streams/ |
H A D | openssl_stream_bio.h | 10 // Forward-declare BIO as an alias to OpenSSL's internal bio_st structure. 11 using BIO = struct bio_st; 17 // Creates a new BIO that uses the brillo::Stream as the back-end storage. 18 // The created BIO does *NOT* own the |stream| and the stream must out-live 19 // the BIO. 22 // The returned BIO performs *NON-BLOCKING* IO on the underlying stream. 23 BRILLO_EXPORT BIO* BIO_new_stream(brillo::Stream* stream);
|
H A D | openssl_stream_bio.cc | 16 // Internal functions for implementing OpenSSL BIO on brillo::Stream. 17 int stream_write(BIO* bio, const char* buf, int size) { 32 int stream_read(BIO* bio, char* buf, int size) { 50 long stream_ctrl(BIO* bio, int cmd, long /* num */, void* /* ptr */) { 58 int stream_new(BIO* bio) { 65 int stream_free(BIO* bio) { 76 // BIO_METHOD structure describing the BIO built on top of brillo::Stream. 92 BIO* BIO_new_stream(brillo::Stream* stream) { 93 BIO* bio = BIO_new(&stream_method);
|
/external/boringssl/src/ssl/test/ |
H A D | async_bio.h | 23 // AsyncBioCreate creates a filter BIO for testing asynchronous state 25 // and return EAGAIN unless explicitly allowed. Each async BIO has a 27 // incremented, bytes are allowed to flow through the BIO. 30 // AsyncBioCreateDatagram creates a filter BIO for testing for 36 void AsyncBioAllowRead(BIO *bio, size_t count); 39 void AsyncBioAllowWrite(BIO *bio, size_t count); 42 void AsyncBioEnforceWriteQuota(BIO *bio, bool enforce);
|
H A D | async_bio.cc | 34 AsyncBio *GetData(BIO *bio) { 41 static int AsyncWrite(BIO *bio, const char *in, int inl) { 71 static int AsyncRead(BIO *bio, char *out, int outl) { 97 static long AsyncCtrl(BIO *bio, int cmd, long num, void *ptr) { 107 static int AsyncNew(BIO *bio) { 119 static int AsyncFree(BIO *bio) { 131 static long AsyncCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) { 166 void AsyncBioAllowRead(BIO *bio, size_t count) { 174 void AsyncBioAllowWrite(BIO *bio, size_t count) { 182 void AsyncBioEnforceWriteQuota(BIO *bi [all...] |
/external/boringssl/src/crypto/bio/ |
H A D | bio.c | 71 /* BIO_set initialises a BIO structure to have the given type and sets the 73 static int bio_set(BIO *bio, const BIO_METHOD *method) { 74 /* This function can be called with a stack allocated |BIO| so we have to 75 * assume that the contents of |BIO| are arbitary. This also means that it'll 76 * leak memory if you call |BIO_set| twice on the same BIO. */ 77 memset(bio, 0, sizeof(BIO)); 90 BIO *BIO_new(const BIO_METHOD *method) { 91 BIO *ret = OPENSSL_malloc(sizeof(BIO)); 93 OPENSSL_PUT_ERROR(BIO, ERR_R_MALLOC_FAILUR [all...] |
H A D | file.c | 126 BIO *BIO_new_file(const char *filename, const char *mode) { 127 BIO *ret; 136 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_SUCH_FILE); 138 OPENSSL_PUT_ERROR(BIO, BIO_R_SYS_LIB); 153 BIO *BIO_new_fp(FILE *stream, int close_flag) { 154 BIO *ret = BIO_new(BIO_s_file()); 164 static int file_new(BIO *bio) { return 1; } 166 static int file_free(BIO *bio) { 184 static int file_read(BIO *b, char *out, int outl) { 192 OPENSSL_PUT_ERROR(BIO, ERR_R_SYS_LI [all...] |
H A D | pair.c | 64 BIO *peer; /* NULL if buf == NULL. 67 * peer != NULL iff init != 0 in the BIO. */ 88 static int bio_new(BIO *bio) { 102 static void bio_destroy_pair(BIO *bio) { 104 BIO *peer_bio; 134 static int bio_free(BIO *bio) { 173 int BIO_zero_copy_get_read_buf(BIO* bio, uint8_t** out_read_buf, 184 OPENSSL_PUT_ERROR(BIO, BIO_R_UNINITIALIZED); 191 OPENSSL_PUT_ERROR(BIO, BIO_R_UNSUPPORTED_METHOD); 197 OPENSSL_PUT_ERROR(BIO, BIO_R_UNSUPPORTED_METHO [all...] |
H A D | socket.c | 82 static int sock_new(BIO *bio) { 90 static int sock_free(BIO *bio) { 105 static int sock_read(BIO *b, char *out, int outl) { 123 static int sock_write(BIO *b, const char *in, int inl) { 137 static int sock_puts(BIO *bp, const char *str) { 141 static long sock_ctrl(BIO *b, int cmd, long num, void *ptr) { 186 BIO *BIO_new_socket(int fd, int close_flag) { 187 BIO *ret;
|
H A D | fd.c | 124 BIO *BIO_new_fd(int fd, int close_flag) { 125 BIO *ret = BIO_new(BIO_s_fd()); 133 static int fd_new(BIO *bio) { 139 static int fd_free(BIO *bio) { 153 static int fd_read(BIO *b, char *out, int outl) { 167 static int fd_write(BIO *b, const char *in, int inl) { 179 static long fd_ctrl(BIO *b, int cmd, long num, void *ptr) { 237 static int fd_puts(BIO *bp, const char *str) { 241 static int fd_gets(BIO *bp, char *buf, int size) { 264 int BIO_set_fd(BIO *bi [all...] |
H A D | bio_mem.c | 67 BIO *BIO_new_mem_buf(void *buf, int len) { 68 BIO *ret; 73 OPENSSL_PUT_ERROR(BIO, BIO_R_NULL_PARAMETER); 89 /* |num| is used to store the value that this BIO will return when it runs 97 static int mem_new(BIO *bio) { 105 /* |shutdown| is used to store the close flag: whether the BIO has ownership 115 static int mem_free(BIO *bio) { 135 static int mem_read(BIO *bio, char *out, int outl) { 162 static int mem_write(BIO *bio, const char *in, int inl) { 170 OPENSSL_PUT_ERROR(BIO, BIO_R_WRITE_TO_READ_ONLY_BI [all...] |
H A D | connect.c | 102 * BIO. */ 105 * callback(BIO,state,ret); The callback should return 'ret', state is for 107 int (*info_callback)(const BIO *bio, int state, int ret); 167 static int conn_state(BIO *bio, BIO_CONNECT *c) { 169 int (*cb)(const BIO *, int, int) = NULL; 183 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_HOSTNAME_SPECIFIED); 193 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_PORT_SPECIFIED); 207 OPENSSL_PUT_ERROR(BIO, BIO_R_UNABLE_TO_CREATE_SOCKET); 214 OPENSSL_PUT_ERROR(BIO, BIO_R_ERROR_SETTING_NBIO); 226 OPENSSL_PUT_ERROR(BIO, BIO_R_KEEPALIV [all...] |
/external/boringssl/src/crypto/asn1/ |
H A D | bio_ndef.c | 67 /* Experimental NDEF ASN1 BIO support routines */ 70 * get a BIO from it then any data written through the BIO 75 * When the BIO is flushed the output is finalized and any 78 * The BIO is a 'proper' BIO and can handle non blocking I/O 84 /* BIO support data stored in the ASN1 BIO ex_arg */ 88 /* ASN1 structure this BIO refers to */ 91 /* Top of the BIO chai [all...] |
H A D | bio_asn1.c | 111 static int asn1_bio_write(BIO *h, const char *buf,int num); 112 static int asn1_bio_read(BIO *h, char *buf, int size); 113 static int asn1_bio_puts(BIO *h, const char *str); 114 static int asn1_bio_gets(BIO *h, char *str, int size); 115 static long asn1_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2); 116 static int asn1_bio_new(BIO *h); 117 static int asn1_bio_free(BIO *data); 118 static long asn1_bio_callback_ctrl(BIO *h, int cmd, bio_info_cb fp); 121 static int asn1_bio_flush_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx, 123 static int asn1_bio_setup_ex(BIO * [all...] |
H A D | a_i2d_fp.c | 65 BIO *b; 79 int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, void *x) 114 BIO *b; 128 int ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x)
|
/external/boringssl/src/crypto/x509v3/ |
H A D | v3_pku.c | 66 static int i2r_PKEY_USAGE_PERIOD(X509V3_EXT_METHOD *method, PKEY_USAGE_PERIOD *usage, BIO *out, int indent); 86 PKEY_USAGE_PERIOD *usage, BIO *out, int indent)
|