Home
last modified time | relevance | path

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

12345678910>>...14

/external/chromium_org/third_party/boringssl/src/include/openssl/
Dbio.h78 DEFINE_STACK_OF(BIO);
82 OPENSSL_EXPORT BIO *BIO_new(const BIO_METHOD *type);
91 OPENSSL_EXPORT int BIO_free(BIO *bio);
97 OPENSSL_EXPORT void BIO_vfree(BIO *bio);
104 OPENSSL_EXPORT int BIO_read(BIO *bio, void *data, int len);
114 OPENSSL_EXPORT int BIO_gets(BIO *bio, char *buf, int size);
118 OPENSSL_EXPORT int BIO_write(BIO *bio, const void *data, int len);
122 OPENSSL_EXPORT int BIO_puts(BIO *bio, const char *buf);
126 OPENSSL_EXPORT int BIO_flush(BIO *bio);
136 OPENSSL_EXPORT long BIO_ctrl(BIO *bio, int cmd, long larg, void *parg);
[all …]
/external/chromium_org/third_party/boringssl/src/crypto/bio/
Dbio.c70 static int bio_set(BIO *bio, const BIO_METHOD *method) { in bio_set()
74 memset(bio, 0, sizeof(BIO)); in bio_set()
94 BIO *BIO_new(const BIO_METHOD *method) { in BIO_new()
95 BIO *ret = OPENSSL_malloc(sizeof(BIO)); in BIO_new()
97 OPENSSL_PUT_ERROR(BIO, BIO_new, ERR_R_MALLOC_FAILURE); in BIO_new()
109 int BIO_free(BIO *bio) { in BIO_free()
110 BIO *next_bio; in BIO_free()
138 void BIO_vfree(BIO *bio) { in BIO_vfree()
142 void BIO_free_all(BIO *bio) { in BIO_free_all()
146 static int bio_io(BIO *bio, void *buf, int len, size_t method_offset, in bio_io()
[all …]
Dconnect.c102 int (*info_callback)(const BIO *bio, int state, int ret);
119 static int conn_state(BIO *bio, BIO_CONNECT *c) { in conn_state()
122 int (*cb)(const BIO *, int, int) = NULL; in conn_state()
133 OPENSSL_PUT_ERROR(BIO, conn_state, BIO_R_NO_HOSTNAME_SPECIFIED); in conn_state()
160 OPENSSL_PUT_ERROR(BIO, conn_state, BIO_R_NO_PORT_SPECIFIED); in conn_state()
168 OPENSSL_PUT_ERROR(BIO, conn_state, BIO_R_UNABLE_TO_CREATE_SOCKET); in conn_state()
178 OPENSSL_PUT_ERROR(BIO, conn_state, BIO_R_ERROR_SETTING_NBIO); in conn_state()
190 OPENSSL_PUT_ERROR(BIO, conn_state, BIO_R_KEEPALIVE); in conn_state()
204 OPENSSL_PUT_ERROR(BIO, conn_state, BIO_R_CONNECT_ERROR); in conn_state()
225 OPENSSL_PUT_ERROR(BIO, conn_state, BIO_R_NBIO_CONNECT_ERROR); in conn_state()
[all …]
Dfile.c125 BIO *BIO_new_file(const char *filename, const char *mode) { in BIO_new_file()
126 BIO *ret; in BIO_new_file()
135 OPENSSL_PUT_ERROR(BIO, BIO_new_file, BIO_R_NO_SUCH_FILE); in BIO_new_file()
137 OPENSSL_PUT_ERROR(BIO, BIO_new_file, BIO_R_SYS_LIB); in BIO_new_file()
152 BIO *BIO_new_fp(FILE *stream, int close_flag) { in BIO_new_fp()
153 BIO *ret = BIO_new(BIO_s_file()); in BIO_new_fp()
163 static int file_new(BIO *bio) { return 1; } in file_new()
165 static int file_free(BIO *bio) { in file_free()
183 static int file_read(BIO *b, char *out, int outl) { in file_read()
193 OPENSSL_PUT_ERROR(BIO, file_read, ERR_R_SYS_LIB); in file_read()
[all …]
/external/openssl/include/openssl/
Dbio.h231 typedef struct bio_st BIO; typedef
233 void BIO_set_flags(BIO *b, int flags);
234 int BIO_test_flags(const BIO *b, int flags);
235 void BIO_clear_flags(BIO *b, int flags);
288 long (*BIO_get_callback(const BIO *b)) (struct bio_st *,int,const char *,int, long,long);
289 void BIO_set_callback(BIO *b,
291 char *BIO_get_callback_arg(const BIO *b);
292 void BIO_set_callback_arg(BIO *b, char *arg);
294 const char * BIO_method_name(const BIO *b);
295 int BIO_method_type(const BIO *b);
[all …]
Dcms.h118 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);
119 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);
130 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);
131 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);
133 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);
134 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags);
135 int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags);
136 CMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont);
137 int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags);
139 int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags);
[all …]
/external/openssl/crypto/bio/
Dbio.h231 typedef struct bio_st BIO; typedef
233 void BIO_set_flags(BIO *b, int flags);
234 int BIO_test_flags(const BIO *b, int flags);
235 void BIO_clear_flags(BIO *b, int flags);
288 long (*BIO_get_callback(const BIO *b)) (struct bio_st *,int,const char *,int, long,long);
289 void BIO_set_callback(BIO *b,
291 char *BIO_get_callback_arg(const BIO *b);
292 void BIO_set_callback_arg(BIO *b, char *arg);
294 const char * BIO_method_name(const BIO *b);
295 int BIO_method_type(const BIO *b);
[all …]
Dbio_lib.c66 BIO *BIO_new(BIO_METHOD *method) in BIO_new()
68 BIO *ret=NULL; in BIO_new()
70 ret=(BIO *)OPENSSL_malloc(sizeof(BIO)); in BIO_new()
84 int BIO_set(BIO *bio, BIO_METHOD *method) in BIO_set()
111 int BIO_free(BIO *a) in BIO_free()
141 void BIO_vfree(BIO *a) in BIO_vfree()
144 void BIO_clear_flags(BIO *b, int flags) in BIO_clear_flags()
149 int BIO_test_flags(const BIO *b, int flags) in BIO_test_flags()
154 void BIO_set_flags(BIO *b, int flags) in BIO_set_flags()
159 long (*BIO_get_callback(const BIO *b))(struct bio_st *,int,const char *,int, long,long) in BIO_get_callback()
[all …]
Dbss_null.c64 static int null_write(BIO *h, const char *buf, int num);
65 static int null_read(BIO *h, char *buf, int size);
66 static int null_puts(BIO *h, const char *str);
67 static int null_gets(BIO *h, char *str, int size);
68 static long null_ctrl(BIO *h, int cmd, long arg1, void *arg2);
69 static int null_new(BIO *h);
70 static int null_free(BIO *data);
90 static int null_new(BIO *bi) in null_new()
98 static int null_free(BIO *a) in null_free()
104 static int null_read(BIO *b, char *out, int outl) in null_read()
[all …]
Dbf_null.c67 static int nullf_write(BIO *h, const char *buf, int num);
68 static int nullf_read(BIO *h, char *buf, int size);
69 static int nullf_puts(BIO *h, const char *str);
70 static int nullf_gets(BIO *h, char *str, int size);
71 static long nullf_ctrl(BIO *h, int cmd, long arg1, void *arg2);
72 static int nullf_new(BIO *h);
73 static int nullf_free(BIO *data);
74 static long nullf_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
94 static int nullf_new(BIO *bi) in nullf_new()
102 static int nullf_free(BIO *a) in nullf_free()
[all …]
Dbf_nbio.c68 static int nbiof_write(BIO *h,const char *buf,int num);
69 static int nbiof_read(BIO *h,char *buf,int size);
70 static int nbiof_puts(BIO *h,const char *str);
71 static int nbiof_gets(BIO *h,char *str,int size);
72 static long nbiof_ctrl(BIO *h,int cmd,long arg1,void *arg2);
73 static int nbiof_new(BIO *h);
74 static int nbiof_free(BIO *data);
75 static long nbiof_callback_ctrl(BIO *h,int cmd,bio_info_cb *fp);
102 static int nbiof_new(BIO *bi) in nbiof_new()
115 static int nbiof_free(BIO *a) in nbiof_free()
[all …]
Dbss_log.c125 static int MS_CALLBACK slg_write(BIO *h, const char *buf, int num);
126 static int MS_CALLBACK slg_puts(BIO *h, const char *str);
127 static long MS_CALLBACK slg_ctrl(BIO *h, int cmd, long arg1, void *arg2);
128 static int MS_CALLBACK slg_new(BIO *h);
129 static int MS_CALLBACK slg_free(BIO *data);
130 static void xopenlog(BIO* bp, char* name, int level);
131 static void xsyslog(BIO* bp, int priority, const char* string);
132 static void xcloselog(BIO* bp);
152 static int MS_CALLBACK slg_new(BIO *bi) in slg_new()
161 static int MS_CALLBACK slg_free(BIO *a) in slg_free()
[all …]
Dbss_fd.c84 static int fd_write(BIO *h, const char *buf, int num);
85 static int fd_read(BIO *h, char *buf, int size);
86 static int fd_puts(BIO *h, const char *str);
87 static int fd_gets(BIO *h, char *buf, int size);
88 static long fd_ctrl(BIO *h, int cmd, long arg1, void *arg2);
89 static int fd_new(BIO *h);
90 static int fd_free(BIO *data);
111 BIO *BIO_new_fd(int fd,int close_flag) in BIO_new_fd()
113 BIO *ret; in BIO_new_fd()
120 static int fd_new(BIO *bi) in fd_new()
[all …]
Dbss_sock.c74 static int sock_write(BIO *h, const char *buf, int num);
75 static int sock_read(BIO *h, char *buf, int size);
76 static int sock_puts(BIO *h, const char *str);
77 static long sock_ctrl(BIO *h, int cmd, long arg1, void *arg2);
78 static int sock_new(BIO *h);
79 static int sock_free(BIO *data);
101 BIO *BIO_new_socket(int fd, int close_flag) in BIO_new_socket()
103 BIO *ret; in BIO_new_socket()
111 static int sock_new(BIO *bi) in sock_new()
120 static int sock_free(BIO *a) in sock_free()
[all …]
Dbss_bio.c96 static int bio_new(BIO *bio);
97 static int bio_free(BIO *bio);
98 static int bio_read(BIO *bio, char *buf, int size);
99 static int bio_write(BIO *bio, const char *buf, int num);
100 static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr);
101 static int bio_puts(BIO *bio, const char *str);
103 static int bio_make_pair(BIO *bio1, BIO *bio2);
104 static void bio_destroy_pair(BIO *bio);
127 BIO *peer; /* NULL if buf == NULL.
145 static int bio_new(BIO *bio) in bio_new()
[all …]
Dbss_acpt.c92 BIO *bio_chain;
95 static int acpt_write(BIO *h, const char *buf, int num);
96 static int acpt_read(BIO *h, char *buf, int size);
97 static int acpt_puts(BIO *h, const char *str);
98 static long acpt_ctrl(BIO *h, int cmd, long arg1, void *arg2);
99 static int acpt_new(BIO *h);
100 static int acpt_free(BIO *data);
101 static int acpt_state(BIO *b, BIO_ACCEPT *c);
102 static void acpt_close_socket(BIO *data);
129 static int acpt_new(BIO *bi) in acpt_new()
[all …]
Dbss_conn.c98 int (*info_callback)(const BIO *bio,int state,int ret);
101 static int conn_write(BIO *h, const char *buf, int num);
102 static int conn_read(BIO *h, char *buf, int size);
103 static int conn_puts(BIO *h, const char *str);
104 static long conn_ctrl(BIO *h, int cmd, long arg1, void *arg2);
105 static int conn_new(BIO *h);
106 static int conn_free(BIO *data);
107 static long conn_callback_ctrl(BIO *h, int cmd, bio_info_cb *);
109 static int conn_state(BIO *b, BIO_CONNECT *c);
110 static void conn_close_socket(BIO *data);
[all …]
/external/openssl/apps/
Dapps.h130 int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn);
131 int app_RAND_write_file(const char *file, BIO *bio_e);
146 BIO *bio_err=NULL;
149 extern BIO *bio_err;
157 extern BIO *bio_err;
239 int dump_cert_text(BIO *out, X509 *x);
240 void print_name(BIO *out, const char *title, X509_NAME *nm, unsigned long lflags);
246 int app_passwd(BIO *err, char *arg1, char *arg2, char **pass1, char **pass2);
247 int add_oid_section(BIO *err, CONF *conf);
248 X509 *load_cert(BIO *err, const char *file, int format,
[all …]
/external/openssl/crypto/cms/
Dcms_io.c80 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio()
85 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio()
92 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in IMPLEMENT_PEM_rw_const()
100 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in i2d_CMS_bio_stream()
106 int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in PEM_write_bio_CMS_stream()
113 int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags) in SMIME_write_CMS()
128 CMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont) in SMIME_read_CMS()
Dcms.h118 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);
119 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);
130 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);
131 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);
133 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);
134 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags);
135 int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags);
136 CMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont);
137 int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags);
139 int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags);
[all …]
Dcms_smime.c62 static int cms_copy_content(BIO *out, BIO *in, unsigned int flags) in cms_copy_content()
66 BIO *tmpout = NULL; in cms_copy_content()
133 static void do_free_upto(BIO *f, BIO *upto) in do_free_upto()
137 BIO *tbio; in do_free_upto()
150 int CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags) in CMS_data()
152 BIO *cont; in CMS_data()
167 CMS_ContentInfo *CMS_data_create(BIO *in, unsigned int flags) in CMS_data_create()
182 int CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out, in CMS_digest_verify()
185 BIO *cont; in CMS_digest_verify()
206 CMS_ContentInfo *CMS_digest_create(BIO *in, const EVP_MD *md, in CMS_digest_create()
[all …]
/external/openssl/crypto/asn1/
Dbio_asn1.c113 static int asn1_bio_write(BIO *h, const char *buf,int num);
114 static int asn1_bio_read(BIO *h, char *buf, int size);
115 static int asn1_bio_puts(BIO *h, const char *str);
116 static int asn1_bio_gets(BIO *h, char *str, int size);
117 static long asn1_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2);
118 static int asn1_bio_new(BIO *h);
119 static int asn1_bio_free(BIO *data);
120 static long asn1_bio_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
123 static int asn1_bio_flush_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx,
125 static int asn1_bio_setup_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx,
[all …]
/external/chromium_org/third_party/boringssl/src/crypto/asn1/
Dbio_asn1.c110 static int asn1_bio_write(BIO *h, const char *buf,int num);
111 static int asn1_bio_read(BIO *h, char *buf, int size);
112 static int asn1_bio_puts(BIO *h, const char *str);
113 static int asn1_bio_gets(BIO *h, char *str, int size);
114 static long asn1_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2);
115 static int asn1_bio_new(BIO *h);
116 static int asn1_bio_free(BIO *data);
117 static long asn1_bio_callback_ctrl(BIO *h, int cmd, bio_info_cb fp);
120 static int asn1_bio_flush_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx,
122 static int asn1_bio_setup_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx,
[all …]
/external/openssl/crypto/evp/
Dbio_md.c68 static int md_write(BIO *h, char const *buf, int num);
69 static int md_read(BIO *h, char *buf, int size);
71 static int md_gets(BIO *h, char *str, int size);
72 static long md_ctrl(BIO *h, int cmd, long arg1, void *arg2);
73 static int md_new(BIO *h);
74 static int md_free(BIO *data);
75 static long md_callback_ctrl(BIO *h,int cmd,bio_info_cb *fp);
95 static int md_new(BIO *bi) in md_new()
108 static int md_free(BIO *a) in md_free()
118 static int md_read(BIO *b, char *out, int outl) in md_read()
[all …]
/external/openssl/crypto/pkcs7/
Dpk7_mime.c64 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) in i2d_PKCS7_bio_stream()
70 int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) in PEM_write_bio_PKCS7_stream()
77 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags) in SMIME_write_PKCS7()
94 PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont) in SMIME_read_PKCS7()

12345678910>>...14