Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
42ea70e8
Commit
42ea70e8
authored
Jan 27, 2021
by
Lauren Wehrmeister
Committed by
TrustedFirmware Code Review
Jan 27, 2021
Browse files
Merge "cert-tool: avoid duplicates in extension stack" into integration
parents
26dccba6
1ed941c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/cert_create/src/main.c
View file @
42ea70e8
/*
/*
* Copyright (c) 2015-202
0
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-202
1
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -492,7 +492,12 @@ int main(int argc, char *argv[])
...
@@ -492,7 +492,12 @@ int main(int argc, char *argv[])
*/
*/
switch
(
ext
->
type
)
{
switch
(
ext
->
type
)
{
case
EXT_TYPE_NVCOUNTER
:
case
EXT_TYPE_NVCOUNTER
:
if
(
ext
->
arg
)
{
if
(
ext
->
optional
&&
ext
->
arg
==
NULL
)
{
/* Skip this NVCounter */
continue
;
}
else
{
/* Checked by `check_cmd_params` */
assert
(
ext
->
arg
!=
NULL
);
nvctr
=
atoi
(
ext
->
arg
);
nvctr
=
atoi
(
ext
->
arg
);
CHECK_NULL
(
cert_ext
,
ext_new_nvcounter
(
ext_nid
,
CHECK_NULL
(
cert_ext
,
ext_new_nvcounter
(
ext_nid
,
EXT_CRIT
,
nvctr
));
EXT_CRIT
,
nvctr
));
...
@@ -505,7 +510,7 @@ int main(int argc, char *argv[])
...
@@ -505,7 +510,7 @@ int main(int argc, char *argv[])
memset
(
md
,
0x0
,
SHA512_DIGEST_LENGTH
);
memset
(
md
,
0x0
,
SHA512_DIGEST_LENGTH
);
}
else
{
}
else
{
/* Do not include this hash in the certificate */
/* Do not include this hash in the certificate */
break
;
continue
;
}
}
}
else
{
}
else
{
/* Calculate the hash of the file */
/* Calculate the hash of the file */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment