diff options
Diffstat (limited to 'src/cert/cvc/signed_obj.cpp')
-rw-r--r-- | src/cert/cvc/signed_obj.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cert/cvc/signed_obj.cpp b/src/cert/cvc/signed_obj.cpp index 31a158dd4..ddb714621 100644 --- a/src/cert/cvc/signed_obj.cpp +++ b/src/cert/cvc/signed_obj.cpp @@ -62,13 +62,9 @@ bool EAC_Signed_Object::check_signature(Public_Key& pub_key, Signature_Format format = (pub_key.message_parts() >= 2) ? DER_SEQUENCE : IEEE_1363; - if(!dynamic_cast<PK_Verifying_wo_MR_Key*>(&pub_key)) - return false; - SecureVector<byte> to_sign = tbs_data(); - PK_Verifying_wo_MR_Key& sig_key = dynamic_cast<PK_Verifying_wo_MR_Key&>(pub_key); - std::auto_ptr<PK_Verifier> verifier(get_pk_verifier(sig_key, padding, format)); + std::auto_ptr<PK_Verifier> verifier(get_pk_verifier(pub_key, padding, format)); return verifier->verify_message(to_sign, sig); } catch(...) |