Skip to content

Commit

Permalink
Don't register certificates to store (#398)
Browse files Browse the repository at this point in the history
IB-5637

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored and iannaska committed Nov 28, 2018
1 parent 2bf4ccc commit 3f22f28
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions client/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1578,25 +1578,6 @@ void MainWindow::showIdCardAlerts(const QSmartCardData& t)
qApp->showWarning( tr("Your ID-card certificates cannot be renewed starting from 01.07.2017."));
}
qApp->smartcard()->setProperty("lastcard", t.card());

#ifdef Q_OS_WIN
CertStore store;
if( !Settings().value( "Utility/showRegCert", false ).toBool() ||
(!store.find( t.authCert() ) || !store.find( t.signCert() )) &&
QMessageBox::question( this, tr( "Certificate store" ),
tr( "Certificate is not registered in the certificate store. Register now?" ),
QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes ) == QMessageBox::Yes )
{
QString personalCode = t.authCert().subjectInfo( "serialNumber" );
for( const SslCertificate &c: store.list())
{
if( c.subjectInfo( "serialNumber" ) == personalCode )
store.remove( c );
}
store.add( t.authCert(), t.card() );
store.add( t.signCert(), t.card() );
}
#endif
}

void MainWindow::showPinBlockedWarning(const QSmartCardData& t)
Expand Down

0 comments on commit 3f22f28

Please sign in to comment.