summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-09-01 08:40:40 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-09-01 08:40:40 (GMT)
commitaa71e8492b02be079312d39033a54209fb80f9aa (patch)
tree5970c069625617d21b262b214fdb1ccabe296d2b /src
parent1051e9d0dc5cbad27b89756839f3619cae2d44fe (diff)
parent67d5b1b800df55c61241c7fa33feeeea41a31513 (diff)
downloadQt-aa71e8492b02be079312d39033a54209fb80f9aa.zip
Qt-aa71e8492b02be079312d39033a54209fb80f9aa.tar.gz
Qt-aa71e8492b02be079312d39033a54209fb80f9aa.tar.bz2
Merge branch '4.6' of git:qt/qt into 4.6
Diffstat (limited to 'src')
-rw-r--r--src/network/ssl/qsslcertificate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp
index c128da9..3793b1e 100644
--- a/src/network/ssl/qsslcertificate.cpp
+++ b/src/network/ssl/qsslcertificate.cpp
@@ -252,19 +252,19 @@ QByteArray QSslCertificate::version() const
{
if (d->versionString.isEmpty() && d->x509)
d->versionString =
- QByteArray::number(qlonglong(q_ASN1_INTEGER_get(d->x509->cert_info->version)));
+ QByteArray::number(qlonglong(q_ASN1_INTEGER_get(d->x509->cert_info->version)) + 1);
return d->versionString;
}
/*!
- Returns the certificate's serial number string.
+ Returns the certificate's serial number string in decimal format.
*/
QByteArray QSslCertificate::serialNumber() const
{
if (d->serialNumberString.isEmpty() && d->x509)
d->serialNumberString =
- QByteArray::number(qlonglong(q_ASN1_INTEGER_get(d->x509->cert_info->serialNumber)) + 1);
+ QByteArray::number(qlonglong(q_ASN1_INTEGER_get(d->x509->cert_info->serialNumber)));
return d->serialNumberString;
}