From b083c624f6809482f9ceaf330ae9a862acf524d7 Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Wed, 10 Apr 2019 15:21:18 +0200 Subject: [PATCH] Fix cert_provider_test with recent versions of openssl On OpenSSL 1.1.1b 26 Feb 2019, the line shows as: RSA Private-Key: (1024 bit, 2 primes) Instead of: RSA Private-Key: (1024 bit) Signed-off-by: Laurent Bonnans --- src/cert_provider/cert_provider_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cert_provider/cert_provider_test.cc b/src/cert_provider/cert_provider_test.cc index d40d101856..e00dcbbb44 100644 --- a/src/cert_provider/cert_provider_test.cc +++ b/src/cert_provider/cert_provider_test.cc @@ -249,7 +249,7 @@ TEST_F(AktualizrCertProviderTest, DeviceCertParams) { ASSERT_NE(openssl.lastStdOut().find(expected_subject_str), std::string::npos); // check RSA length - const std::string expected_key_str = str(boost::format("Private-Key: (%1% bit)") % rsa_bits); + const std::string expected_key_str = str(boost::format("Private-Key: (%1% bit") % rsa_bits); openssl.run({"rsa", "-in", device_cred_path.privateKeyFileFullPath.string(), "-text", "-noout"}); ASSERT_EQ(openssl.lastExitCode(), 0) << openssl.lastStdErr();