1 /* 2 * Copyright (c) 2024-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef HAP_CERT_VERIFY_OPENSSL_UTILS_TEST_H 16 #define HAP_CERT_VERIFY_OPENSSL_UTILS_TEST_H 17 18 #include <cstdint> 19 #include <string> 20 21 #include "byte_buffer.h" 22 #include "test_const.h" 23 24 int32_t GetCertInfo001(void); 25 int32_t CertVerify001(void); 26 int32_t Base64NotUrlSafeCertTest001(void); 27 int32_t GetX509CrlFromDerBufferTest001(void); 28 int32_t GetIssuerAndSubjectTest001(void); 29 int32_t GetSerialNumberFromX509Test001(void); 30 int32_t VerifyCertChainPeriodOfValidityTest001(void); 31 int32_t VerifyCrlTest001(void); 32 int32_t CompareX509CertTest001(void); 33 int32_t WriteX509CrlToStreamTest001(void); 34 int32_t PrivateFuncInvalidInputTest001(void); 35 #endif // HAP_CERT_VERIFY_OPENSSL_UTILS_TEST_H 36