×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore
    Posts
    285

    CSecureSocket works on E61,E51,N95 but fails on N91

    Hi All,

    I have a Peculiar Problem I connect to Server which needs secure connection. It works perfectly on emulator and Devices like N95, E51,E61 all 3rd Edition Devices Except N91.

    In N91 it Hangs when i start the client Handshake, can anyone please help out??? I am stuck with this problem for quite a while

    Here is part of the code where it hangs:

    _LIT(KTLS,"TLS1.0");
    iTlsSocket = CSecureSocket::NewL(iSocket, KTLS());
    #ifdef EKA2
    iTlsSocket->SetOpt(KSoSSLDomainName,KSolInetSSL,iServerName);
    #endif
    iTlsSocket->FlushSessionCache();
    iTlsSocket->StartClientHandshake(iStatus);
    iEngineState = EConnected;
    SetActive();


    Regards
    Shashi Kiran G M

  2. #2
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore
    Posts
    285

    Re: CSecureSocket works on E61,E51,N95 but fails on N91

    I solved the problem. It Had Nothing to do with the code.

    The Access Point Settings on my N91 were as follows
    Access Points->Connection-name->Authentication : normal

    It should ve been like this instead
    Access Points->Connection-name->Authentication : secure

    Note this only happens for only a few servers , not all
    I wonder if this scenario can be detected for SSL connections.
    However this does make an interesting case , any of you folks encountered this before..

    Regards
    Shashi Kiran G M

  3. #3
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore
    Posts
    285

    Re: CSecureSocket works on E61,E51,N95 but fails on N91

    we lose Connection if Authentication = normal in N95 E51 etc but not on N91.It Just Hangs..

    N91 has lot of issues.. downright crappy.. worst among the 3rd Edition lot

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    28

    Re: CSecureSocket works on E61,E51,N95 but fails on N91

    void CSecEngine::MakeSecureConnectionL()
    {
    TInt Len = iStatus.Int();
    User::LeaveIfError(iStatus.Int()); // errors caught by RunError()

    // Construct the TLS socket, to use the TLS1.0 protocol.
    // Specifying SSL3.0 would also use the same implementation
    iConsole->Printf(KSecureConnnectingMessage);
    _LIT(KTLS1,"TLS1.0");
    iTlsSocket = CSecureSocket::NewL( iSocket, KTLS1 );

    // Set any options before the handshake starts

    // Clears any previous options
    iTlsSocket->FlushSessionCache();

    /* Note: You could here set the available ciphers with code such as the following:
    TBuf8<2> buf;
    buf.SetLength(2);
    buf[0]=0; buf[1]=10;
    iTlsSocket->SetAvailableCipherSuites( buf ); */
    // HBufC8 *servename8 = HBufC8::NewLC(iServerName.Length());
    // servename8->Des().Copy(iServerName);
    TInt err = iTlsSocket->SetOpt(KSoSSLDomainName, KSolInetSSL, 1);//servename8->Des());
    // CleanupStack::PopAndDestroy(servename8);
    //iTlsSocket->SetOpt(KSoSSLDomainName,KSolInetSSL,serverName);
    // start the handshake
    iTlsSocket->StartClientHandshake( iStatus );

    iRunState = ESecureConnected;
    SetActive();
    }


    this is sample code.. tel me how to use
    SetOpt(KSoSSLDomainName,KSolInetSSL,serverName);

    servername-> ????????????
    can u correct this code and send me please


    reply
    Vijay

    vijayaraghavan@inxsasia.com

Similar Threads

  1. CSecureSocket + TLS fails on Symbian 9.1 :(
    By mike.b in forum Symbian Networking & Messaging (Closed)
    Replies: 9
    Last Post: 2008-08-26, 16:25
  2. n91 bluetooth problem
    By digitalmonkey in forum Bluetooth Technology
    Replies: 1
    Last Post: 2007-02-23, 15:08
  3. Ecom Library Works on Emulator but fails at Device
    By ashfaq.ghori in forum Symbian
    Replies: 4
    Last Post: 2006-09-26, 06:13
  4. SVG image displayed incorrectly in grid view on N91
    By GuusDavidson in forum Symbian
    Replies: 0
    Last Post: 2006-06-30, 06:37
  5. Replies: 1
    Last Post: 2002-05-16, 19:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×