Skip to content
Snippets Groups Projects
Commit ce69080b authored by daniil.frolov's avatar daniil.frolov
Browse files

add encrypt_id setting to zero

parent bf48d381
No related branches found
No related tags found
1 merge request!329fix_illegalUTF8_symbol_encrypt_id
Pipeline #42416 passed with stage
in 11 minutes and 47 seconds
...@@ -175,7 +175,7 @@ void enc_http_proc(struct dap_http_simple *cl_st, void * arg) ...@@ -175,7 +175,7 @@ void enc_http_proc(struct dap_http_simple *cl_st, void * arg)
} }
char *encrypt_msg = DAP_NEW_Z_SIZE(char, DAP_ENC_BASE64_ENCODE_SIZE(l_pkey_exchange_key->pub_key_data_size) + 1), char *encrypt_msg = DAP_NEW_Z_SIZE(char, DAP_ENC_BASE64_ENCODE_SIZE(l_pkey_exchange_key->pub_key_data_size) + 1),
*encrypt_id = DAP_NEW_STACK_SIZE(char, DAP_ENC_BASE64_ENCODE_SIZE(DAP_ENC_KS_KEY_ID_SIZE) + 1); encrypt_id[DAP_ENC_BASE64_ENCODE_SIZE(DAP_ENC_KS_KEY_ID_SIZE) + 1] = { '\0' };
dap_enc_base64_encode(l_pkey_exchange_key->pub_key_data, l_pkey_exchange_key->pub_key_data_size, encrypt_msg, DAP_ENC_DATA_TYPE_B64); dap_enc_base64_encode(l_pkey_exchange_key->pub_key_data, l_pkey_exchange_key->pub_key_data_size, encrypt_msg, DAP_ENC_DATA_TYPE_B64);
l_enc_key_ks->key = dap_enc_key_new_generate(l_enc_block_type, l_enc_key_ks->key = dap_enc_key_new_generate(l_enc_block_type,
......
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