Close #48 增加从KNI读取KEYRING-ID的功能

This commit is contained in:
Lu Qiuwen
2018-10-19 19:50:27 +08:00
parent 8a0f3c8c3c
commit 213924e77e
7 changed files with 143 additions and 30 deletions

View File

@@ -98,6 +98,9 @@ struct tfe_stream_private
/* SUSPEND */
bool is_suspended;
enum tfe_conn_dir suspended_by;
/* KEYRING-ID */
unsigned keyring_id;
};
static inline void * __STREAM_LOGGER(struct tfe_stream_private * _stream)

View File

@@ -34,6 +34,9 @@ struct tfe_proxy_accept_para
bool is_set_session_type;
enum tfe_stream_proto session_type;
bool passthrough;
/* addition info */
unsigned int keyring_id;
};
struct tfe_proxy

View File

@@ -7,7 +7,8 @@ struct tfe_stream * tfe_stream_create(struct tfe_proxy * pxy, struct tfe_thread_
enum tfe_stream_option
{
TFE_STREAM_OPT_SESSION_TYPE,
TFE_STREAM_OPT_PASSTHROUGH
TFE_STREAM_OPT_PASSTHROUGH,
TFE_STREAM_OPT_KEYRING_ID
};
int tfe_stream_option_set(struct tfe_stream * stream, enum tfe_stream_option opt, const void * arg, size_t sz_arg);