Close #48 增加从KNI读取KEYRING-ID的功能
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user