mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-27 15:24:54 +00:00
Merge "tools: cert_create: Create only requested certificates" into integration
This commit is contained in:
commit
5bc6f28424
1 changed files with 6 additions and 1 deletions
|
@ -473,6 +473,11 @@ int main(int argc, char *argv[])
|
|||
|
||||
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
|
||||
* to create the certificate */
|
||||
CHECK_NULL(sk, sk_X509_EXTENSION_new_null());
|
||||
|
@ -539,7 +544,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
/* 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);
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue