Skip to content

Commit 7891e71

Browse files
committed
Use xmlSecCryptoAppKeyLoadEx instead of deprecated xmlSecCryptoAppKeyLoad
1 parent 31bea7c commit 7891e71

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
@@ -163,7 +163,7 @@ static PyObject* PyXmlSec_KeyFromFile(PyObject* self, PyObject* args, PyObject*
163163
if (is_content) {
164164
key->handle = xmlSecCryptoAppKeyLoadMemory((const xmlSecByte*)data, (xmlSecSize)data_size, format, password, NULL, NULL);
165165
} else {
166-
key->handle = xmlSecCryptoAppKeyLoad(data, format, password, NULL, NULL);
166+
key->handle = xmlSecCryptoAppKeyLoadEx(data, xmlSecKeyDataTypePrivate, format, password, NULL, NULL);
167167
}
168168
Py_END_ALLOW_THREADS;
169169

0 commit comments

Comments
 (0)