From 49a63a594038f96db235d20e82bcda9963f8ded8 Mon Sep 17 00:00:00 2001 From: YuanXin Date: Sat, 27 Feb 2021 12:01:40 +0800 Subject: [PATCH] test/librbd: resolve compile error on centos Signed-off-by: YuanXin --- src/test/librbd/migration/test_mock_HttpClient.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/librbd/migration/test_mock_HttpClient.cc b/src/test/librbd/migration/test_mock_HttpClient.cc index 57718edf1277..575457dd76eb 100644 --- a/src/test/librbd/migration/test_mock_HttpClient.cc +++ b/src/test/librbd/migration/test_mock_HttpClient.cc @@ -175,7 +175,7 @@ public: boost::asio::ssl::context::no_sslv2 | boost::asio::ssl::context::single_dh_use); ctx.use_certificate_chain( - boost::asio::buffer(CERT.data(), CERT.size())); + boost::asio::buffer(CERTIFICATE.data(), CERTIFICATE.size())); ctx.use_private_key( boost::asio::buffer(KEY.data(), KEY.size()), boost::asio::ssl::context::file_format::pem); @@ -184,7 +184,7 @@ public: } // dummy self-signed cert for localhost - const std::string CERT = + const std::string CERTIFICATE = "-----BEGIN CERTIFICATE-----\n" "MIIDXzCCAkegAwIBAgIUYH6rAaq66LC6yJ3XK1WEMIfmY4cwDQYJKoZIhvcNAQEL\n" "BQAwPzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAlZBMQ8wDQYDVQQHDAZNY0xlYW4x\n" -- 2.47.3