예제 #1
0
void getKey::cancel( const QString& token )
{
	void * handle = zuluCryptPluginManagerOpenConnection( token.toLatin1().constData() ) ;
	if( handle ){
		zuluCryptPluginManagerCloseConnection( handle ) ;
	}
}
예제 #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 ;
		}
	}
}
예제 #3
0
void MainWindow::setToken( const QString& token )
{
	m_handle = zuluCryptPluginManagerOpenConnection( token.toLatin1().constData() ) ;
}
예제 #4
0
void MainWindow::setToken( char * const * e )
{
	m_handle = zuluCryptPluginManagerOpenConnection( *( e + 3 ) ) ;
}
void MainWindow::pbCancel()
{
	m_handle = zuluCryptPluginManagerOpenConnection( m_token.toLatin1().constData() ) ;
	QCoreApplication::exit( 1 ) ;
}
void MainWindow::setToken( char * const * e )
{
	m_token = *( e + 3 ) ;
	m_handle = zuluCryptPluginManagerOpenConnection( m_token.toLatin1().constData() ) ;
}