diff options
author | Raul Metsma <raul@innovaatik.ee> | 2009-09-01 08:14:08 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@trolltech.com> | 2009-09-01 08:15:12 (GMT) |
commit | 8f1596ae9b64870c54958611552c71b0b390038f (patch) | |
tree | b3f4b2e693105c42b3e0cb808fcd5d91232cfb22 /src/network/ssl | |
parent | 16edcd5ff94ecc731146e3703aaf25cd6bb3fb67 (diff) | |
download | Qt-8f1596ae9b64870c54958611552c71b0b390038f.zip Qt-8f1596ae9b64870c54958611552c71b0b390038f.tar.gz Qt-8f1596ae9b64870c54958611552c71b0b390038f.tar.bz2 |
QSslCertificate: Add + 1 to serialNumber
Merge-request: 1383
Reviewed-by: Peter Hartmann <peter.hartmann@trolltech.com>
Diffstat (limited to 'src/network/ssl')
-rw-r--r-- | src/network/ssl/qsslcertificate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp index 5db6d0a..c128da9 100644 --- a/src/network/ssl/qsslcertificate.cpp +++ b/src/network/ssl/qsslcertificate.cpp @@ -252,7 +252,7 @@ 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))); return d->versionString; } @@ -264,7 +264,7 @@ QByteArray QSslCertificate::serialNumber() const { if (d->serialNumberString.isEmpty() && d->x509) d->serialNumberString = - QByteArray::number( qlonglong(q_ASN1_INTEGER_get( d->x509->cert_info->serialNumber )) ); + QByteArray::number(qlonglong(q_ASN1_INTEGER_get(d->x509->cert_info->serialNumber)) + 1); return d->serialNumberString; } |