feat: updates
This commit is contained in:
@@ -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::ecdsa::signature::digest::Digest;
|
||||||
use p256::pkcs8::ObjectIdentifier;
|
use p256::pkcs8::ObjectIdentifier;
|
||||||
use sha1::Sha1;
|
use sha1::Sha1;
|
||||||
|
|||||||
@@ -8,9 +8,6 @@ rust-version.workspace = true
|
|||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
|
|
||||||
[features]
|
|
||||||
custom-function-list = []
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cached = { version = "0.51.4", default-features = false }
|
cached = { version = "0.51.4", default-features = false }
|
||||||
native-pkcs11-core = { version = "^0.2.14", path = "../native-pkcs11-core" }
|
native-pkcs11-core = { version = "^0.2.14", path = "../native-pkcs11-core" }
|
||||||
|
|||||||
@@ -277,7 +277,6 @@ cryptoki_fn!(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// #[cfg(not(feature = "custom-function-list"))]
|
|
||||||
cryptoki_fn!(
|
cryptoki_fn!(
|
||||||
unsafe fn C_GetFunctionList(ppFunctionList: CK_FUNCTION_LIST_PTR_PTR) {
|
unsafe fn C_GetFunctionList(ppFunctionList: CK_FUNCTION_LIST_PTR_PTR) {
|
||||||
not_null!(ppFunctionList);
|
not_null!(ppFunctionList);
|
||||||
|
|||||||
Reference in New Issue
Block a user