From c5e0a8a890fbf5db7451759b64b4729b113adf11 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Mon, 15 Aug 2022 14:24:22 +0100 Subject: [PATCH] Add missing error message Signed-off-by: Dave Rodgman --- programs/x509/cert_write.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/programs/x509/cert_write.c b/programs/x509/cert_write.c index 2f51e19c8..0118abd20 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;