aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-17 14:30:57 +0000
committerlloyd <[email protected]>2010-09-17 14:30:57 +0000
commit3d10622abb3d06fb02affe31a25f059a58d8c84e (patch)
treee08408a0a56c22d2042a125b60459c8f005e07f3 /src/cert
parent25149a9b4cd3ca29eb1ef45871430a6044e6a346 (diff)
Hide X509_Object constructor
Diffstat (limited to 'src/cert')
-rw-r--r--src/cert/x509cert/x509_obj.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/cert/x509cert/x509_obj.h b/src/cert/x509cert/x509_obj.h
index 60c7c4db8..9451582c7 100644
--- a/src/cert/x509cert/x509_obj.h
+++ b/src/cert/x509cert/x509_obj.h
@@ -23,7 +23,6 @@ namespace Botan {
class BOTAN_DLL X509_Object
{
public:
-
/**
* The underlying data that is to be or was signed
* @return data that is or was signed
@@ -69,14 +68,6 @@ class BOTAN_DLL X509_Object
bool check_signature(class Public_Key* key) const;
/**
- * Encode this to a pipe
- * @deprecated use BER_encode or PEM_encode instead
- * @param out the pipe to write to
- * @param encoding the encoding to use
- */
- void encode(Pipe& out, X509_Encoding encoding = PEM) const;
-
- /**
* @return BER encoding of this
*/
SecureVector<byte> BER_encode() const;
@@ -86,10 +77,19 @@ class BOTAN_DLL X509_Object
*/
std::string PEM_encode() const;
- X509_Object(DataSource&, const std::string&);
- X509_Object(const std::string&, const std::string&);
+ /**
+ * Encode this to a pipe
+ * @deprecated use BER_encode or PEM_encode instead
+ * @param out the pipe to write to
+ * @param encoding the encoding to use
+ */
+ void encode(Pipe& out, X509_Encoding encoding = PEM) const;
+
virtual ~X509_Object() {}
protected:
+ X509_Object(DataSource& src, const std::string& pem_labels);
+ X509_Object(const std::string& file, const std::string& pem_labels);
+
void do_decode();
X509_Object() {}
AlgorithmIdentifier sig_algo;