Modulo speciale autonomo per firma digitale
git-svn-id: svn://10.65.10.50/branches/R_10_00@22958 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									3e52722b14
								
							
						
					
					
						commit
						15ceb346c3
					
				@ -3,6 +3,7 @@
 | 
				
			|||||||
#include "esigner.h"
 | 
					#include "esigner.h"
 | 
				
			||||||
#include "gtDialog.h"
 | 
					#include "gtDialog.h"
 | 
				
			||||||
#include "gtSSA.h"
 | 
					#include "gtSSA.h"
 | 
				
			||||||
 | 
					#include "MD5Checksum.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <wx/dialup.h>
 | 
					#include <wx/dialup.h>
 | 
				
			||||||
#include <wx/dir.h>
 | 
					#include <wx/dir.h>
 | 
				
			||||||
@ -655,11 +656,15 @@ IMPLEMENT_APP(TESigner_app)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
bool TESigner_app::OnInit()
 | 
					bool TESigner_app::OnInit()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  SetAppName("Firma digitale v11.4");
 | 
					  SetAppName("Firma digitale v11.7");
 | 
				
			||||||
  gtInitArtProvider();
 | 
					  gtInitArtProvider();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (SSA_Login() != 0)
 | 
					  if (SSA_Login() != 0)
 | 
				
			||||||
    /* return */ gtError("Postazione non abilitata al modulo Firma Digitale");
 | 
					    return gtError("Postazione non abilitata al modulo Firma Digitale");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  const wxString strLogoMD5 = wxMD5Checksum::GetMD5(wxT("fd0logo.png"));
 | 
				
			||||||
 | 
					  if (strLogoMD5 != "7f4c28a0ef5f575e0e13b32ab137e43c")
 | 
				
			||||||
 | 
					    return gtError("Impossibile trovare un logo valido");
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  const bool done = __TheSigner.Init(true);
 | 
					  const bool done = __TheSigner.Init(true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -318,7 +318,7 @@ bool gtBaseDlg::Init()
 | 
				
			|||||||
    pMainSizer->Add(pSplitBox, 1, wxGROW);
 | 
					    pMainSizer->Add(pSplitBox, 1, wxGROW);
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
    m_rgbTheme = *wxLIGHT_GREY;
 | 
					    m_rgbTheme = *wxLIGHT_GREY;
 | 
				
			||||||
    const wxString strLogo = wxT("logo.png"); 
 | 
					    const wxString strLogo = wxT("fd0logo.png"); 
 | 
				
			||||||
    if (wxFileName::FileExists(strLogo))
 | 
					    if (wxFileName::FileExists(strLogo))
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      wxImage img(strLogo, wxBITMAP_TYPE_PNG); 
 | 
					      wxImage img(strLogo, wxBITMAP_TYPE_PNG); 
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										13
									
								
								fd/gtSSA.cpp
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								fd/gtSSA.cpp
									
									
									
									
									
								
							@ -45,10 +45,7 @@ int SSA_dongle::Login(const char* product, const char* module)
 | 
				
			|||||||
  {
 | 
					  {
 | 
				
			||||||
    m_strProduct = product;
 | 
					    m_strProduct = product;
 | 
				
			||||||
    m_nSerial = SSA_NumeroSerie(product);
 | 
					    m_nSerial = SSA_NumeroSerie(product);
 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (err == 0)
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    wxString m = module; m.MakeLower();
 | 
					    wxString m = module; m.MakeLower();
 | 
				
			||||||
    err = SSA_ApriModulo(UserID(), m);
 | 
					    err = SSA_ApriModulo(UserID(), m);
 | 
				
			||||||
    if (err == SSA_MOD_NOTFOUND)
 | 
					    if (err == SSA_MOD_NOTFOUND)
 | 
				
			||||||
@ -57,7 +54,7 @@ int SSA_dongle::Login(const char* product, const char* module)
 | 
				
			|||||||
      err = SSA_ApriModulo(UserID(), m);
 | 
					      err = SSA_ApriModulo(UserID(), m);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef _NDEBUG
 | 
					#ifndef NDEBUG
 | 
				
			||||||
    if (err != 0)
 | 
					    if (err != 0)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      gtWarning("Versione DEMO");
 | 
					      gtWarning("Versione DEMO");
 | 
				
			||||||
@ -74,9 +71,13 @@ int SSA_dongle::Login(const char* product, const char* module)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
int SSA_dongle::Login()
 | 
					int SSA_dongle::Login()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  int err = Login("FIRMA DIGITALE", "fd");
 | 
					  int err = Login("FATTPA", "fi");
 | 
				
			||||||
  if (err != 0 && wxFileName::FileExists("campo.ini"))
 | 
					  if (err != 0 && wxFileName::FileExists("campo.ini"))
 | 
				
			||||||
    err =  Login("CAMPO", "pa") || Login("CAMPO", "fd");
 | 
					  {
 | 
				
			||||||
 | 
					    err = Login("CAMPO", "fd");
 | 
				
			||||||
 | 
					    if (err != 0)
 | 
				
			||||||
 | 
					      err = Login("CAMPO", "pa");
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
  return err;
 | 
					  return err;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user