Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dap-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
8
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
Show more breadcrumbs
dap
dap-sdk
Commits
fa15bd3c
Commit
fa15bd3c
authored
1 month ago
by
Roman Khlopkov
🔜
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix-15787_d' into 'develop'
Hotfix 15787 d See merge request
!507
parents
017b93b0
f87b95cd
Loading
Loading
1 merge request
!507
Hotfix 15787 d
Pipeline
#51409
passed with stage
in 40 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crypto/src/dap_sign.c
+5
-5
5 additions, 5 deletions
crypto/src/dap_sign.c
with
5 additions
and
5 deletions
crypto/src/dap_sign.c
+
5
−
5
View file @
fa15bd3c
...
...
@@ -621,21 +621,21 @@ void dap_sign_get_information(dap_sign_t* a_sign, dap_string_t *a_str_out, const
*/
void
dap_sign_get_information_json
(
json_object
*
a_json_arr_reply
,
dap_sign_t
*
a_sign
,
json_object
*
a_json_out
,
const
char
*
a_hash_out_type
)
{
json_object_object_add
(
a_json_out
,
"
S
ignature"
,
json_object_new_string
(
""
));
json_object_object_add
(
a_json_out
,
"
s
ignature"
,
json_object_new_string
(
""
));
if
(
!
a_sign
)
{
dap_json_rpc_error_add
(
a_json_arr_reply
,
-
1
,
"Corrupted signature data"
);
return
;
}
dap_chain_hash_fast_t
l_hash_pkey
;
json_object_object_add
(
a_json_out
,
"
T
ype"
,
json_object_new_string
(
dap_sign_type_to_str
(
a_sign
->
header
.
type
)));
json_object_object_add
(
a_json_out
,
"
t
ype"
,
json_object_new_string
(
dap_sign_type_to_str
(
a_sign
->
header
.
type
)));
if
(
dap_sign_get_pkey_hash
(
a_sign
,
&
l_hash_pkey
))
{
const
char
*
l_hash_str
=
dap_strcmp
(
a_hash_out_type
,
"hex"
)
?
dap_enc_base58_encode_hash_to_str_static
(
&
l_hash_pkey
)
:
dap_chain_hash_fast_to_str_static
(
&
l_hash_pkey
);
json_object_object_add
(
a_json_out
,
"
P
ublic
key
hash"
,
json_object_new_string
(
l_hash_str
));
json_object_object_add
(
a_json_out
,
"
p
ublic
_
key
_
hash"
,
json_object_new_string
(
l_hash_str
));
}
json_object_object_add
(
a_json_out
,
"
P
ublic
key
size"
,
json_object_new_uint64
(
a_sign
->
header
.
sign_pkey_size
));
json_object_object_add
(
a_json_out
,
"
S
ignature
size"
,
json_object_new_uint64
(
a_sign
->
header
.
sign_size
));
json_object_object_add
(
a_json_out
,
"
p
ublic
_
key
_
size"
,
json_object_new_uint64
(
a_sign
->
header
.
sign_pkey_size
));
json_object_object_add
(
a_json_out
,
"
s
ignature
_
size"
,
json_object_new_uint64
(
a_sign
->
header
.
sign_size
));
}
...
...
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