X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Fsecurity%2Fimpl%2FBasicX509Credential.cpp;h=df3d1aa7562294116980a67b1c639e32b16f9545;hb=283aad6d4e6291bb79567bac2d4e373cece4c6ad;hp=0550baaac9bfcae019f91c731dba2f9b7fb3f0c3;hpb=4a27857b3f38f55a6e0c3b4bf8bb147097d26c33;p=shibboleth%2Fxmltooling.git diff --git a/xmltooling/security/impl/BasicX509Credential.cpp b/xmltooling/security/impl/BasicX509Credential.cpp index 0550baa..df3d1aa 100644 --- a/xmltooling/security/impl/BasicX509Credential.cpp +++ b/xmltooling/security/impl/BasicX509Credential.cpp @@ -129,8 +129,7 @@ const char* BasicX509Credential::getAlgorithm() const return "HMAC"; case XSECCryptoKey::KEY_SYMMETRIC: { - XSECCryptoSymmetricKey* skey = static_cast(m_key); - switch (skey->getSymmetricKeyType()) { + switch (static_cast(m_key)->getSymmetricKeyType()) { case XSECCryptoSymmetricKey::KEY_3DES_192: return "DESede"; case XSECCryptoSymmetricKey::KEY_AES_128: @@ -158,8 +157,7 @@ unsigned int BasicX509Credential::getKeySize() const } case XSECCryptoKey::KEY_SYMMETRIC: { - XSECCryptoSymmetricKey* skey = static_cast(m_key); - switch (skey->getSymmetricKeyType()) { + switch (static_cast(m_key)->getSymmetricKeyType()) { case XSECCryptoSymmetricKey::KEY_3DES_192: return 192; case XSECCryptoSymmetricKey::KEY_AES_128: