From 1e085faeb6d2288941de6adf7ccbacf4452875f6 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 17 Sep 2010 22:45:46 +0000 Subject: Don't use SecureVector to store certificate data; mlock'ed memory in particular is precious. Really these could probably just as easily be std::vectors since even zeroizing the memory isn't relevant here. --- src/cert/x509cert/x509_obj.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cert/x509cert/x509_obj.h') diff --git a/src/cert/x509cert/x509_obj.h b/src/cert/x509cert/x509_obj.h index 9451582c7..86c1d6ce7 100644 --- a/src/cert/x509cert/x509_obj.h +++ b/src/cert/x509cert/x509_obj.h @@ -27,12 +27,12 @@ class BOTAN_DLL X509_Object * The underlying data that is to be or was signed * @return data that is or was signed */ - SecureVector tbs_data() const; + MemoryVector tbs_data() const; /** * @return signature on tbs_data() */ - SecureVector signature() const; + MemoryVector signature() const; /** * @return signature algorithm that was used to generate signature @@ -70,7 +70,7 @@ class BOTAN_DLL X509_Object /** * @return BER encoding of this */ - SecureVector BER_encode() const; + MemoryVector BER_encode() const; /** * @return PEM encoding of this @@ -93,7 +93,7 @@ class BOTAN_DLL X509_Object void do_decode(); X509_Object() {} AlgorithmIdentifier sig_algo; - SecureVector tbs_bits, sig; + MemoryVector tbs_bits, sig; private: virtual void force_decode() = 0; void init(DataSource&, const std::string&); -- cgit v1.2.3