diff --git a/interfaces/kits/c/BUILD.gn b/interfaces/kits/c/BUILD.gn index e5dcc564..1c3546ee 100755 --- a/interfaces/kits/c/BUILD.gn +++ b/interfaces/kits/c/BUILD.gn @@ -45,6 +45,8 @@ ohos_shared_library("huks_ndk") { branch_protector_ret = "pac_ret" + version_script = "libhuksndk.map" + sanitize = { integer_overflow = true cfi = true diff --git a/interfaces/kits/c/libhuksndk.map b/interfaces/kits/c/libhuksndk.map new file mode 100644 index 00000000..b89afc78 --- /dev/null +++ b/interfaces/kits/c/libhuksndk.map @@ -0,0 +1,40 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + OH_Huks_GetSdkVersion; + OH_Huks_GenerateKeyItem; + OH_Huks_ImportKeyItem; + OH_Huks_ImportWrappedKeyItem; + OH_Huks_ExportPublicKeyItem; + OH_Huks_DeleteKeyItem; + OH_Huks_GetKeyItemParamSet; + OH_Huks_IsKeyItemExist; + OH_Huks_AttestKeyItem; + OH_Huks_InitSession; + OH_Huks_UpdateSession; + OH_Huks_FinishSession; + OH_Huks_AbortSession; + OH_Huks_InitParamSet; + OH_Huks_AddParams; + OH_Huks_BuildParamSet; + OH_Huks_FreeParamSet; + OH_Huks_CopyParamSet; + OH_Huks_GetParam; + OH_Huks_FreshParamSet; + OH_Huks_IsParamSetTagValid; + OH_Huks_IsParamSetValid; + OH_Huks_CheckParamMatch; + local: *; +}; \ No newline at end of file diff --git a/interfaces/kits/napi/BUILD.gn b/interfaces/kits/napi/BUILD.gn index 8840dd93..d1072221 100644 --- a/interfaces/kits/napi/BUILD.gn +++ b/interfaces/kits/napi/BUILD.gn @@ -39,6 +39,8 @@ ohos_shared_library("huks") { "include/v9", ] + version_script = "libhuksnapi.map" + sources = [ "src/huks_napi.cpp", "src/v8/huks_napi_abort.cpp", diff --git a/interfaces/kits/napi/libhuksnapi.map b/interfaces/kits/napi/libhuksnapi.map new file mode 100644 index 00000000..7f10f256 --- /dev/null +++ b/interfaces/kits/napi/libhuksnapi.map @@ -0,0 +1,17 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + local: *; +}; \ No newline at end of file diff --git a/services/huks_standard/BUILD.gn b/services/huks_standard/BUILD.gn index df98ac34..22247555 100644 --- a/services/huks_standard/BUILD.gn +++ b/services/huks_standard/BUILD.gn @@ -33,6 +33,7 @@ ohos_shared_library("huks_service") { } subsystem_name = "security" part_name = "huks" + version_script = "libhuksservice.map" configs = [ "//base/security/huks/frameworks/config/build:l2_standard_common_config", diff --git a/services/huks_standard/libhuksservice.map b/services/huks_standard/libhuksservice.map new file mode 100644 index 00000000..7f10f256 --- /dev/null +++ b/services/huks_standard/libhuksservice.map @@ -0,0 +1,17 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + local: *; +}; \ No newline at end of file