From 20e26e15216902ba91d48b763e5d1e9699c088fb Mon Sep 17 00:00:00 2001 From: zxz*3 Date: Wed, 17 Jul 2024 11:49:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9D=99=E6=80=81=E5=91=8A?= =?UTF-8?q?=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zxz*3 --- test/unittest/v1.0/src/crypto_x509_cert_chain_test_part2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unittest/v1.0/src/crypto_x509_cert_chain_test_part2.cpp b/test/unittest/v1.0/src/crypto_x509_cert_chain_test_part2.cpp index 2460c54..ed29112 100644 --- a/test/unittest/v1.0/src/crypto_x509_cert_chain_test_part2.cpp +++ b/test/unittest/v1.0/src/crypto_x509_cert_chain_test_part2.cpp @@ -396,7 +396,7 @@ HWTEST_F(CryptoX509CertChainTestPart2, ValidateOpensslRevocationOnLineTest006, T HcfRevChkOption data[] = { REVOCATION_CHECK_OPTION_ACCESS_NETWORK }; params.revocationCheckParam = - ConstructHcfRevocationCheckParam(data, sizeof(data) / sizeof(data[0]), &g_blobDownloadURI, NULL); + ConstructHcfRevocationCheckParam(data, sizeof(data) / sizeof(data[0]), &g_blobDownloadURI, nullptr); ASSERT_NE(params.revocationCheckParam, nullptr); HcfX509CertChainValidateResult result = { 0 }; @@ -406,7 +406,7 @@ HWTEST_F(CryptoX509CertChainTestPart2, ValidateOpensslRevocationOnLineTest006, T CF_LOG_I("ValidateOpensslRevocationOnLineTest - 3"); DIST_POINT dp = { 0 }; X509OpensslMock::SetMockFlag(true); - dp.distpoint = NULL; + dp.distpoint = nullptr; EXPECT_CALL(X509OpensslMock::GetInstance(), OPENSSL_sk_value(_, _)) .WillOnce(Invoke(__real_OPENSSL_sk_value)) .WillOnce(Invoke(__real_OPENSSL_sk_value))