Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap
Commits
e72e2de1
Commit
e72e2de1
authored
6 years ago
by
Dmitriy A. Gerasimov
Committed by
Kurotych Anatolii
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[*] Protocol version rised (#33)
parent
f64508c2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+4
-0
4 additions, 0 deletions
CMakeLists.txt
core/dap_common.h
+1
-1
1 addition, 1 deletion
core/dap_common.h
crypto/dap_enc.h
+9
-5
9 additions, 5 deletions
crypto/dap_enc.h
with
14 additions
and
6 deletions
CMakeLists.txt
+
4
−
0
View file @
e72e2de1
...
...
@@ -13,3 +13,7 @@ endif()
add_subdirectory
(
core
)
add_subdirectory
(
crypto
)
if
(
UNIX AND NOT APPLE
)
set
(
LINUX TRUE
)
endif
()
This diff is collapsed.
Click to expand it.
core/dap_common.h
+
1
−
1
View file @
e72e2de1
...
...
@@ -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 2
1
#define DAP_PROTOCOL_VERSION 2
2
#if defined(__GNUC__) ||defined (__clang__)
#define DAP_ALIGN_PACKED __attribute__((aligned(1),packed))
...
...
This diff is collapsed.
Click to expand it.
crypto/dap_enc.h
+
9
−
5
View file @
e72e2de1
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment