Home | History | Annotate | Download | only in base

Lines Matching defs:bio

36 #include <openssl/bio.h>
79 static int stream_write(BIO* h, const char* buf, int num);
80 static int stream_read(BIO* h, char* buf, int size);
81 static int stream_puts(BIO* h, const char* str);
82 static long stream_ctrl(BIO* h, int cmd, long arg1, void* arg2);
83 static int stream_new(BIO* h);
84 static int stream_free(BIO* data);
101 static BIO* BIO_new_stream(StreamInterface* stream) {
102 BIO* ret = BIO_new(BIO_s_stream());
109 // bio methods return 1 (or at least non-zero) on success and 0 on failure.
111 static int stream_new(BIO* b) {
119 static int stream_free(BIO* b) {
125 static int stream_read(BIO* b, char* out, int outl) {
143 static int stream_write(BIO* b, const char* in, int inl) {
159 static int stream_puts(BIO* b, const char* str) {
163 static long stream_ctrl(BIO* b, int cmd, long num, void* ptr) {
610 BIO* bio = NULL;
618 bio = BIO_new_stream(static_cast<StreamInterface*>(stream()));
619 if (!bio)
624 BIO_free(bio);
630 SSL_set_bio(ssl_, bio, bio); // the SSL object owns the bio now.