Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1174 from advancedtelematic/test/cert-provider-fi…
Browse files Browse the repository at this point in the history
…x-new-openssl

Fix cert_provider_test with recent versions of openssl
  • Loading branch information
pattivacek authored Apr 10, 2019
2 parents 7d42dbd + b083c62 commit e4548ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cert_provider/cert_provider_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e4548ea

Please sign in to comment.