diff ui/certificate.h @ 94:f1ebab8639dc

Do not save the x509 cert as a member variable
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Mar 2014 10:06:50 +0000
parents ba8a548ff252
children 2551ad24d3c2
line wrap: on
line diff
--- a/ui/certificate.h	Fri Mar 21 09:48:46 2014 +0000
+++ b/ui/certificate.h	Fri Mar 21 10:06:50 2014 +0000
@@ -14,11 +14,10 @@
 #include <wincrypt.h>
 #endif
 
-#include <polarssl/x509_crt.h>
-
 class Certificate
 {
 public:
+
     /** @brief construct a certificate from a line of a certificate list.
      *
      * The first two characters of the string are expected to be
@@ -26,9 +25,7 @@
      *
      *  @param[in] b64Line The line from the certificate list.
      **/
-    Certificate(const QString& b64Line);
-
-    ~Certificate();
+    Certificate(const QString& b64Line = QString());
 
     /** @brief check if this certificate could be parsed */
     bool isValid() const {return mValid;}
@@ -63,7 +60,5 @@
     QString mDetails;
     QString mShortDescription;
     QString mBaseLine;
-
-    x509_crt mX509Cert;
 };
 #endif

http://wald.intevation.org/projects/trustbridge/