commit | 06f1bdf9c4c808b27819ed5ee65e4f696b775758 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Sat Sep 16 18:59:15 2017 -0400 |
committer | Davide Pesavento <davide.pesavento@lip6.fr> | Mon Sep 18 19:01:43 2017 -0400 |
tree | 74ee3702d5905134888eab369fc651a457602f53 | |
parent | 87039537fc33ffe726077e50a531bc30b5874b80 [diff] [blame] |
security: use EVP_DigestSign* routines in SignerFilter Change-Id: Ib87c4681084bf0389de527450a2248fe2161e6ee
diff --git a/src/security/transform/public-key.cpp b/src/security/transform/public-key.cpp index 13b8f00..16dd3d1 100644 --- a/src/security/transform/public-key.cpp +++ b/src/security/transform/public-key.cpp
@@ -71,7 +71,8 @@ KeyType PublicKey::getKeyType() const { - ENSURE_PUBLIC_KEY_LOADED(m_impl->key); + if (!m_impl->key) + return KeyType::NONE; switch (detail::getEvpPkeyType(m_impl->key)) { case EVP_PKEY_RSA: