Skip to content
Permalink
Browse files

[auth] Remove Diffie Hellman from validated keys

Because Qt does not support DH
  • Loading branch information
elpaso committed Oct 26, 2017
1 parent 89166a0 commit ffb29035c7e972174138ceebabbb5e042595e909
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/core/auth/qgsauthcertutils.cpp
@@ -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 )
{

0 comments on commit ffb2903

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