Simple OpenSSL stuff in SML/NJ
[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_write(BIO *b, const void *data, int len) {
34 return BIO_write(b, data, len);
35 }
36
37 BIO *OpenSSL_SML_new_connect(char *addr) {
38 return BIO_new_connect(addr);
39 }
40
41 void OpenSSL_SML_free_all(BIO *b) {
42 BIO_free_all(b);
43 }
44
45 int OpenSSL_SML_do_connect(BIO *b) {
46 return BIO_do_connect(b);
47 }