Beispiel #1
0
void getKey::cancel( const QString& token )
{
	void * handle = zuluCryptPluginManagerOpenConnection( token.toLatin1().constData() ) ;
	if( handle ){
		zuluCryptPluginManagerCloseConnection( handle ) ;
	}
}
Beispiel #2
0
void getKey::run()
{
	QByteArray key = m_function( m_exe,m_keyFile,m_key ) ;

	if( key.isEmpty() ){
		m_status = getKey::wrongKey ;
	}else{
		void * handle = zuluCryptPluginManagerOpenConnection( m_token.toLatin1().constData() ) ;

		if( handle ){

			zuluCryptPluginManagerSendKey( handle,key.constData(),key.size() ) ;
			zuluCryptPluginManagerCloseConnection( handle ) ;

			m_status = getKey::complete ;
		}else{
			m_status = getKey::wrongKey ;
		}
	}
}
Beispiel #3
0
MainWindow::~MainWindow()
{
	zuluCryptPluginManagerCloseConnection( m_handle ) ;
	delete m_ui ;
}