comparison ui/certificate_win.cpp @ 79:1dd8e91972a8

Add accessors to certificate's in certificatelist
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 19 Mar 2014 16:35:49 +0000
parents dc1e1e9e62ce
children
comparison
equal deleted inserted replaced
78:2f5db8c70bc2 79:1dd8e91972a8
2 2
3 #ifdef Q_OS_WIN 3 #ifdef Q_OS_WIN
4 4
5 #include <QDebug> 5 #include <QDebug>
6 6
7 Certificate::Certificate(const QByteArray& asn1data) : mValid(false) { 7 Certificate::Certificate(const QByteArray& asn1data) :
8 mValid(false),
9 mShortDescription(QObject::tr("Invalid Certificate"))
10 {
8 11
9 // asn1data is expected to be \0 terminated as this is what 12 // asn1data is expected to be \0 terminated as this is what
10 // qt does in ::fromBase64 so the actual asn1data is 13 // qt does in ::fromBase64 so the actual asn1data is
11 // size() - 1 and not size() 14 // size() - 1 and not size()
12 Q_ASSERT (asn1data[asn1data.size()] == '\0'); 15 Q_ASSERT (asn1data[asn1data.size()] == '\0');

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