cert_write: Support write any for extended key usage
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
5b91dc7265
commit
b078607f04
1 changed files with 2 additions and 0 deletions
|
@ -530,6 +530,8 @@ usage:
|
||||||
SET_OID(ext_key_usage->buf, MBEDTLS_OID_TIME_STAMPING);
|
SET_OID(ext_key_usage->buf, MBEDTLS_OID_TIME_STAMPING);
|
||||||
} else if (strcmp(q, "OCSPSigning") == 0) {
|
} else if (strcmp(q, "OCSPSigning") == 0) {
|
||||||
SET_OID(ext_key_usage->buf, MBEDTLS_OID_OCSP_SIGNING);
|
SET_OID(ext_key_usage->buf, MBEDTLS_OID_OCSP_SIGNING);
|
||||||
|
} else if (strcmp(q, "any") == 0) {
|
||||||
|
SET_OID(ext_key_usage->buf, MBEDTLS_OID_ANY_EXTENDED_KEY_USAGE);
|
||||||
} else {
|
} else {
|
||||||
mbedtls_printf("Invalid argument for option %s\n", p);
|
mbedtls_printf("Invalid argument for option %s\n", p);
|
||||||
goto usage;
|
goto usage;
|
||||||
|
|
Loading…
Reference in a new issue