b2fbb89b7aa579609c74ecb475182c9fb6e8af57
1 #include "openssl/bio.h"
2 #include "openssl/ssl.h"
3 #include "openssl/err.h"
5 void OpenSSL_SML_add_all_algorithms() {
6 OpenSSL_add_all_algorithms();
9 void OpenSSL_SML_load_error_strings() {
10 SSL_load_error_strings();
13 void OpenSSL_SML_load_BIO_strings() {
14 ERR_load_BIO_strings();
17 int OpenSSL_SML_get_error() {
18 return ERR_get_error();
21 const char *OpenSSL_SML_lib_error_string(int err
) {
22 return ERR_lib_error_string(err
);
25 const char *OpenSSL_SML_func_error_string(int err
) {
26 return ERR_func_error_string(err
);
29 const char *OpenSSL_SML_reason_error_string(int err
) {
30 return ERR_reason_error_string(err
);
33 int OpenSSL_SML_read(BIO
*b
, void *data
, int len
) {
34 return BIO_read(b
, data
, len
);
37 int OpenSSL_SML_write(BIO
*b
, const void *data
, int len
) {
38 return BIO_write(b
, data
, len
);
41 BIO
*OpenSSL_SML_new_connect(char *addr
) {
42 return BIO_new_connect(addr
);
45 BIO
*OpenSSL_SML_new_accept(char *addr
) {
46 return BIO_new_accept(addr
);
49 void OpenSSL_SML_free_all(BIO
*b
) {
53 int OpenSSL_SML_do_connect(BIO
*b
) {
54 return BIO_do_connect(b
);
57 int OpenSSL_SML_do_accept(BIO
*b
) {
58 return BIO_do_accept(b
);