| 1 | #include <openssl/ossl_typ.h> |
| 2 | |
| 3 | /* SSL_METHOD is defined in <openssl/ssl.h>, which #includes system |
| 4 | headers that ml-nlffigen can't parse. */ |
| 5 | |
| 6 | typedef struct ssl_method_st SSL_METHOD; |
| 7 | |
| 8 | void OpenSSL_SML_init(void); |
| 9 | void OpenSSL_SML_load_error_strings(void); |
| 10 | void OpenSSL_SML_load_BIO_strings(void); |
| 11 | |
| 12 | int OpenSSL_SML_get_error(void); |
| 13 | int OpenSSL_SML_should_retry(BIO *b); |
| 14 | const char *OpenSSL_SML_lib_error_string(int err); |
| 15 | const char *OpenSSL_SML_func_error_string(int err); |
| 16 | const char *OpenSSL_SML_reason_error_string(int err); |
| 17 | |
| 18 | int OpenSSL_SML_read(BIO *b, void *data, int len); |
| 19 | int OpenSSL_SML_write(BIO *b, const void *data, int len); |
| 20 | |
| 21 | BIO *OpenSSL_SML_new_connect(char *addr); |
| 22 | int OpenSSL_SML_do_connect(BIO *b); |
| 23 | |
| 24 | int OpenSSL_SML_do_accept(BIO *b); |
| 25 | |
| 26 | int OpenSSL_SML_do_handshake(BIO *b); |
| 27 | |
| 28 | void OpenSSL_SML_free_all(BIO *b); |
| 29 | |
| 30 | SSL_METHOD *OpenSSL_SML_SSLv23_method(void); |
| 31 | |
| 32 | SSL_CTX *OpenSSL_SML_CTX_new(SSL_METHOD *meth); |
| 33 | void OpenSSL_SML_CTX_free(SSL_CTX *ctx); |
| 34 | |
| 35 | int OpenSSL_SML_load_verify_locations(SSL_CTX *ctx, const char *trust, const char *certs); |
| 36 | |
| 37 | BIO *OpenSSL_SML_new_ssl_connect(SSL_CTX *ctx); |
| 38 | SSL *OpenSSL_SML_get_ssl(BIO *bio); |
| 39 | int OpenSSL_SML_set_conn_hostname(BIO *bio, char *hostname); |
| 40 | int OpenSSL_SML_set_accept_port(BIO *bio, char *port); |
| 41 | |
| 42 | int OpenSSL_SML_tcp_listen(int port, int qsize); |
| 43 | int OpenSSL_SML_accept(int sock); |
| 44 | BIO *OpenSSL_SML_new_socket(int sock); |
| 45 | |
| 46 | SSL *OpenSSL_SML_SSL_new(SSL_CTX *ctx); |
| 47 | |
| 48 | int OpenSSL_SML_SSL_shutdown(SSL *ssl); |
| 49 | void OpenSSL_SML_shutdown(int sock); |
| 50 | void OpenSSL_SML_SSL_set_bio(SSL *ssl, BIO *b1, BIO *b2); |
| 51 | |
| 52 | int OpenSSL_SML_use_PrivateKey_file(SSL_CTX *ctx, char *keyfile); |
| 53 | |
| 54 | int OpenSSL_SML_SSL_accept(SSL *ssl); |
| 55 | |
| 56 | int OpenSSL_SML_use_certificate_chain_file(SSL_CTX *ctx, char *keyfile); |
| 57 | |
| 58 | const char *OpenSSL_SML_get_peer_name(SSL *ssl); |
| 59 | |
| 60 | BIO *OpenSSL_SML_new_ssl(SSL_CTX *ctx); |
| 61 | BIO *OpenSSL_SML_new_accept(SSL_CTX *ctx, char *port); |
| 62 | |
| 63 | BIO *OpenSSL_SML_pop(BIO *b); |
| 64 | BIO *OpenSSL_SML_next(BIO *b); |
| 65 | |
| 66 | int OpenSSL_SML_puts(BIO *b, const char *buf); |