From: Harshal G. <no...@gi...> - 2023-06-13 12:49:16
|
Branch: refs/heads/master Home: https://github.com/OpenSC/libp11 Commit: 21209b117bd0c0e96d27f2ea16a6b0940d4af7c0 https://github.com/OpenSC/libp11/commit/21209b117bd0c0e96d27f2ea16a6b0940d4af7c0 Author: Harshal Gohel <har...@ph...> Date: 2023-06-13 (Tue, 13 Jun 2023) Changed paths: M src/eng_back.c M src/libp11-int.h M src/libp11.exports M src/libp11.h M src/p11_cert.c M src/p11_front.c M src/p11_key.c Log Message: ----------- Improve key and cert enumeration performance Add PKCS11_enumerate_*_ext functions to find keys with id or label if supplied. This change also retains previous behavior of fetching all the keys/certs if no label or id is supplied. If PKCS11_enumerate_*_ext functions are called with NULL template, behavior is same as before - enumerate everything. Introduce match_key_int function and avoid code duplication and call it from match_*_key functions and avoid cdoe duplication Previous attempt to solve this was in 206af15 This improves on it and restores caching to avoid segmentation fault. And improve performance for further calls. Use id of certificate or private key to search for corresponding private key or certificate respectively Commit: 1e8dcc489dc8a5b5f252dde0a3bdf9dc2fecade4 https://github.com/OpenSC/libp11/commit/1e8dcc489dc8a5b5f252dde0a3bdf9dc2fecade4 Author: Harshal Gohel <har...@ph...> Date: 2023-06-13 (Tue, 13 Jun 2023) Changed paths: M examples/Makefile.am A examples/listkeys_ext.c M tests/Makefile.am A tests/rsa-testlistkeys_ext.softhsm Log Message: ----------- test: Add listkeys_ext example and testcase for the same Compare: https://github.com/OpenSC/libp11/compare/580c12b78b63...1e8dcc489dc8 |