Skip to content

Commit 3f22f28

Browse files
metsmaiannaska
authored andcommitted
Don't register certificates to store (#398)
IB-5637 Signed-off-by: Raul Metsma <[email protected]>
1 parent 2bf4ccc commit 3f22f28

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

client/MainWindow.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,25 +1578,6 @@ void MainWindow::showIdCardAlerts(const QSmartCardData& t)
15781578
qApp->showWarning( tr("Your ID-card certificates cannot be renewed starting from 01.07.2017."));
15791579
}
15801580
qApp->smartcard()->setProperty("lastcard", t.card());
1581-
1582-
#ifdef Q_OS_WIN
1583-
CertStore store;
1584-
if( !Settings().value( "Utility/showRegCert", false ).toBool() ||
1585-
(!store.find( t.authCert() ) || !store.find( t.signCert() )) &&
1586-
QMessageBox::question( this, tr( "Certificate store" ),
1587-
tr( "Certificate is not registered in the certificate store. Register now?" ),
1588-
QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes ) == QMessageBox::Yes )
1589-
{
1590-
QString personalCode = t.authCert().subjectInfo( "serialNumber" );
1591-
for( const SslCertificate &c: store.list())
1592-
{
1593-
if( c.subjectInfo( "serialNumber" ) == personalCode )
1594-
store.remove( c );
1595-
}
1596-
store.add( t.authCert(), t.card() );
1597-
store.add( t.signCert(), t.card() );
1598-
}
1599-
#endif
16001581
}
16011582

16021583
void MainWindow::showPinBlockedWarning(const QSmartCardData& t)

0 commit comments

Comments
 (0)