/external/boringssl/src/ssl/test/ |
async_bio.h | 18 #include <openssl/bio.h> 21 // AsyncBioCreate creates a filter BIO for testing asynchronous state 23 // and return EAGAIN unless explicitly allowed. Each async BIO has a 25 // incremented, bytes are allowed to flow through the BIO. 26 bssl::UniquePtr<BIO> AsyncBioCreate(); 28 // AsyncBioCreateDatagram creates a filter BIO for testing for 31 bssl::UniquePtr<BIO> AsyncBioCreateDatagram(); 33 // AsyncBioAllowRead increments |bio|'s read quota by |count|. 34 void AsyncBioAllowRead(BIO *bio, size_t count) [all...] |
packeted_bio.h | 19 #include <openssl/bio.h> 30 // PacketedBioCreate creates a filter BIO which implements a reliable in-order 33 // During a |BIO_read|, the peer may signal the filter BIO to simulate a 36 bssl::UniquePtr<BIO> PacketedBioCreate(timeval *clock); 38 // PacketedBioAdvanceClock advances |bio|'s clock and returns true if there is a 40 bool PacketedBioAdvanceClock(BIO *bio);
|
async_bio.cc | 20 #include <openssl/bio.h> 37 AsyncBio *GetData(BIO *bio) { 38 if (bio->method != &g_async_bio_method) { 41 return (AsyncBio *)bio->ptr; 44 static int AsyncWrite(BIO *bio, const char *in, int inl) { 45 AsyncBio *a = GetData(bio); 46 if (a == NULL || bio->next_bio == NULL) { 51 return BIO_write(bio->next_bio, in, inl) [all...] |
packeted_bio.cc | 49 PacketedBio *GetData(BIO *bio) { 50 if (bio->method != &g_packeted_bio_method) { 53 return (PacketedBio *)bio->ptr; 56 // ReadAll reads |len| bytes from |bio| into |out|. It returns 1 on success and 58 static int ReadAll(BIO *bio, uint8_t *out, size_t len) { 64 int ret = BIO_read(bio, out, chunk_len); 74 static int PacketedWrite(BIO *bio, const char *in, int inl) [all...] |
/external/libchrome/crypto/ |
openssl_bio_string.h | 12 // From <openssl/bio.h> 13 typedef struct bio_st BIO; 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);
|
openssl_bio_string.cc | 7 #include <openssl/bio.h> 14 int bio_string_write(BIO* bio, const char* data, int len) { 15 reinterpret_cast<std::string*>(bio->ptr)->append(data, len); 19 int bio_string_puts(BIO* bio, const char* data) { 21 return bio_string_write(bio, data, strlen(data)); 24 long bio_string_ctrl(BIO* bio, int cmd, long num, void* ptr) { 25 std::string* str = reinterpret_cast<std::string*>(bio->ptr) 69 BIO* bio = BIO_new(&bio_string_methods); local [all...] |
/external/boringssl/src/include/openssl/ |
bio.h | 75 /* BIO abstracts over a file-descriptor like interface. */ 80 DEFINE_STACK_OF(BIO) 82 /* BIO_new creates a new BIO with the given type and a reference count of one. 83 * It returns the fresh |BIO|, or NULL on error. */ 84 OPENSSL_EXPORT BIO *BIO_new(const BIO_METHOD *type); 86 /* BIO_free decrements the reference count of |bio|. If the reference count 87 * drops to zero, it (optionally) calls the BIO's callback with |BIO_CB_FREE|, 88 * frees the ex_data and then, if the BIO has a destroy callback for the 89 * method, calls it. Finally it frees |bio| itself. It then repeats that for 90 * the next BIO in the chain, if any [all...] |
pkcs7.h | 64 BIO *pem_bio); 70 BIO *pem_bio);
|
/external/libbrillo/brillo/streams/ |
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);
|
openssl_stream_bio.cc | 7 #include <openssl/bio.h> 16 // Internal functions for implementing OpenSSL BIO on brillo::Stream. 17 int stream_write(BIO* bio, const char* buf, int size) { 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) { 33 brillo::Stream* stream = static_cast<brillo::Stream*>(bio->ptr) 93 BIO* bio = BIO_new(&stream_method); local [all...] |
/external/boringssl/src/crypto/bio/ |
bio.c | 57 #include <openssl/bio.h> 71 BIO *BIO_new(const BIO_METHOD *method) { 72 BIO *ret = OPENSSL_malloc(sizeof(BIO)); 74 OPENSSL_PUT_ERROR(BIO, ERR_R_MALLOC_FAILURE); 78 OPENSSL_memset(ret, 0, sizeof(BIO)); 91 int BIO_free(BIO *bio) { 92 BIO *next_bio; 94 for (; bio != NULL; bio = next_bio) [all...] |
file.c | 75 #include <openssl/bio.h> 90 BIO *BIO_new_file(const char *filename, const char *mode) { 91 BIO *ret; 100 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_SUCH_FILE); 102 OPENSSL_PUT_ERROR(BIO, BIO_R_SYS_LIB); 117 BIO *BIO_new_fp(FILE *stream, int close_flag) { 118 BIO *ret = BIO_new(BIO_s_file()); 128 static int file_new(BIO *bio) { return 1; } 130 static int file_free(BIO *bio) [all...] |
pair.c | 53 #include <openssl/bio.h> 66 BIO *peer; /* NULL if buf == NULL. 69 * peer != NULL iff init != 0 in the BIO. */ 84 static int bio_new(BIO *bio) { 94 bio->ptr = b; 98 static void bio_destroy_pair(BIO *bio) { 99 struct bio_bio_st *b = bio->ptr; 100 BIO *peer_bio [all...] |
connect.c | 57 #include <openssl/bio.h> 101 /* the file descriptor is kept in bio->num in order to match the socket 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) [all...] |
socket.c | 1 /* crypto/bio/bss_sock.c */ 58 #include <openssl/bio.h> 82 static int sock_new(BIO *bio) { 83 bio->init = 0; 84 bio->num = 0; 85 bio->ptr = NULL; 86 bio->flags = 0; 90 static int sock_free(BIO *bio) { [all...] |
fd.c | 57 #include <openssl/bio.h> 131 BIO *BIO_new_fd(int fd, int close_flag) { 132 BIO *ret = BIO_new(BIO_s_fd()); 140 static int fd_new(BIO *bio) { 142 bio->num = -1; 146 static int fd_free(BIO *bio) { 147 if (bio == NULL) { 151 if (bio->shutdown) [all...] |
bio_mem.c | 57 #include <openssl/bio.h> 69 BIO *BIO_new_mem_buf(const void *buf, int len) { 70 BIO *ret; 75 OPENSSL_PUT_ERROR(BIO, BIO_R_NULL_PARAMETER); 92 /* |num| is used to store the value that this BIO will return when it runs 100 static int mem_new(BIO *bio) { 108 /* |shutdown| is used to store the close flag: whether the BIO has ownership 110 bio->shutdown = 1; 111 bio->init = 1 [all...] |
/external/conscrypt/common/src/jni/main/include/ |
ScopedSslBio.h | 25 * Sets the read and write BIO for an SSL connection and removes it when it goes out of scope. 26 * We hang on to BIO with a JNI GlobalRef and we want to remove them as soon as possible. 30 ScopedSslBio(SSL* ssl, BIO* rbio, BIO* wbio) : ssl_(ssl) {
|
/external/boringssl/src/ssl/ |
bio_ssl.cc | 12 #include <openssl/bio.h> 15 static SSL *get_ssl(BIO *bio) { 16 return reinterpret_cast<SSL *>(bio->ptr); 19 static int ssl_read(BIO *bio, char *out, int outl) { 20 SSL *ssl = get_ssl(bio); 25 BIO_clear_retry_flags(bio); 31 BIO_set_retry_read(bio); 35 BIO_set_retry_write(bio); [all...] |
/external/boringssl/src/crypto/x509v3/ |
v3_pku.c | 67 PKEY_USAGE_PERIOD *usage, BIO *out, 89 PKEY_USAGE_PERIOD *usage, BIO *out,
|
v3_prn.c | 62 #include <openssl/bio.h> 69 static int unknown_ext_print(BIO *out, X509_EXTENSION *ext, 74 void X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent, 105 int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, 158 int X509V3_extensions_print(BIO *bp, const char *title, 194 static int unknown_ext_print(BIO *out, X509_EXTENSION *ext, 221 BIO *bio_tmp;
|
/external/boringssl/src/crypto/asn1/ |
a_i2d_fp.c | 64 BIO *b; 77 int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, void *x) 110 BIO *b; 123 int ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x)
|
/external/boringssl/src/crypto/x509/ |
x_all.c | 147 X509 *d2i_X509_bio(BIO *bp, X509 **x509) 152 int i2d_X509_bio(BIO *bp, X509 *x509) 169 X509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) 174 int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl) 191 X509_REQ *d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) 196 int i2d_X509_REQ_bio(BIO *bp, X509_REQ *req) 235 RSA *d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) 240 int i2d_RSAPrivateKey_bio(BIO *bp, RSA *rsa) 245 RSA *d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa) 250 RSA *d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa [all...] |
/external/boringssl/src/crypto/evp/ |
print.c | 55 #include <openssl/bio.h> 67 static int bn_print(BIO *bp, const char *number, const BIGNUM *num, 136 static int do_rsa_print(BIO *out, const RSA *rsa, int off, 204 static int rsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, 209 static int rsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, 217 static int do_dsa_print(BIO *bp, const DSA *x, int off, int ptype) { 275 static int dsa_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, 280 static int dsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, 285 static int dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, 293 static int do_EC_KEY_print(BIO *bp, const EC_KEY *x, int off, int ktype) [all...] |
/external/libcups/cups/ |
tls-boringssl.c | 43 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); 208 * '_httpBIOMethods()' - Get the OpenSSL BIO methods for HTTP connections. 211 static BIO_METHOD * /* O - BIO methods for OpenSSL */ 223 http_bio_ctrl(BIO *h, /* I - BIO data * 434 BIO *bio; \/* BIO data *\/ local [all...] |