From: YuanXin Date: Sat, 27 Feb 2021 04:01:40 +0000 (+0800) Subject: test/librbd: resolve compile error on centos X-Git-Tag: v17.1.0~2801^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F39732%2Fhead;p=ceph.git test/librbd: resolve compile error on centos Signed-off-by: YuanXin --- 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"