Compare commits
3 Commits
e8eab67bbf
...
d6820d8e7b
Author | SHA1 | Date |
---|---|---|
Benjamin Dauvergne | d6820d8e7b | |
Benjamin Dauvergne | 2fd08cc683 | |
Benjamin Dauvergne | d5f24ca67e |
|
@ -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:
|
||||
#if LASSO_XMLSEC_VERSION_NUMBER > 0x010224
|
||||
#if LASSO_XMLSEC_VERSION_NUMBER > 0x010300
|
||||
pub_key = xmlSecCryptoAppKeyLoadEx(file, xmlSecKeyDataTypePublic | xmlSecKeyDataTypePrivate,
|
||||
xmlSecKeyDataFormatPem, NULL, NULL, NULL);
|
||||
#else
|
||||
|
@ -384,7 +384,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)
|
||||
{
|
||||
#if LASSO_XMLSEC_VERSION_NUMBER > 0x010224
|
||||
#if LASSO_XMLSEC_VERSION_NUMBER > 0x010300
|
||||
return xmlSecCryptoAppKeyLoadEx(private_key_file, xmlSecKeyDataTypePrivate | xmlSecKeyDataTypePublic,
|
||||
xmlSecKeyDataFormatPem, NULL, NULL, NULL);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue