aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/cvc/cvc_gen_cert.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-02-10 22:51:11 +0000
committerlloyd <[email protected]>2011-02-10 22:51:11 +0000
commit5f4f1294b1cf1784f4fd14840a9e0824f4fa8742 (patch)
tree3cdedbe87099c18e289bc140bef69e86dddf8b8d /src/cert/cvc/cvc_gen_cert.h
parentf49d55a1e4bcd3e33ba8eee6afa92438ef61f0b3 (diff)
Remove inclusions of unused headers.
Avoid using auto_ptr in the CVC headers.
Diffstat (limited to 'src/cert/cvc/cvc_gen_cert.h')
-rw-r--r--src/cert/cvc/cvc_gen_cert.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cert/cvc/cvc_gen_cert.h b/src/cert/cvc/cvc_gen_cert.h
index 61861df41..ad61b85bf 100644
--- a/src/cert/cvc/cvc_gen_cert.h
+++ b/src/cert/cvc/cvc_gen_cert.h
@@ -13,7 +13,6 @@
#include <botan/eac_asn_obj.h>
#include <botan/ecdsa.h>
#include <botan/pubkey.h>
-#include <memory>
namespace Botan {
@@ -31,7 +30,7 @@ class EAC1_1_gen_CVC : public EAC1_1_obj<Derived> // CRTP continuation from EAC1
* Get this certificates public key.
* @result this certificates public key
*/
- std::auto_ptr<Public_Key> subject_public_key() const;
+ Public_Key* subject_public_key() const;
/**
* Find out whether this object is self signed.
@@ -121,9 +120,9 @@ MemoryVector<byte> EAC1_1_gen_CVC<Derived>::make_signed(
}
template<typename Derived>
-std::auto_ptr<Public_Key> EAC1_1_gen_CVC<Derived>::subject_public_key() const
+Public_Key* EAC1_1_gen_CVC<Derived>::subject_public_key() const
{
- return std::auto_ptr<Public_Key>(new ECDSA_PublicKey(*m_pk));
+ return new ECDSA_PublicKey(*m_pk);
}
template<typename Derived> SecureVector<byte> EAC1_1_gen_CVC<Derived>::build_cert_body(MemoryRegion<byte> const& tbs)