Friday, October 16, 2009

Secur32 issue in wine while running Google talk

I was trying to run google talk using wine since past two years but got not much success.
If you refer my previous post here you will be able to run gtalk with wine with the text and every thing.
you can see, Settings|Help is visible and click-able. Add and View is also working perfect.
But as soon as I get connected the connection automatically closes just after few seconds.
when I tried to run the same command using gnome-terminal It surprised me with the errors. It was schannel and secur32 the two dlls which were playing the bad game with wine.
Well if you don't know what is secur32 and schannel lemme tell you, both are dll( dynamic link library).

Secur32.dll mainly contains the Secure Service Provider Interface, SSPI. SSPI allows developers to use different providers of secure socket-like services. In SSPI, a Secure Service Provider (SSP) is loaded by the system and queried for the capabilities it supports. You (the client developer) can choose which provider you want by name. Normal SSPs (I don't know a better name for them) are loaded by secur32.dll in the context of the calling process.

As said by wine wiki Secur32 is not fully functional yet under wine this is what wines ToDO for secur32 say's




  • Wine's implementation of schannel loads GnuTLS, and is barely functional.
  • TheS CHANNEL_CRED passed to AcquireCredentialsHandle is ignored
  • The target name passed to InitializeSecurityContext is ignored, and should be compared against the certificate it receives
  • Server connections aren't supported
  • Most attributes in QueryContextAttributes aren't supported
  • In short, it shouldn't be used for anything security-sensitive yet. Still, for people who "just want their applications to work," it does support SSL3 and TLS connections.

One confusing thing is that winhttp and wininet don't use schannel, and instead use OpenSSL directly to implement SSL and TLS. This can lead to confusing differences in certificate verification between applications. Ideally, schannel would use crypt32 for certificate chain verification, and winhttp and wininet would use schannel.


and the error is also showing the problem:
this is what my console says to me on running google talk with wine.
puneet@puneet-laptop:~$ env WINEPREFIX="/home/puneet/.wine" wine "C:\Program Files\Google\Google Talk\googletalk.exe"

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
err:ntlm:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path.

err:ntlm:SECUR32_initNTLMSP Usually, you can find it in the winbind package of your distribution.

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,3,(nil),0,(nil)) - stub!

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)

fixme:msimtf:DllGetClassObject ({50d5107a-d278-4871-8989-f4ceaaf59cfc} {00000001-0000-0000-c000-000000000046} 0x32c4b4)

err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111

err:ole:CoGetClassObject no class object {50d5107a-d278-4871-8989-f4ceaaf59cfc} could be created for context 0x401

fixme:keyboard:RegisterHotKey (0x2004e,0,0x00000008,27): stub

fixme:winhttp:WinHttpGetIEProxyConfigForCurrentUser returning no proxy used

err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not registered

err:ole:CoGetClassObject no class object {6c736db1-bd94-11d0-8a23-00aa00b58e10} could be created for context 0x1

err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not

registered

err:ole:CoGetClassObject no class object {6c736db1-bd94-11d0-8a23-00aa00b58e10} could be created for context 0x1

fixme:secur32:schan_InitializeSecurityContextW Using hardcoded "NORMAL" priority

fixme:secur32:schan_InitializeSecurityContextW Using hardcoded "NORMAL" priority

fixme:secur32:schan_InitializeSecurityContextW Using hardcoded "NORMAL" priority

GNUTLS ERROR: A record packet with illegal version was received.

err:secur32:schan_DecryptMessage Returning SEC_E_INTERNAL_ERROR

fixme:winhttp:WinHttpGetIEProxyConfigForCurrentUser returning no proxy used

fixme:secur32:schan_InitializeSecurityContextW Using hardcoded "NORMAL" priority

when I tried to override it with windows dll Google talk was unable to connect.
Secur32 is used by many other applications also.
Also I believe that many people out there desperately want Google talk to run under Linux.I really don't know why Google has not implemented gtalk using openssl. then porting it to wine would have been much easier. Well I really wish that now wine Community look forward to it and try to resolve the problem as soon as possible.I am also waiting for Google talk for Linux. but I don't think that is coming any time soon.Any ways now pidgin have audio and video calling support for xmpp(jabber) the only fascinating thing left is the look and feel of Google talk.
Beware Google talk for Windows.

1 comment:

  1. found a patch or workaround for this behavior yet? Trying to get a .net application running in wine to succesfully connect via TLS and failing miserably.

    ReplyDelete