diff options
author | lloyd <[email protected]> | 2010-03-08 14:28:14 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-08 14:28:14 +0000 |
commit | ea38a42c2cfbc3a6235b11637b382589676c6286 (patch) | |
tree | 918b28ec50e98612e2c055e28368f7397b96f79c /src/cert/cvc | |
parent | 3900bd1e5a9974eea4faee4a8159380ea67c6251 (diff) |
Remove the now no-op classes PK_Encrypting_Key,
PK_Decrypting_Key, PK_Signing_Key, PK_Verifying_with_MR_Key, and
PK_Verifying_wo_MR_Key.
Diffstat (limited to 'src/cert/cvc')
-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(...) |