FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

164 pkcs11 support by tdivis · Pull Request #253 · xmlsec/python-xmlsec · GitHub

164 pkcs11 support - #253

Merged
jimjag merged 8 commits into
xmlsec:masterfrom
tdivis:164-pkcs11-support
Mar 12, 2024
Merged

164 pkcs11 support#253
jimjag merged 8 commits into
xmlsec:masterfrom
tdivis:164-pkcs11-support

Conversation

tdivis commented Apr 13, 2023

Copy link
Copy Markdown
Contributor

Fix #164.

Note: It's based on branch for #164, which should be merged first so the tests pass.

tdivis force-pushed the 164-pkcs11-support branch 7 times, most recently from b23ab3c to 0b5939f Compare April 17, 2023 11:55
Comment thread src/keys.c
if ((key = PyXmlSec_NewKey1((PyTypeObject*)self)) == NULL) goto ON_FAIL;

Py_BEGIN_ALLOW_THREADS;
key->handle = xmlSecCryptoAppKeyLoad(engine_and_key_id, xmlSecKeyDataFormatEngine, NULL, xmlSecCryptoAppGetDefaultPwdCallback(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

A note with xmlsec 1.3.3, xmlSecCryptoAppKeyLoad is deprecated in favor of xmlSecCryptoAppKeyLoadEx. This added an argument which adds the capacity to handle public keys. Since we're handling a private key, I think that this line should be this:
key->handle = xmlSecCryptoAppKeyLoad(engine_and_key_id, xmlSecKeyDataTypePrivate, xmlSecKeyDataFormatEngine, NULL, xmlSecCryptoAppGetDefaultPwdCallback(),

This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support PKCS11

4 participants


Back | FazBrowse Home | New Git URL