openssl fipsinstall: fix cosmetic wart
authorEnji Cooper <yaneurabeya@gmail.com>
Thu, 18 Apr 2024 04:10:15 +0000 (21:10 -0700)
committerTomas Mraz <tomas@openssl.org>
Fri, 19 Apr 2024 08:35:38 +0000 (10:35 +0200)
This change makes the message on failure consistent with the message on
success by trimming a single space in the error message.

CLA: trivial
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/24180)

apps/fipsinstall.c

index 6d86bb44e2b0648d1ab10d23507b9b526a569980..d0d5716ab17f8b6e66672ab0b44e599b86cd0d03 100644 (file)
@@ -478,7 +478,7 @@ opthelp:
             ret = OSSL_PROVIDER_available(NULL, prov_name) ? 0 : 1;
             if (!quiet) {
                 BIO_printf(bio_err, "FIPS provider is %s\n",
-                           ret == 0 ? "available" : " not available");
+                           ret == 0 ? "available" : "not available");
             }
         }
         goto end;