mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
use getter that does not modify its argument in QSslCertificate::serialNumber()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d8e7985b53
commit
1abdfa9775
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ QByteArray QSslCertificate::serialNumber() const
|
|||
{
|
||||
std::lock_guard<std::recursive_mutex> lock(*QRecursiveMutexPool::globalInstanceGet(d.data()));
|
||||
if (d->serialNumberString.isEmpty() && d->x509) {
|
||||
ASN1_INTEGER *serialNumber = X509_get_serialNumber(d->x509);
|
||||
const ASN1_INTEGER *serialNumber = X509_get0_serialNumber(d->x509);
|
||||
// if we cannot convert to a long, just output the hexadecimal number
|
||||
if (serialNumber->length > 4) {
|
||||
QByteArray hexString;
|
||||
|
|
Loading…
Add table
Reference in a new issue