Skip to content
Permalink
Browse files
Fix unreported bug with custom ssl options
The unsupported protocols have been removed from the
name method but they were still in the combo (with empty
labels).
  • Loading branch information
elpaso committed May 28, 2021
1 parent c29288f commit 9e704bde08d6daa84bb0e20eae2f6eb877e5d2e9
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/auth/qgsauthsslconfigwidget.cpp
@@ -120,14 +120,18 @@ void QgsAuthSslConfigWidget::setUpSslConfigTree()
mProtocolCmbBx = new QComboBox( treeSslConfig );
mProtocolCmbBx->addItem( QgsAuthCertUtils::getSslProtocolName( QSsl::SecureProtocols ),
static_cast<int>( QSsl::SecureProtocols ) );
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
mProtocolCmbBx->addItem( QgsAuthCertUtils::getSslProtocolName( QSsl::TlsV1SslV3 ),
static_cast<int>( QSsl::TlsV1SslV3 ) );
#endif
mProtocolCmbBx->addItem( QgsAuthCertUtils::getSslProtocolName( QSsl::TlsV1_0 ),
static_cast<int>( QSsl::TlsV1_0 ) );
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
mProtocolCmbBx->addItem( QgsAuthCertUtils::getSslProtocolName( QSsl::SslV3 ),
static_cast<int>( QSsl::SslV3 ) );
mProtocolCmbBx->addItem( QgsAuthCertUtils::getSslProtocolName( QSsl::SslV2 ),
static_cast<int>( QSsl::SslV2 ) );
#endif
mProtocolCmbBx->setMaximumWidth( 300 );
mProtocolCmbBx->setCurrentIndex( 0 );
QTreeWidgetItem *protocolitem = new QTreeWidgetItem(

0 comments on commit 9e704bd

Please sign in to comment.