Wine with Secure Computing SofToken II

Questions about Wine on Linux
Locked
highland7
Level 1
Level 1
Posts: 6
Joined: Sun Jun 17, 2012 5:19 am

Wine with Secure Computing SofToken II

Post by highland7 »

Hello

I've tried to move from my Windows7 x86_64 to my Gentoo (x86_64) SofTokenII application.

What i did:
1. moved Program Files (x86)/Secure Computing/SofToken-II directory
2. added to registry (wine regedit file.reg):
[HKEY_LOCAL_MACHINE\SOFTWARE\Secure Computing]

[HKEY_LOCAL_MACHINE\SOFTWARE\Secure Computing\Agent]

[HKEY_LOCAL_MACHINE\SOFTWARE\Secure Computing\Agent\myuser]
"OKAuth"="Successful"
"StartAction"=""
"PWPrompt"="Password:"
"ModeFlag"=dword:00000001
"OKAction"=""
"MSPrompt"="Password:"
"Path"=""
"CHValue"="Challenge:"
"IDPrompt"="ID:"
ca
[HKEY_LOCAL_MACHINE\SOFTWARE\Secure Computing\SofToken II]

[HKEY_LOCAL_MACHINE\SOFTWARE\Secure Computing\SofToken II\2.1.1]

i've also added several others registry entries related to Softoken (found them on my windows7).

3. When i try to "wine SoftTokenII.exe" notking happens, i can not find any errors, tried to debug with argument: WINEDEBUG=warn+all but do not receive anything.
Tried to configure this application as "windows7" and "windowsxp"
Some other applications are working correctly.

What can i do ? How can i deubg this problem ?
I've seen that SofToken has "platinum" - so somebody has tested it.

Thanx
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine with Secure Computing SofToken II

Post by dimesio »

highland7 wrote: I've tried to move from my Windows7 x86_64 to my Gentoo (x86_64) SofTokenII application.

What i did:
1. moved Program Files (x86)/Secure Computing/SofToken-II directory
2. added to registry (wine regedit file.reg):
You need to install the app in Wine, which is what the person who gave it a platinum rating did. Copying from a Windows install is not supported.

FYI, the platinum rating is for a very old version of Wine, and it would have been 32 bit, as 64 bit Wine was not available then. So it's possible the 64 bit version doesn't work, and you will need to file a bug for it. But in order to do that you have to install it properly first.
highland7
Level 1
Level 1
Posts: 6
Joined: Sun Jun 17, 2012 5:19 am

Post by highland7 »

ok, i will have access to application and stinit file tomorrow, than i will test and reply.
Thanx!
highland7
Level 1
Level 1
Posts: 6
Joined: Sun Jun 17, 2012 5:19 am

Post by highland7 »

I've installed it using msi, it has installed correctly, but Softoken=II.exe does not launch : ( (SWDialer.exe launches)
highland7
Level 1
Level 1
Posts: 6
Joined: Sun Jun 17, 2012 5:19 am

Post by highland7 »

One more think: i just use wine, not wine64,
and msi file was 32bit.
So - it does not work for 32bit.
How can i debug it ?
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

highland7 wrote:One more think: i just use wine, not wine64,
and msi file was 32bit.
So - it does not work for 32bit.
How can i debug it ?
Post terminal output.
highland7
Level 1
Level 1
Posts: 6
Joined: Sun Jun 17, 2012 5:19 am

Post by highland7 »

Launching "wine SofToken-II.exe" does not return anything, debuggers shows more:

Code: Select all

mgarcarz@pluton ~ $ cd .wine/drive_c/Program\ Files/Secure\ Computing/SofToken-II/
mgarcarz@pluton ~/.wine/drive_c/Program Files/Secure Computing/SofToken-II $ ls -la
total 796
drwxr-xr-x 3 mgarcarz mgarcarz   4096 Jun 18 18:11 .
drwxr-xr-x 3 mgarcarz mgarcarz   4096 Jun 18 18:11 ..
-rwxr-xr-x 1 mgarcarz mgarcarz 118482 Jun  6  2006 Clearstinit.exe
-rwxr-xr-x 1 mgarcarz mgarcarz 319488 Aug 14  2002 SWDialer.exe
-rwxr-xr-x 1 mgarcarz mgarcarz 364544 Aug 14  2002 SofToken-II.exe
drwxr-xr-x 2 mgarcarz mgarcarz   4096 Jun 18 18:11 mgarcarz
mgarcarz@pluton ~/.wine/drive_c/Program Files/Secure Computing/SofToken-II $ wine SofToken-II.exe 
mgarcarz@pluton ~/.wine/drive_c/Program Files/Secure Computing/SofToken-II $ winedbg SofToken-II.exe 
WineDbg starting on pid 0018
First chance exception: page fault on write access to 0x00360000 in 32-bit code (0x7ebe95eb).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7ebe95eb ESP:0033f810 EBP:0033f888 EFLAGS:00010202(  R- --  I   - - - )
 EAX:80808081 EBX:7ec88ff4 ECX:00000000 EDX:00000067
 ESI:000000ac EDI:00360000
Stack dump:
0x0033f810:  0000031c 00000000 00000000 00000010
0x0033f820:  00000010 00000000 00000000 00000010
0x0033f830:  00000010 7e9b0d9c 00125558 00000000
0x0033f840:  00cc0020 00000000 00330001 7eb40001
0x0033f850:  0033f868 0000031c 00125dc8 00000328
0x0033f860:  00000000 00000000 00000010 00000010
Backtrace:
=>0 0x7ebe95eb in user32 (+0x195eb) (0x0033f888)
  1 0x7ebe9dd8 in user32 (+0x19dd7) (0x0033f908)
  2 0x7ebe9f3c in user32 (+0x19f3b) (0x0033f958)
  3 0x7ebea348 CreateIconFromResourceEx+0xd7() in user32 (0x0033f9a8)
  4 0x7ebea753 in user32 (+0x1a752) (0x0033fa78)
  5 0x7ebec998 LoadImageW+0x1b7() in user32 (0x0033fb88)
  6 0x7ebed4c6 LoadImageA+0x1a5() in user32 (0x0033fc78)
  7 0x7e8c8646 SIC_Initialize+0x1b5() in shell32 (0x0033fcc8)
  8 0x7e8d4462 in shell32 (+0x34461) (0x0033fd08)
  9 0x7ef90c85 call_dll_entry_point+0x14() in ntdll (0x0033fd28)
  10 0x7ef938c7 in ntdll (+0x338c6) (0x0033fe68)
  11 0x7ef93c78 in ntdll (+0x33c77) (0x0033fec8)
  12 0x7ef93c4a in ntdll (+0x33c49) (0x0033ff28)                                                                                                                                                     
  13 0x7ef93c4a in ntdll (+0x33c49) (0x0033ff88)                                                                                                                                                     
  14 0x7ef93e83 in ntdll (+0x33e82) (0x0033ffe8)                                                                                                                                                     
0x7ebe95eb: movb        %dl,0x0(%edi,%ecx,4)                                                                                                                                                         
Wine-dbg>
Thanx
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

File a bug.
highland7
Level 1
Level 1
Posts: 6
Joined: Sun Jun 17, 2012 5:19 am

Post by highland7 »

Locked