diff options
author | lloyd <[email protected]> | 2010-03-02 19:03:20 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-02 19:03:20 +0000 |
commit | 732056d8876b669159b3ade4b9786528a3d2366f (patch) | |
tree | 5dfc77b75b6c9a07dc6764e72ea3636224c1bb15 /src/cert/cvc/cvc_cert.cpp | |
parent | 7f81b3a4af59347337733a808172932de8f9c931 (diff) |
Cleanups, remove dead code
Diffstat (limited to 'src/cert/cvc/cvc_cert.cpp')
-rw-r--r-- | src/cert/cvc/cvc_cert.cpp | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/src/cert/cvc/cvc_cert.cpp b/src/cert/cvc/cvc_cert.cpp index 44a3ff508..b6a141d01 100644 --- a/src/cert/cvc/cvc_cert.cpp +++ b/src/cert/cvc/cvc_cert.cpp @@ -6,7 +6,6 @@ */ #include <botan/cvc_cert.h> -#include <botan/cvc_key.h> #include <botan/ecdsa.h> namespace Botan { @@ -58,21 +57,11 @@ void EAC1_1_CVC::force_decode() if(cpi != 0) throw Decoding_Error("EAC1_1 certificate's cpi was not 0"); - // FIXME: PK algos have no notion of EAC encoder/decoder currently -#if 0 - ECDSA_PublicKey tmp_pk; - std::auto_ptr<EAC1_1_CVC_Decoder> dec = tmp_pk.cvc_eac1_1_decoder(); - sig_algo = dec->public_key(enc_pk); + m_pk = decode_eac1_1_key(enc_pk, sig_algo); - - m_pk = tmp_pk; m_chat_val = enc_chat_val[0]; - self_signed = false; - if(m_car.iso_8859() == m_chr.iso_8859()) - { - self_signed= true; - } -#endif + + self_signed = (m_car.iso_8859() == m_chr.iso_8859()); } /* @@ -99,6 +88,12 @@ bool EAC1_1_CVC::operator==(EAC1_1_CVC const& rhs) const && get_concat_sig() == rhs.get_concat_sig()); } +ECDSA_PublicKey decode_eac1_1_key(const MemoryRegion<byte>& enc_key, + AlgorithmIdentifier& sig_algo) + { + throw Internal_Error("decode_eac1_1_key: Unimplemented"); + } + EAC1_1_CVC make_cvc_cert(PK_Signer& signer, MemoryRegion<byte> const& public_key, ASN1_Car const& car, |