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
5bc6f284
"vscode:/vscode.git/clone" did not exist on "7c2028e84ede1ece09fa2dd13b5b6d8ba59ddfd1"
Commit
5bc6f284
authored
Jan 28, 2021
by
Sandrine Bailleux
Committed by
TrustedFirmware Code Review
Jan 28, 2021
Browse files
Merge "tools: cert_create: Create only requested certificates" into integration
parents
af99182c
294e2656
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/cert_create/src/main.c
View file @
5bc6f284
...
@@ -473,6 +473,11 @@ int main(int argc, char *argv[])
...
@@ -473,6 +473,11 @@ int main(int argc, char *argv[])
cert
=
&
certs
[
i
];
cert
=
&
certs
[
i
];
if
(
cert
->
fn
==
NULL
)
{
/* Certificate not requested. Skip to the next one */
continue
;
}
/* Create a new stack of extensions. This stack will be used
/* Create a new stack of extensions. This stack will be used
* to create the certificate */
* to create the certificate */
CHECK_NULL
(
sk
,
sk_X509_EXTENSION_new_null
());
CHECK_NULL
(
sk
,
sk_X509_EXTENSION_new_null
());
...
@@ -539,7 +544,7 @@ int main(int argc, char *argv[])
...
@@ -539,7 +544,7 @@ int main(int argc, char *argv[])
}
}
/* Create certificate. Signed with corresponding key */
/* Create certificate. Signed with corresponding key */
if
(
cert
->
fn
&&
!
cert_new
(
hash_alg
,
cert
,
VAL_DAYS
,
0
,
sk
))
{
if
(
!
cert_new
(
hash_alg
,
cert
,
VAL_DAYS
,
0
,
sk
))
{
ERROR
(
"Cannot create %s
\n
"
,
cert
->
cn
);
ERROR
(
"Cannot create %s
\n
"
,
cert
->
cn
);
exit
(
1
);
exit
(
1
);
}
}
...
...
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