Commit | Line | Data |
---|---|---|
925c75a7 CE |
1 | /* OpenSSL header files include system headers that ml-nlffigen can't |
2 | parse, include any needed typedefs or forward declarations here. | |
3 | */ | |
4 | typedef struct bio_st BIO; | |
5 | typedef struct ssl_st SSL; | |
6 | typedef struct ssl_ctx_st SSL_CTX; | |
a62a739c | 7 | typedef struct ssl_method_st SSL_METHOD; |
559e89e9 | 8 | |
3b267643 | 9 | void OpenSSL_SML_init(void); |
559e89e9 AC |
10 | void OpenSSL_SML_load_error_strings(void); |
11 | void OpenSSL_SML_load_BIO_strings(void); | |
07cc384c | 12 | |
559e89e9 | 13 | int OpenSSL_SML_get_error(void); |
64a44dc0 | 14 | int OpenSSL_SML_should_retry(BIO *b); |
559e89e9 AC |
15 | const char *OpenSSL_SML_lib_error_string(int err); |
16 | const char *OpenSSL_SML_func_error_string(int err); | |
17 | const char *OpenSSL_SML_reason_error_string(int err); | |
07cc384c AC |
18 | |
19 | int OpenSSL_SML_read(BIO *b, void *data, int len); | |
559e89e9 | 20 | int OpenSSL_SML_write(BIO *b, const void *data, int len); |
07cc384c | 21 | |
559e89e9 | 22 | BIO *OpenSSL_SML_new_connect(char *addr); |
559e89e9 | 23 | int OpenSSL_SML_do_connect(BIO *b); |
07cc384c | 24 | |
07cc384c AC |
25 | int OpenSSL_SML_do_accept(BIO *b); |
26 | ||
60534712 AC |
27 | int OpenSSL_SML_do_handshake(BIO *b); |
28 | ||
07cc384c AC |
29 | void OpenSSL_SML_free_all(BIO *b); |
30 | ||
3b267643 AC |
31 | SSL_METHOD *OpenSSL_SML_SSLv23_method(void); |
32 | ||
33 | SSL_CTX *OpenSSL_SML_CTX_new(SSL_METHOD *meth); | |
34 | void OpenSSL_SML_CTX_free(SSL_CTX *ctx); | |
35 | ||
36 | int OpenSSL_SML_load_verify_locations(SSL_CTX *ctx, const char *trust, const char *certs); | |
37 | ||
38 | BIO *OpenSSL_SML_new_ssl_connect(SSL_CTX *ctx); | |
39 | SSL *OpenSSL_SML_get_ssl(BIO *bio); | |
40 | int OpenSSL_SML_set_conn_hostname(BIO *bio, char *hostname); | |
41 | int OpenSSL_SML_set_accept_port(BIO *bio, char *port); | |
42 | ||
43 | int OpenSSL_SML_tcp_listen(int port, int qsize); | |
44 | int OpenSSL_SML_accept(int sock); | |
45 | BIO *OpenSSL_SML_new_socket(int sock); | |
46 | ||
47 | SSL *OpenSSL_SML_SSL_new(SSL_CTX *ctx); | |
48 | ||
49 | int OpenSSL_SML_SSL_shutdown(SSL *ssl); | |
50 | void OpenSSL_SML_shutdown(int sock); | |
51 | void OpenSSL_SML_SSL_set_bio(SSL *ssl, BIO *b1, BIO *b2); | |
52 | ||
53 | int OpenSSL_SML_use_PrivateKey_file(SSL_CTX *ctx, char *keyfile); | |
54 | ||
55 | int OpenSSL_SML_SSL_accept(SSL *ssl); | |
56 | ||
57 | int OpenSSL_SML_use_certificate_chain_file(SSL_CTX *ctx, char *keyfile); | |
58 | ||
59 | const char *OpenSSL_SML_get_peer_name(SSL *ssl); | |
60534712 AC |
60 | |
61 | BIO *OpenSSL_SML_new_ssl(SSL_CTX *ctx); | |
62 | BIO *OpenSSL_SML_new_accept(SSL_CTX *ctx, char *port); | |
63 | ||
64 | BIO *OpenSSL_SML_pop(BIO *b); | |
19f3c4e6 | 65 | BIO *OpenSSL_SML_next(BIO *b); |
36e42cb8 AC |
66 | |
67 | int OpenSSL_SML_puts(BIO *b, const char *buf); |