Skip to content
Snippets Groups Projects
Commit e72e2de1 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov Committed by Kurotych Anatolii
Browse files

[*] Protocol version rised (#33)

parent f64508c2
No related branches found
No related tags found
No related merge requests found
......@@ -13,3 +13,7 @@ endif()
add_subdirectory(core)
add_subdirectory(crypto)
if(UNIX AND NOT APPLE)
set(LINUX TRUE)
endif()
......@@ -35,7 +35,7 @@
#define DAP_DELETE(a) free(a)
#define DAP_DUP(a) (__typeof(a) ret = memcpy(ret,a,sizeof(*a)) )
#define DAP_PROTOCOL_VERSION 21
#define DAP_PROTOCOL_VERSION 22
#if defined(__GNUC__) ||defined (__clang__)
#define DAP_ALIGN_PACKED __attribute__((aligned(1),packed))
......
......@@ -36,11 +36,15 @@ void dap_enc_deinit(void);
size_t dap_enc_code_out_size(dap_enc_key_t* a_key, const size_t a_buf_in_size, dap_enc_data_type_t type);
size_t dap_enc_decode_out_size(dap_enc_key_t* a_key, const size_t a_buf_in_size, dap_enc_data_type_t type);
size_t dap_enc_code(struct dap_enc_key * a_key, const void * a_buf_in, const size_t a_buf_in_size, void * a_buf_out, const size_t a_buf_out_size_max,
dap_enc_data_type_t a_data_type_out);
size_t dap_enc_decode(struct dap_enc_key * a_key, const void * a_buf_in, const size_t a_buf_in_size, void * a_buf_out, const size_t a_buf_out_size_max,
dap_enc_data_type_t a_data_type_in);
size_t dap_enc_code(struct dap_enc_key * a_key, // Key
const void * a_buf_in, const size_t a_buf_in_size, // Input
void * a_buf_out, const size_t a_buf_out_size_max, // Output
dap_enc_data_type_t a_data_type_out); // Output data type
size_t dap_enc_decode(struct dap_enc_key * a_key, // Key
const void * a_buf_in, const size_t a_buf_in_size, // Input
void * a_buf_out, const size_t a_buf_out_size_max, // Output
dap_enc_data_type_t a_data_type_in); // Output data type
#ifdef __cplusplus
}
......
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