comparison 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
comparison
equal deleted inserted replaced
93:0798b9e35725 94:f1ebab8639dc
12 #ifdef Q_OS_WIN 12 #ifdef Q_OS_WIN
13 #include <windows.h> 13 #include <windows.h>
14 #include <wincrypt.h> 14 #include <wincrypt.h>
15 #endif 15 #endif
16 16
17 #include <polarssl/x509_crt.h>
18
19 class Certificate 17 class Certificate
20 { 18 {
21 public: 19 public:
20
22 /** @brief construct a certificate from a line of a certificate list. 21 /** @brief construct a certificate from a line of a certificate list.
23 * 22 *
24 * The first two characters of the string are expected to be 23 * The first two characters of the string are expected to be
25 * the command. I: or R: 24 * the command. I: or R:
26 * 25 *
27 * @param[in] b64Line The line from the certificate list. 26 * @param[in] b64Line The line from the certificate list.
28 **/ 27 **/
29 Certificate(const QString& b64Line); 28 Certificate(const QString& b64Line = QString());
30
31 ~Certificate();
32 29
33 /** @brief check if this certificate could be parsed */ 30 /** @brief check if this certificate could be parsed */
34 bool isValid() const {return mValid;} 31 bool isValid() const {return mValid;}
35 32
36 /** @brief get a short description of the certificate 33 /** @brief get a short description of the certificate
61 bool mValid; 58 bool mValid;
62 59
63 QString mDetails; 60 QString mDetails;
64 QString mShortDescription; 61 QString mShortDescription;
65 QString mBaseLine; 62 QString mBaseLine;
66
67 x509_crt mX509Cert;
68 }; 63 };
69 #endif 64 #endif

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