diff --git a/native-pkcs11-piv/src/piv/util.rs b/native-pkcs11-piv/src/piv/util.rs index 9e42f4e..7f1ed27 100644 --- a/native-pkcs11-piv/src/piv/util.rs +++ b/native-pkcs11-piv/src/piv/util.rs @@ -1,3 +1,17 @@ +// Copyright 2024 Hatter Jiang +// +// 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. + use p256::ecdsa::signature::digest::Digest; use p256::pkcs8::ObjectIdentifier; use sha1::Sha1; diff --git a/native-pkcs11/Cargo.toml b/native-pkcs11/Cargo.toml index c664476..3e197ca 100644 --- a/native-pkcs11/Cargo.toml +++ b/native-pkcs11/Cargo.toml @@ -8,9 +8,6 @@ rust-version.workspace = true repository.workspace = true license.workspace = true -[features] -custom-function-list = [] - [dependencies] cached = { version = "0.51.4", default-features = false } native-pkcs11-core = { version = "^0.2.14", path = "../native-pkcs11-core" } diff --git a/native-pkcs11/src/lib.rs b/native-pkcs11/src/lib.rs index a46e75b..d71462d 100644 --- a/native-pkcs11/src/lib.rs +++ b/native-pkcs11/src/lib.rs @@ -277,7 +277,6 @@ cryptoki_fn!( } ); -// #[cfg(not(feature = "custom-function-list"))] cryptoki_fn!( unsafe fn C_GetFunctionList(ppFunctionList: CK_FUNCTION_LIST_PTR_PTR) { not_null!(ppFunctionList);