Skip to content

Commit

Permalink
[auth] Remove Diffie Hellman from validated keys
Browse files Browse the repository at this point in the history
Because Qt does not support DH
  • Loading branch information
elpaso committed Oct 26, 2017
1 parent 89166a0 commit ffb2903
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/core/auth/qgsauthcertutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1116,14 +1116,9 @@ QStringList QgsAuthCertUtils::validatePKIBundle( QgsPkiBundle &bundle, bool useI
{
keyValid = pubKey == QCA::DSAPublicKey( pvtKey.toDSA() );
}
// DH is probably not used anymore but the library supports it
else if ( keyValid && !( pubKey.toDH().isNull( ) || pvtKey.toDH().isNull( ) ) )
{
keyValid = pubKey == QCA::DHPublicKey( pvtKey.toDH() );
}
else
{
QgsDebugMsg( "Key is not DSA, RSA or DH: validation is not supported by Qt" );
QgsDebugMsg( "Key is not DSA, RSA: validation is not supported by QCA" );
}
if ( ! keyValid )
{
Expand Down

0 comments on commit ffb2903

Please sign in to comment.