]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: resolve compile error on centos 39732/head
authorYuanXin <yuanxin@didiglobal.com>
Sat, 27 Feb 2021 04:01:40 +0000 (12:01 +0800)
committerYuanXin <yuanxin@didiglobal.com>
Mon, 1 Mar 2021 14:50:02 +0000 (22:50 +0800)
Signed-off-by: YuanXin <yuanxin@didiglobal.com>
src/test/librbd/migration/test_mock_HttpClient.cc

index 57718edf1277803cde35f4bcb60e4ec241750d50..575457dd76ebda4fdfeb709cefec9f800da390f1 100644 (file)
@@ -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"