Skip to content

Commit c9c660b

Browse files
committed
Use xmlSecCryptoAppKeyLoadEx instead of xmlSecCryptoAppKeyLoad for pkcs11 support
1 parent 99e5cb2 commit c9c660b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/keys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static PyObject* PyXmlSec_KeyFromEngine(PyObject* self, PyObject* args, PyObject
206206
if ((key = PyXmlSec_NewKey1((PyTypeObject*)self)) == NULL) goto ON_FAIL;
207207

208208
Py_BEGIN_ALLOW_THREADS;
209-
key->handle = xmlSecCryptoAppKeyLoad(engine_and_key_id, xmlSecKeyDataFormatEngine, NULL, xmlSecCryptoAppGetDefaultPwdCallback(),
209+
key->handle = xmlSecCryptoAppKeyLoadEx(engine_and_key_id, xmlSecKeyDataTypePrivate, xmlSecKeyDataFormatEngine, NULL, xmlSecCryptoAppGetDefaultPwdCallback(),
210210
(void*)engine_and_key_id);
211211
Py_END_ALLOW_THREADS;
212212

0 commit comments

Comments
 (0)