mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
[auth] fix detection of root CAs on Linux (fixes #13640)
This commit is contained in:
parent
5e7291e97e
commit
08ec25bedd
@ -25,13 +25,13 @@
|
||||
#include "qgsauthconfig.h"
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
#define SSL_ISSUER_INFO( var, prop ) var.issuerInfo( prop ).first()
|
||||
#define SSL_ISSUER_INFO( var, prop ) var.issuerInfo( prop ).value(0)
|
||||
#else
|
||||
#define SSL_ISSUER_INFO( var, prop ) var.issuerInfo( prop )
|
||||
#endif
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
#define SSL_SUBJECT_INFO( var, prop ) var.subjectInfo( prop ).first()
|
||||
#define SSL_SUBJECT_INFO( var, prop ) var.subjectInfo( prop ).value(0)
|
||||
#else
|
||||
#define SSL_SUBJECT_INFO( var, prop ) var.subjectInfo( prop )
|
||||
#endif
|
||||
|
@ -2360,8 +2360,11 @@ bool QgsAuthManager::removeCertAuthority( const QSslCertificate& cert )
|
||||
|
||||
const QList<QSslCertificate> QgsAuthManager::getSystemRootCAs()
|
||||
{
|
||||
QNetworkRequest req;
|
||||
return req.sslConfiguration().caCertificates();
|
||||
#ifndef Q_OS_MAC
|
||||
return QSslSocket::systemCaCertificates();
|
||||
#else
|
||||
return QNetworkRequest::sslConfiguration().caCertificates();
|
||||
#endif
|
||||
}
|
||||
|
||||
const QList<QSslCertificate> QgsAuthManager::getExtraFileCAs()
|
||||
|
Loading…
x
Reference in New Issue
Block a user