diff --git a/programs/x509/cert_write.c b/programs/x509/cert_write.c index 2f51e19c87..0118abd208 100644 --- a/programs/x509/cert_write.c +++ b/programs/x509/cert_write.c @@ -467,7 +467,10 @@ int main( int argc, char *argv[] ) else if( strcmp( q, "OCSPSigning" ) == 0 ) SET_OID( ext_key_usage->buf, MBEDTLS_OID_OCSP_SIGNING ); else + { + mbedtls_printf( "Invalid argument for option %s\n", p ); goto usage; + } *tail = ext_key_usage; tail = &ext_key_usage->next;