Skip to content
Permalink
Browse files

[auth] Use utility method certsToPemText

  • Loading branch information
elpaso committed Oct 13, 2017
1 parent f804f0b commit 0a2f754043395c176a1d2bbd5f9c4365ae0f73c0
Showing with 1 addition and 12 deletions.
  1. +1 −12 src/core/auth/qgsauthmanager.cpp
@@ -2756,18 +2756,7 @@ bool QgsAuthManager::rebuildTrustedCaCertsCache()

const QByteArray QgsAuthManager::getTrustedCaCertsPemText()
{
QByteArray capem;
const QList<QSslCertificate> certs( getTrustedCaCertsCache() );
if ( !certs.isEmpty() )
{
QStringList certslist;
for ( const auto &cert : certs )
{
certslist << cert.toPem();
}
capem = certslist.join( QStringLiteral( "\n" ) ).toLatin1(); //+ "\n";
}
return capem;
return QgsAuthCertUtils::certsToPemText( getTrustedCaCertsCache() );
}

bool QgsAuthManager::passwordHelperSync()

0 comments on commit 0a2f754

Please sign in to comment.
You can’t perform that action at this time.