Basic client/server thing going on with unencrypted OpenSSL
[hcoop/domtool2.git] / openssl / openssl_sml.c
1 #include "openssl/bio.h"
2 #include "openssl/ssl.h"
3 #include "openssl/err.h"
4
5 void OpenSSL_SML_add_all_algorithms() {
6 OpenSSL_add_all_algorithms();
7 }
8
9 void OpenSSL_SML_load_error_strings() {
10 SSL_load_error_strings();
11 }
12
13 void OpenSSL_SML_load_BIO_strings() {
14 ERR_load_BIO_strings();
15 }
16
17 int OpenSSL_SML_get_error() {
18 return ERR_get_error();
19 }
20
21 const char *OpenSSL_SML_lib_error_string(int err) {
22 return ERR_lib_error_string(err);
23 }
24
25 const char *OpenSSL_SML_func_error_string(int err) {
26 return ERR_func_error_string(err);
27 }
28
29 const char *OpenSSL_SML_reason_error_string(int err) {
30 return ERR_reason_error_string(err);
31 }
32
33 int OpenSSL_SML_read(BIO *b, void *data, int len) {
34 return BIO_read(b, data, len);
35 }
36
37 int OpenSSL_SML_write(BIO *b, const void *data, int len) {
38 return BIO_write(b, data, len);
39 }
40
41 BIO *OpenSSL_SML_new_connect(char *addr) {
42 return BIO_new_connect(addr);
43 }
44
45 BIO *OpenSSL_SML_new_accept(char *addr) {
46 return BIO_new_accept(addr);
47 }
48
49 void OpenSSL_SML_free_all(BIO *b) {
50 BIO_free_all(b);
51 }
52
53 int OpenSSL_SML_do_connect(BIO *b) {
54 return BIO_do_connect(b);
55 }
56
57 int OpenSSL_SML_do_accept(BIO *b) {
58 return BIO_do_accept(b);
59 }