mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-29 08:24:11 -04:00
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
@ -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…
x
Reference in New Issue
Block a user