Skip to content

Commit 53eb69b

Browse files
authored
Merge pull request #285 from ayakael/final-deprecate
Use xmlSecCryptoAppKeyLoadEx instead of xmlSecCryptoAppKeyLoad for pkc11 support
2 parents 99e5cb2 + c9c660b commit 53eb69b

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)