Lines Matching defs:bio
39 #include <openssl/bio.h>
84 static int socket_write(BIO* h, const char* buf, int num);
85 static int socket_read(BIO* h, char* buf, int size);
86 static int socket_puts(BIO* h, const char* str);
87 static long socket_ctrl(BIO* h, int cmd, long arg1, void* arg2);
88 static int socket_new(BIO* h);
89 static int socket_free(BIO* data);
106 BIO* BIO_new_socket(talk_base::AsyncSocket* socket) {
107 BIO* ret = BIO_new(BIO_s_socket2());
115 static int socket_new(BIO* b) {
123 static int socket_free(BIO* b) {
129 static int socket_read(BIO* b, char* out, int outl) {
145 static int socket_write(BIO* b, const char* in, int inl) {
159 static int socket_puts(BIO* b, const char* str) {
163 static long socket_ctrl(BIO* b, int cmd, long num, void* ptr) {
319 BIO* bio = NULL;
330 bio = BIO_new_socket(static_cast<AsyncSocketAdapter*>(socket_));
331 if (!bio) {
344 SSL_set_bio(ssl_, bio, bio);
348 // the SSL object owns the bio now
349 bio = NULL;
360 if (bio)
361 BIO_free(bio);
669 BIO* mem = BIO_new(BIO_s_mem());