case XSECCryptoKey::KEY_DSA_PAIR:
return "DSA";
+#ifdef XMLTOOLING_XMLSEC_ECC
case XSECCryptoKey::KEY_EC_PRIVATE:
case XSECCryptoKey::KEY_EC_PUBLIC:
case XSECCryptoKey::KEY_EC_PAIR:
return "EC";
+#endif
case XSECCryptoKey::KEY_HMAC:
return "HMAC";
{
if (m_key) {
XSECCryptoKey::KeyType type = m_key->getKeyType();
- if (type!=XSECCryptoKey::KEY_RSA_PUBLIC && type!=XSECCryptoKey::KEY_DSA_PUBLIC && type!=XSECCryptoKey::KEY_EC_PUBLIC)
+ if (type != XSECCryptoKey::KEY_RSA_PUBLIC && type != XSECCryptoKey::KEY_DSA_PUBLIC
+#ifdef XMLTOOLING_XMLSEC_ECC
+ && type != XSECCryptoKey::KEY_EC_PUBLIC
+#endif
+ )
return m_key;
}
return nullptr;
{
if (m_key) {
XSECCryptoKey::KeyType type = m_key->getKeyType();
- if (type!=XSECCryptoKey::KEY_RSA_PRIVATE && type!=XSECCryptoKey::KEY_DSA_PRIVATE && type!=XSECCryptoKey::KEY_EC_PRIVATE)
+ if (type != XSECCryptoKey::KEY_RSA_PRIVATE && type != XSECCryptoKey::KEY_DSA_PRIVATE
+#ifdef XMLTOOLING_XMLSEC_ECC
+ && type != XSECCryptoKey::KEY_EC_PRIVATE
+#endif
+ )
return m_key;
}
return nullptr;
#include <xsec/enc/OpenSSL/OpenSSLCryptoX509.hpp>
#include <xsec/enc/OpenSSL/OpenSSLCryptoKeyRSA.hpp>
#include <xsec/enc/OpenSSL/OpenSSLCryptoKeyDSA.hpp>
-#include <xsec/enc/OpenSSL/OpenSSLCryptoKeyEC.hpp>
+#ifdef XMLTOOLING_XMLSEC_ECC
+# include <xsec/enc/OpenSSL/OpenSSLCryptoKeyEC.hpp>
+#endif
#include <xercesc/util/Base64.hpp>
using namespace xmltooling::logging;