Compare commits
3 Commits
d6820d8e7b
...
f575ac1a7c
Author | SHA1 | Date |
---|---|---|
Benjamin Dauvergne | f575ac1a7c | |
Benjamin Dauvergne | 38d9291fd2 | |
Benjamin Dauvergne | f29d8e033b |
|
@ -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 > 0x010300
|
||||
#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 > 0x010300
|
||||
#if LASSO_XMLSEC_VERSION_NUMBER >= 0x010300
|
||||
return xmlSecCryptoAppKeyLoadEx(private_key_file, xmlSecKeyDataTypePrivate | xmlSecKeyDataTypePublic,
|
||||
xmlSecKeyDataFormatPem, NULL, NULL, NULL);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue