-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make private certificate functions generic
Current private certificate functions implement limited functionality to find x509 certificate by id and/or label and/or serial. They can't be reused to implement more generic find certificates API. This commit contains following changes: * implement generic findCertificatesWithAttributes function which allows to find certificates by defined templates. This function returns slice of pkcs11.ObjectHandle. Handles can be used to retrieve any information from pkcs11 object; * reimplement findCertificate function to use generic certificate functions. Signed-off-by: Oleksandr Grytsov <[email protected]>
- Loading branch information
Showing
1 changed file
with
44 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters