Skip to content

Commit

Permalink
Use xmlSecCryptoAppKeyLoadEx instead of xmlSecCryptoAppKeyLoad
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakael committed Jan 14, 2024
1 parent 7dc2d5f commit 7b57337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static PyObject* PyXmlSec_KeyFromFile(PyObject* self, PyObject* args, PyObject*
if (is_content) {
key->handle = xmlSecCryptoAppKeyLoadMemory((const xmlSecByte*)data, (xmlSecSize)data_size, format, password, NULL, NULL);
} else {
key->handle = xmlSecCryptoAppKeyLoad(data, format, password, NULL, NULL);
key->handle = xmlSecCryptoAppKeyLoadEx(data, xmlSecKeyDataTypePrivate, format, password, NULL, NULL);
}
Py_END_ALLOW_THREADS;

Expand Down

0 comments on commit 7b57337

Please sign in to comment.