ssl stream隐藏peek_sni和cert store的处理流程。
This commit is contained in:
@@ -2,35 +2,22 @@
|
||||
#include <event2/event.h>
|
||||
#include <tfe_future.h>
|
||||
#include <cert.h>
|
||||
|
||||
#include <field_stat2.h>
|
||||
|
||||
|
||||
struct ssl_stream;
|
||||
|
||||
struct ssl_mgr;
|
||||
struct ssl_mgr* init_ssl_manager(const char* ini_profile, const char* section, void* logger);
|
||||
void destroy_ssl_manager(struct ssl_mgr* mgr);
|
||||
|
||||
struct ssl_chello
|
||||
{
|
||||
//client hello
|
||||
int version;
|
||||
char* sni;
|
||||
char* cipher_suites;
|
||||
};
|
||||
|
||||
struct ssl_chello* ssl_peek_result_release_chello(future_result_t* result);
|
||||
void ssl_chello_free(struct ssl_chello* client_hello);
|
||||
void ssl_async_peek_client_hello(struct future* future, evutil_socket_t fd, struct event_base *evbase);
|
||||
|
||||
struct ssl_mgr* ssl_manager_init(const char* ini_profile, const char* section, struct event_base *evbase, void* logger, screen_stat_handle_t* fs);
|
||||
void ssl_manager_destroy(struct ssl_mgr* mgr);
|
||||
|
||||
struct ssl_stream* ssl_upstream_create_result_release_stream(future_result_t* result);
|
||||
struct bufferevent* ssl_upstream_create_result_release_bev(future_result_t* result);
|
||||
void ssl_async_upstream_create(struct future* future, struct ssl_mgr* mgr, const struct ssl_chello* chello, evutil_socket_t fd, struct event_base *evbase);
|
||||
void ssl_async_upstream_create(struct future* f, struct ssl_mgr* mgr, evutil_socket_t fd_upstream, evutil_socket_t fd_downstream, struct event_base *evbase);
|
||||
|
||||
struct ssl_stream* ssl_downstream_create_result_release_stream(future_result_t* result);
|
||||
struct bufferevent* ssl_downstream_create_result_release_bev(future_result_t* result);
|
||||
void ssl_async_downstream_create(struct future* f, struct ssl_mgr* mgr, struct ssl_stream* upstream, evutil_socket_t fd_downstream, struct event_base *evbase);
|
||||
|
||||
|
||||
struct ssl_stream * ssl_downstream_create(struct ssl_mgr* mgr, struct ssl_chello* hello, struct cert* crt);
|
||||
void ssl_stream_free_and_close_fd(struct ssl_stream* stream, struct event_base *evbase, evutil_socket_t fd);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user