Simple OpenSSL stuff in SML/NJ
[hcoop/domtool2.git] / openssl / openssl_sml.c
CommitLineData
559e89e9
AC
1#include "openssl/bio.h"
2#include "openssl/ssl.h"
3#include "openssl/err.h"
4
5void OpenSSL_SML_add_all_algorithms() {
6 OpenSSL_add_all_algorithms();
7}
8
9void OpenSSL_SML_load_error_strings() {
10 SSL_load_error_strings();
11}
12
13void OpenSSL_SML_load_BIO_strings() {
14 ERR_load_BIO_strings();
15}
16
17int OpenSSL_SML_get_error() {
18 return ERR_get_error();
19}
20
21const char *OpenSSL_SML_lib_error_string(int err) {
22 return ERR_lib_error_string(err);
23}
24
25const char *OpenSSL_SML_func_error_string(int err) {
26 return ERR_func_error_string(err);
27}
28
29const char *OpenSSL_SML_reason_error_string(int err) {
30 return ERR_reason_error_string(err);
31}
32
33int OpenSSL_SML_write(BIO *b, const void *data, int len) {
34 return BIO_write(b, data, len);
35}
36
37BIO *OpenSSL_SML_new_connect(char *addr) {
38 return BIO_new_connect(addr);
39}
40
41void OpenSSL_SML_free_all(BIO *b) {
42 BIO_free_all(b);
43}
44
45int OpenSSL_SML_do_connect(BIO *b) {
46 return BIO_do_connect(b);
47}