Server executing client's requested configuration with the right permissions
[hcoop/domtool2.git] / openssl / openssl_sml.h
CommitLineData
559e89e9
AC
1#include "openssl/bio.h"
2#include "openssl/ssl.h"
3#include "openssl/err.h"
4
3b267643 5void OpenSSL_SML_init(void);
559e89e9
AC
6void OpenSSL_SML_load_error_strings(void);
7void OpenSSL_SML_load_BIO_strings(void);
07cc384c 8
559e89e9
AC
9int OpenSSL_SML_get_error(void);
10const char *OpenSSL_SML_lib_error_string(int err);
11const char *OpenSSL_SML_func_error_string(int err);
12const char *OpenSSL_SML_reason_error_string(int err);
07cc384c
AC
13
14int OpenSSL_SML_read(BIO *b, void *data, int len);
559e89e9 15int OpenSSL_SML_write(BIO *b, const void *data, int len);
07cc384c 16
559e89e9 17BIO *OpenSSL_SML_new_connect(char *addr);
559e89e9 18int OpenSSL_SML_do_connect(BIO *b);
07cc384c 19
07cc384c
AC
20int OpenSSL_SML_do_accept(BIO *b);
21
60534712
AC
22int OpenSSL_SML_do_handshake(BIO *b);
23
07cc384c
AC
24void OpenSSL_SML_free_all(BIO *b);
25
3b267643
AC
26SSL_METHOD *OpenSSL_SML_SSLv23_method(void);
27
28SSL_CTX *OpenSSL_SML_CTX_new(SSL_METHOD *meth);
29void OpenSSL_SML_CTX_free(SSL_CTX *ctx);
30
31int OpenSSL_SML_load_verify_locations(SSL_CTX *ctx, const char *trust, const char *certs);
32
33BIO *OpenSSL_SML_new_ssl_connect(SSL_CTX *ctx);
34SSL *OpenSSL_SML_get_ssl(BIO *bio);
35int OpenSSL_SML_set_conn_hostname(BIO *bio, char *hostname);
36int OpenSSL_SML_set_accept_port(BIO *bio, char *port);
37
38int OpenSSL_SML_tcp_listen(int port, int qsize);
39int OpenSSL_SML_accept(int sock);
40BIO *OpenSSL_SML_new_socket(int sock);
41
42SSL *OpenSSL_SML_SSL_new(SSL_CTX *ctx);
43
44int OpenSSL_SML_SSL_shutdown(SSL *ssl);
45void OpenSSL_SML_shutdown(int sock);
46void OpenSSL_SML_SSL_set_bio(SSL *ssl, BIO *b1, BIO *b2);
47
48int OpenSSL_SML_use_PrivateKey_file(SSL_CTX *ctx, char *keyfile);
49
50int OpenSSL_SML_SSL_accept(SSL *ssl);
51
52int OpenSSL_SML_use_certificate_chain_file(SSL_CTX *ctx, char *keyfile);
53
54const char *OpenSSL_SML_get_peer_name(SSL *ssl);
60534712
AC
55
56BIO *OpenSSL_SML_new_ssl(SSL_CTX *ctx);
57BIO *OpenSSL_SML_new_accept(SSL_CTX *ctx, char *port);
58
59BIO *OpenSSL_SML_pop(BIO *b);
19f3c4e6 60BIO *OpenSSL_SML_next(BIO *b);