1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//base/security/crypto_framework/frameworks/frameworks.gni") 15import("//base/security/crypto_framework/plugin/plugin.gni") 16 17#####################hydra-fuzz################### 18import("//build/config/features.gni") 19import("//build/ohos.gni") 20import("//build/test.gni") 21module_output_path = "crypto_framework/certificate" 22 23##############################fuzztest########################################## 24ohos_fuzztest("X509CrlFuzzTest") { 25 module_out_path = module_output_path 26 fuzz_config_file = "//base/security/crypto_framework/test/fuzztest/certificate/x509crl_fuzzer" 27 include_dirs = [ 28 "//commonlibrary/c_utils/base/include", 29 "//third_party/openssl/include", 30 ] 31 include_dirs += framework_inc_path + plugin_inc_path 32 sources = [ "x509crl_fuzzer.cpp" ] 33 cflags = [ 34 "-g", 35 "-O0", 36 "-Wno-unused-variable", 37 "-fno-omit-frame-pointer", 38 "-DHILOG_ENABLE", 39 ] 40 if (target_cpu == "arm") { 41 cflags += [ "-DBINDER_IPC_32BIT" ] 42 } 43 44 deps = [ 45 "//base/security/crypto_framework:crypto_framework_lib", 46 "//base/security/crypto_framework:crypto_openssl_plugin_lib", 47 "//third_party/bounds_checking_function:libsec_shared", 48 "//third_party/openssl:libcrypto_shared", 49 ] 50 51 external_deps = [ 52 "c_utils:utils", 53 "hiviewdfx_hilog_native:libhilog", 54 ] 55} 56 57############################################################################### 58group("fuzztest") { 59 testonly = true 60 deps = [] 61 deps += [ 62 # deps file 63 ":X509CrlFuzzTest", 64 ] 65} 66############################################################################### 67