Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[auth] Remove dependency on SSL cert utils from auth config class
  • Loading branch information
dakcarto committed Nov 20, 2016
1 parent 9bb3235 commit a510516
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/auth/qgsauthconfig.cpp
Expand Up @@ -20,10 +20,9 @@

#include <QFile>
#include <QObject>
#include <QCryptographicHash>
#include <QUrl>

#include "qgsauthcertutils.h"


//////////////////////////////////////////////
// QgsAuthMethodConfig
Expand Down Expand Up @@ -302,7 +301,7 @@ const QString QgsPkiBundle::certId() const
{
return QString::null;
}
return QgsAuthCertUtils::shaHexForCert( mCert );
return QString( mCert.digest( QCryptographicHash::Sha1 ).toHex() );
}

void QgsPkiBundle::setClientCert( const QSslCertificate &cert )
Expand Down

0 comments on commit a510516

Please sign in to comment.