HomeSort by relevance Sort by last modified time
    Searched refs:BIO (Results 1 - 25 of 141) sorted by null

1 2 3 4 5 6

  /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/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 method 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 *method);
86 // BIO_free decrements the reference count of |bio|. If the reference count
88 // frees |bio| itself. It then repeats that for the next BIO in the chain, if
92 OPENSSL_EXPORT int BIO_free(BIO *bio);
    [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 74 #include <openssl/bio.h>
91 BIO *BIO_new_file(const char *filename, const char *mode) {
92 BIO *ret;
101 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_SUCH_FILE);
103 OPENSSL_PUT_ERROR(BIO, BIO_R_SYS_LIB);
118 BIO *BIO_new_fp(FILE *stream, int close_flag) {
119 BIO *ret = BIO_new(BIO_s_file());
129 static int file_new(BIO *bio) { return 1; }
131 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>
132 BIO *BIO_new_fd(int fd, int close_flag) {
133 BIO *ret = BIO_new(BIO_s_fd());
141 static int fd_new(BIO *bio) {
143 bio->num = -1;
147 static int fd_free(BIO *bio) {
148 if (bio == NULL) {
152 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...]
  /device/linaro/bootloader/edk2/CryptoPkg/Library/TlsLib/
InternalTlsLib.h 20 #include <openssl/bio.h>
30 // Memory BIO for the TLS/SSL Reading operations.
32 BIO *InBio;
34 // Memory BIO for the TLS/SSL Writing operations.
36 BIO *OutBio;
  /external/conscrypt/common/src/jni/main/include/conscrypt/
scoped_ssl_bio.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/libcups/cups/
tls-boringssl.c 40 static int http_bio_write(BIO *h, const char *buf, int num);
41 static int http_bio_read(BIO *h, char *buf, int size);
42 static int http_bio_puts(BIO *h, const char *str);
43 static long http_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2);
44 static int http_bio_new(BIO *h);
45 static int http_bio_free(BIO *data);
123 * '_httpBIOMethods()' - Get the OpenSSL BIO methods for HTTP connections.
126 static BIO_METHOD * /* O - BIO methods for OpenSSL */
138 http_bio_ctrl(BIO *h, /* I - BIO data *
329 BIO *bio; \/* BIO data *\/ local
    [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)
113 BIO *b;
126 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...]
  /cts/hostsidetests/security/securityPatch/CVE-2016-2109/
poc.c 19 #include <openssl/bio.h>
34 BIO *in = BIO_new(BIO_s_mem());

Completed in 1028 milliseconds

1 2 3 4 5 6