xmlsec: replace xmlSecCryptoAppKeyLoad by xmlSecCryptoAppKeyLoadEx (#85339)
xmlSecCryptoAppKeyLoad was removed from libxmlsec1 in version >= 1.3.3: (xmlsec-core) Removed previously deprecated functions, defines, etc.
This commit is contained in:
parent
c8d3e91b57
commit
74fa9dda34
|
@ -310,7 +310,7 @@ xmlSecKeyPtr lasso_get_public_key_from_pem_file(const char *file) {
|
|||
pub_key = lasso_get_public_key_from_pem_cert_file(file);
|
||||
break;
|
||||
case LASSO_PEM_FILE_TYPE_PUB_KEY:
|
||||
pub_key = xmlSecCryptoAppKeyLoad(file,
|
||||
pub_key = xmlSecCryptoAppKeyLoadEx(file, xmlSecKeyDataTypePublic | xmlSecKeyDataTypePrivate,
|
||||
xmlSecKeyDataFormatPem, NULL, NULL, NULL);
|
||||
break;
|
||||
case LASSO_PEM_FILE_TYPE_PRIVATE_KEY:
|
||||
|
@ -379,7 +379,7 @@ lasso_get_public_key_from_pem_cert_file(const char *pem_cert_file)
|
|||
static xmlSecKeyPtr
|
||||
lasso_get_public_key_from_private_key_file(const char *private_key_file)
|
||||
{
|
||||
return xmlSecCryptoAppKeyLoad(private_key_file,
|
||||
return xmlSecCryptoAppKeyLoadEx(private_key_file, xmlSecKeyDataTypePrivate | xmlSecKeyDataTypePublic,
|
||||
xmlSecKeyDataFormatPem, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue