diff options
author | lloyd <[email protected]> | 2010-02-24 01:40:25 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-24 01:40:25 +0000 |
commit | 2aceaaa8d1b051ff225ebe5d75d3f02ac874e751 (patch) | |
tree | d8fba850be19daf0f84454b4a648667268ad50c8 /src/cert/cvc/cvc_self.cpp | |
parent | 7347916cb685582d5f2b5fee4b518d0d1d4995ca (diff) |
Remove TR1 dependency in CVC code
Diffstat (limited to 'src/cert/cvc/cvc_self.cpp')
-rw-r--r-- | src/cert/cvc/cvc_self.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cert/cvc/cvc_self.cpp b/src/cert/cvc/cvc_self.cpp index 06b7eb1ab..9d4db2c8c 100644 --- a/src/cert/cvc/cvc_self.cpp +++ b/src/cert/cvc/cvc_self.cpp @@ -131,7 +131,8 @@ EAC1_1_Req create_cvc_req(Private_Key const& key, .get_contents(); MemoryVector<byte> signed_cert = EAC1_1_gen_CVC<EAC1_1_Req>::make_signed(signer, EAC1_1_gen_CVC<EAC1_1_Req>::build_cert_body(tbs), rng); - std::tr1::shared_ptr<DataSource> source(new DataSource_Memory(signed_cert)); + + DataSource_Memory source(signed_cert); return EAC1_1_Req(source); } @@ -151,7 +152,8 @@ EAC1_1_ADO create_ado_req(Private_Key const& key, SecureVector<byte> tbs_bits = req.BER_encode(); tbs_bits.append(DER_Encoder().encode(car).get_contents()); MemoryVector<byte> signed_cert = EAC1_1_ADO::make_signed(signer, tbs_bits, rng); - std::tr1::shared_ptr<DataSource> source(new DataSource_Memory(signed_cert)); + + DataSource_Memory source(signed_cert); return EAC1_1_ADO(source); } |