Skip to content
Snippets Groups Projects
Commit 08b5b161 authored by Aleksandr Lysikov's avatar Aleksandr Lysikov
Browse files

moved service_key from dap_stream_t to dap_stream_session

parent 9729b334
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ struct dap_stream_session {
uint8_t enc_type;
char *service_key;// auth string
char active_channels[16];// channels for open
stream_session_connection_type_t conn_type;
......
......@@ -170,7 +170,7 @@ void stream_headers_read(dap_http_client_t * cl_ht, void * arg)
sid->session=ss;
dap_http_header_t *header = dap_http_header_find(cl_ht->in_headers, "Service-Key");
if (header)
sid->service_key = strdup(header->value);
ss->service_key = strdup(header->value);
size_t count_channels = strlen(ss->active_channels);
for(size_t i = 0; i < count_channels; i++) {
dap_stream_ch_new(sid, ss->active_channels[i]);
......
......@@ -83,8 +83,6 @@ typedef struct dap_stream {
dap_stream_ch_t * channel[255]; // TODO reduce channels to 16 to economy memory
size_t channel_count;
char *service_key;
size_t frame_sent; // Frame counter
size_t seq_id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment