Home
last modified time | relevance | path

Searched refs:BIO (Results 1 – 25 of 147) sorted by relevance

123456

/external/boringssl/src/include/openssl/
Dbio.h80 DEFINE_STACK_OF(BIO)
84 OPENSSL_EXPORT BIO *BIO_new(const BIO_METHOD *method);
92 OPENSSL_EXPORT int BIO_free(BIO *bio);
98 OPENSSL_EXPORT void BIO_vfree(BIO *bio);
101 OPENSSL_EXPORT int BIO_up_ref(BIO *bio);
108 OPENSSL_EXPORT int BIO_read(BIO *bio, void *data, int len);
118 OPENSSL_EXPORT int BIO_gets(BIO *bio, char *buf, int size);
122 OPENSSL_EXPORT int BIO_write(BIO *bio, const void *data, int len);
126 OPENSSL_EXPORT int BIO_write_all(BIO *bio, const void *data, size_t len);
130 OPENSSL_EXPORT int BIO_puts(BIO *bio, const char *buf);
[all …]
Dpem.h184 OPENSSL_EXPORT type *PEM_read_bio_##name(BIO *bp, type **x, \
194 OPENSSL_EXPORT int PEM_write_bio_##name(BIO *bp, type *x) { \
203 OPENSSL_EXPORT int PEM_write_bio_##name(BIO *bp, const type *x) { \
213 BIO *bp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
224 BIO *bp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
288 OPENSSL_EXPORT type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u);
291 OPENSSL_EXPORT int PEM_write_bio_##name(BIO *bp, type *x);
294 OPENSSL_EXPORT int PEM_write_bio_##name(BIO *bp, const type *x);
297 OPENSSL_EXPORT int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
335 OPENSSL_EXPORT int PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data,long *len…
[all …]
Dx509.h577 OPENSSL_EXPORT int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki);
579 OPENSSL_EXPORT int X509_signature_dump(BIO *bp,const ASN1_STRING *sig, int indent);
580 OPENSSL_EXPORT int X509_signature_print(BIO *bp, const X509_ALGOR *alg,
644 OPENSSL_EXPORT X509 *d2i_X509_bio(BIO *bp,X509 **x509);
645 OPENSSL_EXPORT int i2d_X509_bio(BIO *bp,X509 *x509);
646 OPENSSL_EXPORT X509_CRL *d2i_X509_CRL_bio(BIO *bp,X509_CRL **crl);
647 OPENSSL_EXPORT int i2d_X509_CRL_bio(BIO *bp,X509_CRL *crl);
648 OPENSSL_EXPORT X509_REQ *d2i_X509_REQ_bio(BIO *bp,X509_REQ **req);
649 OPENSSL_EXPORT int i2d_X509_REQ_bio(BIO *bp,X509_REQ *req);
650 OPENSSL_EXPORT RSA *d2i_RSAPrivateKey_bio(BIO *bp,RSA **rsa);
[all …]
Dpkcs7.h73 BIO *pem_bio);
82 BIO *pem_bio);
138 OPENSSL_EXPORT PKCS7 *d2i_PKCS7_bio(BIO *bio, PKCS7 **out);
148 OPENSSL_EXPORT int i2d_PKCS7_bio(BIO *bio, const PKCS7 *p7);
195 STACK_OF(X509) *certs, BIO *data, int flags);
/external/boringssl/src/crypto/bio/
Dbio.c72 BIO *BIO_new(const BIO_METHOD *method) { in BIO_new()
73 BIO *ret = OPENSSL_malloc(sizeof(BIO)); in BIO_new()
75 OPENSSL_PUT_ERROR(BIO, ERR_R_MALLOC_FAILURE); in BIO_new()
79 OPENSSL_memset(ret, 0, sizeof(BIO)); in BIO_new()
92 int BIO_free(BIO *bio) { in BIO_free()
93 BIO *next_bio; in BIO_free()
111 int BIO_up_ref(BIO *bio) { in BIO_up_ref()
116 void BIO_vfree(BIO *bio) { in BIO_vfree()
120 void BIO_free_all(BIO *bio) { in BIO_free_all()
124 int BIO_read(BIO *bio, void *buf, int len) { in BIO_read()
[all …]
Dfile.c93 BIO *BIO_new_file(const char *filename, const char *mode) { in BIO_new_file()
94 BIO *ret; in BIO_new_file()
103 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_SUCH_FILE); in BIO_new_file()
105 OPENSSL_PUT_ERROR(BIO, BIO_R_SYS_LIB); in BIO_new_file()
119 BIO *BIO_new_fp(FILE *stream, int close_flag) { in BIO_new_fp()
120 BIO *ret = BIO_new(BIO_s_file()); in BIO_new_fp()
130 static int file_new(BIO *bio) { return 1; } in file_new()
132 static int file_free(BIO *bio) { in file_free()
150 static int file_read(BIO *b, char *out, int outl) { in file_read()
158 OPENSSL_PUT_ERROR(BIO, ERR_R_SYS_LIB); in file_read()
[all …]
Dconnect.c109 int (*info_callback)(const BIO *bio, int state, int ret);
169 static int conn_state(BIO *bio, BIO_CONNECT *c) { in conn_state()
171 int (*cb)(const BIO *, int, int) = NULL; in conn_state()
185 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_HOSTNAME_SPECIFIED); in conn_state()
195 OPENSSL_PUT_ERROR(BIO, BIO_R_NO_PORT_SPECIFIED); in conn_state()
209 OPENSSL_PUT_ERROR(BIO, BIO_R_UNABLE_TO_CREATE_SOCKET); in conn_state()
216 OPENSSL_PUT_ERROR(BIO, BIO_R_ERROR_SETTING_NBIO); in conn_state()
228 OPENSSL_PUT_ERROR(BIO, BIO_R_KEEPALIVE); in conn_state()
242 OPENSSL_PUT_ERROR(BIO, BIO_R_CONNECT_ERROR); in conn_state()
263 OPENSSL_PUT_ERROR(BIO, BIO_R_NBIO_CONNECT_ERROR); in conn_state()
[all …]
Dpair.c66 BIO *peer; // NULL if buf == NULL.
84 static int bio_new(BIO *bio) { in bio_new()
98 static void bio_destroy_pair(BIO *bio) { in bio_destroy_pair()
100 BIO *peer_bio; in bio_destroy_pair()
130 static int bio_free(BIO *bio) { in bio_free()
150 static int bio_read(BIO *bio, char *buf, int size_) { in bio_read()
233 static int bio_write(BIO *bio, const char *buf, int num_) { in bio_write()
252 OPENSSL_PUT_ERROR(BIO, BIO_R_BROKEN_PIPE); in bio_write()
305 static int bio_make_pair(BIO *bio1, BIO *bio2, size_t writebuf1_len, in bio_make_pair()
316 OPENSSL_PUT_ERROR(BIO, BIO_R_IN_USE); in bio_make_pair()
[all …]
Dbio_mem.c69 BIO *BIO_new_mem_buf(const void *buf, int len) { in BIO_new_mem_buf()
70 BIO *ret; in BIO_new_mem_buf()
75 OPENSSL_PUT_ERROR(BIO, BIO_R_NULL_PARAMETER); in BIO_new_mem_buf()
100 static int mem_new(BIO *bio) { in mem_new()
118 static int mem_free(BIO *bio) { in mem_free()
138 static int mem_read(BIO *bio, char *out, int outl) { in mem_read()
165 static int mem_write(BIO *bio, const char *in, int inl) { in mem_write()
173 OPENSSL_PUT_ERROR(BIO, BIO_R_WRITE_TO_READ_ONLY_BIO); in mem_write()
192 static int mem_gets(BIO *bio, char *buf, int size) { in mem_gets()
227 static long mem_ctrl(BIO *bio, int cmd, long num, void *ptr) { in mem_ctrl()
[all …]
Dfd.c134 BIO *BIO_new_fd(int fd, int close_flag) { in BIO_new_fd()
135 BIO *ret = BIO_new(BIO_s_fd()); in BIO_new_fd()
143 static int fd_new(BIO *bio) { in fd_new()
149 static int fd_free(BIO *bio) { in fd_free()
163 static int fd_read(BIO *b, char *out, int outl) { in fd_read()
177 static int fd_write(BIO *b, const char *in, int inl) { in fd_write()
189 static long fd_ctrl(BIO *b, int cmd, long num, void *ptr) { in fd_ctrl()
248 static int fd_gets(BIO *bp, char *buf, int size) { in fd_gets()
272 int BIO_set_fd(BIO *bio, int fd, int close_flag) { in BIO_set_fd()
276 int BIO_get_fd(BIO *bio, int *out_fd) { in BIO_get_fd()
Dsocket.c84 static int sock_new(BIO *bio) { in sock_new()
92 static int sock_free(BIO *bio) { in sock_free()
107 static int sock_read(BIO *b, char *out, int outl) { in sock_read()
129 static int sock_write(BIO *b, const char *in, int inl) { in sock_write()
147 static long sock_ctrl(BIO *b, int cmd, long num, void *ptr) { in sock_ctrl()
195 BIO *BIO_new_socket(int fd, int close_flag) { in BIO_new_socket()
196 BIO *ret; in BIO_new_socket()
/external/boringssl/src/crypto/err/
Dbio.errordata1 BIO,100,BAD_FOPEN_MODE
2 BIO,101,BROKEN_PIPE
3 BIO,102,CONNECT_ERROR
4 BIO,103,ERROR_SETTING_NBIO
5 BIO,104,INVALID_ARGUMENT
6 BIO,105,IN_USE
7 BIO,106,KEEPALIVE
8 BIO,107,NBIO_CONNECT_ERROR
9 BIO,108,NO_HOSTNAME_SPECIFIED
10 BIO,109,NO_PORT_SPECIFIED
[all …]
/external/boringssl/src/ssl/test/
Dasync_bio.cc37 AsyncBio *GetData(BIO *bio) { in GetData()
44 static int AsyncWrite(BIO *bio, const char *in, int inl) { in AsyncWrite()
74 static int AsyncRead(BIO *bio, char *out, int outl) { in AsyncRead()
100 static long AsyncCtrl(BIO *bio, int cmd, long num, void *ptr) { in AsyncCtrl()
110 static int AsyncNew(BIO *bio) { in AsyncNew()
122 static int AsyncFree(BIO *bio) { in AsyncFree()
134 static long AsyncCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) { in AsyncCallbackCtrl()
156 bssl::UniquePtr<BIO> AsyncBioCreate() { in AsyncBioCreate()
157 return bssl::UniquePtr<BIO>(BIO_new(&g_async_bio_method)); in AsyncBioCreate()
160 bssl::UniquePtr<BIO> AsyncBioCreateDatagram() { in AsyncBioCreateDatagram()
[all …]
Dpacketed_bio.cc49 PacketedBio *GetData(BIO *bio) { in GetData()
58 static int ReadAll(BIO *bio, uint8_t *out, size_t len) { in ReadAll()
74 static int PacketedWrite(BIO *bio, const char *in, int inl) { in PacketedWrite()
104 static int PacketedRead(BIO *bio, char *out, int outl) { in PacketedRead()
192 static long PacketedCtrl(BIO *bio, int cmd, long num, void *ptr) { in PacketedCtrl()
203 static int PacketedNew(BIO *bio) { in PacketedNew()
208 static int PacketedFree(BIO *bio) { in PacketedFree()
218 static long PacketedCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) { in PacketedCallbackCtrl()
240 bssl::UniquePtr<BIO> PacketedBioCreate(timeval *clock) { in PacketedBioCreate()
241 bssl::UniquePtr<BIO> bio(BIO_new(&g_packeted_bio_method)); in PacketedBioCreate()
[all …]
Dasync_bio.h26 bssl::UniquePtr<BIO> AsyncBioCreate();
31 bssl::UniquePtr<BIO> AsyncBioCreateDatagram();
34 void AsyncBioAllowRead(BIO *bio, size_t count);
37 void AsyncBioAllowWrite(BIO *bio, size_t count);
40 void AsyncBioEnforceWriteQuota(BIO *bio, bool enforce);
/external/boringssl/src/crypto/evp/
Dprint.c67 static int bn_print(BIO *bp, const char *number, const BIGNUM *num, in bn_print()
136 static int do_rsa_print(BIO *out, const RSA *rsa, int off, in do_rsa_print()
204 static int rsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, in rsa_pub_print()
209 static int rsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, in rsa_priv_print()
217 static int do_dsa_print(BIO *bp, const DSA *x, int off, int ptype) { in do_dsa_print()
275 static int dsa_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_param_print()
280 static int dsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_pub_print()
285 static int dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_priv_print()
293 static int do_EC_KEY_print(BIO *bp, const EC_KEY *x, int off, int ktype) { in do_EC_KEY_print()
399 static int eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, in eckey_param_print()
[all …]
/external/libcups/cups/
Dtls-boringssl.c42 static int http_bio_write(BIO *h, const char *buf, int num);
43 static int http_bio_read(BIO *h, char *buf, int size);
44 static int http_bio_puts(BIO *h, const char *str);
45 static long http_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2);
46 static int http_bio_new(BIO *h);
47 static int http_bio_free(BIO *data);
140 http_bio_ctrl(BIO *h, /* I - BIO data */ in http_bio_ctrl()
180 http_bio_free(BIO *h) /* I - BIO data */ in http_bio_free()
200 http_bio_new(BIO *h) /* I - BIO data */ in http_bio_new()
219 http_bio_puts(BIO *h, /* I - BIO data */ in http_bio_puts()
[all …]
/external/libbrillo/brillo/streams/
Dopenssl_stream_bio.cc17 int stream_write(BIO* bio, const char* buf, int size) { in stream_write()
32 int stream_read(BIO* bio, char* buf, int size) { in stream_read()
50 long stream_ctrl(BIO* bio, int cmd, long /* num */, void* /* ptr */) { in stream_ctrl()
58 int stream_new(BIO* bio) { in stream_new()
65 int stream_free(BIO* bio) { in stream_free()
92 BIO* BIO_new_stream(brillo::Stream* stream) { in BIO_new_stream()
93 BIO* bio = BIO_new(&stream_method); in BIO_new_stream()
/external/boringssl/src/ssl/
Dbio_ssl.cc15 static SSL *get_ssl(BIO *bio) { in get_ssl()
19 static int ssl_read(BIO *bio, char *out, int outl) { in ssl_read()
59 static int ssl_write(BIO *bio, const char *out, int outl) { in ssl_write()
93 static long ssl_ctrl(BIO *bio, int cmd, long num, void *ptr) { in ssl_ctrl()
136 static int ssl_new(BIO *bio) { in ssl_new()
140 static int ssl_free(BIO *bio) { in ssl_free()
155 static long ssl_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) { in ssl_callback_ctrl()
177 long BIO_set_ssl(BIO *bio, SSL *ssl, int take_owership) { in BIO_set_ssl()
/external/boringssl/src/crypto/pem/
Dpem_pk8.c68 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder,
82 int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid, in PEM_write_bio_PKCS8PrivateKey_nid()
89 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in PEM_write_bio_PKCS8PrivateKey()
96 int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in i2d_PKCS8PrivateKey_bio()
103 int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid, in i2d_PKCS8PrivateKey_nid_bio()
110 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid, in do_pk8pkey()
156 EVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, in d2i_PKCS8PrivateKey_bio()
227 BIO *bp; in do_pk8pkey_fp()
241 BIO *bp; in d2i_PKCS8PrivateKey_fp()
Dpem_pkey.c72 EVP_PKEY *PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, in PEM_read_bio_PrivateKey()
147 int PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in PEM_write_bio_PrivateKey()
158 BIO *b = BIO_new_fp(fp, BIO_NOCLOSE); in PEM_read_PrivateKey()
172 BIO *b = BIO_new_fp(fp, BIO_NOCLOSE); in PEM_write_PrivateKey()
186 DH *PEM_read_bio_DHparams(BIO *bp, DH **x, pem_password_cb *cb, void *u) in PEM_read_bio_DHparams()
210 BIO *b = BIO_new_fp(fp, BIO_NOCLOSE); in PEM_read_DHparams()
/external/boringssl/src/crypto/x509v3/
Dv3_ocsp.c21 BIO *out, int indent);
24 void *nocheck, BIO *out, int indent);
47 BIO *bp, int ind) in i2r_ocsp_acutoff()
59 BIO *out, int indent) in i2r_ocsp_nocheck()
Dv3_prn.c69 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, in X509V3_EXT_val_prn()
105 int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, in X509V3_EXT_print()
158 int X509V3_extensions_print(BIO *bp, const char *title, in X509V3_extensions_print()
194 static int unknown_ext_print(BIO *out, X509_EXTENSION *ext, in unknown_ext_print()
221 BIO *bio_tmp; in X509V3_EXT_print_fp()
/external/webrtc/webrtc/base/
Dopenssladapter.cc75 static int socket_write(BIO* h, const char* buf, int num);
76 static int socket_read(BIO* h, char* buf, int size);
77 static int socket_puts(BIO* h, const char* str);
78 static long socket_ctrl(BIO* h, int cmd, long arg1, void* arg2);
79 static int socket_new(BIO* h);
80 static int socket_free(BIO* data);
98 static BIO* BIO_new_socket(rtc::AsyncSocket* socket) { in BIO_new_socket()
99 BIO* ret = BIO_new(BIO_s_socket2()); in BIO_new_socket()
107 static int socket_new(BIO* b) { in socket_new()
115 static int socket_free(BIO* b) { in socket_free()
[all …]
/external/boringssl/src/crypto/x509/
Dx_all.c153 X509 *d2i_X509_bio(BIO *bp, X509 **x509) in d2i_X509_bio()
158 int i2d_X509_bio(BIO *bp, X509 *x509) in i2d_X509_bio()
175 X509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) in d2i_X509_CRL_bio()
180 int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl) in i2d_X509_CRL_bio()
197 X509_REQ *d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) in d2i_X509_REQ_bio()
202 int i2d_X509_REQ_bio(BIO *bp, X509_REQ *req) in i2d_X509_REQ_bio()
211 BIO *bio = BIO_new_fp(fp, BIO_NOCLOSE); \
222 BIO *bio = BIO_new_fp(fp, BIO_NOCLOSE); \
242 type *name(BIO *bio, type **obj) { \ in IMPLEMENT_D2I_FP()
255 int name(BIO *bio, type *obj) { \
[all …]

123456