×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    66

    CSecureSocket example

    Hello Friends,


    i am getting issue during handshaking with secure server. I am working with this code http://www.developer.nokia.com/Commu...ection_process

    I am getting error: Thread has crashed: Thread 0x723 has panicked. Category: E32USER-CBase; Reason: 40

    I just want to read certificate of secure server..pls help me ..........

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,569

    Re: CSecureSocket example

    You should check E32USER-CBase 40 in the SDK Help (or http://library.developer.nokia.com) as a first approach and review your part of the implementation accordingly.

    A side-note for CSecureSocket things: http://www.developer.nokia.com/Commu..._(Known_Issue) - you may find it useful, but this particular panic has other reasons.

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    66

    Re: CSecureSocket example

    Thanks for your quick reply..., now i do not getting any error . Could you pls tell me how can i read SerialNo() of CX509Certificate .

    Like :
    const CX509Certificate *servCert = iTlsSocket->ServerCert();
    servCert->SerialNumber();

    I am facing problem during extracting serial no ..i am not getting in which object type i will recieve SerialNumber ?????

  4. #4
    Registered User
    Join Date
    Oct 2010
    Posts
    66

    Re: CSecureSocket example

    i get one discussion also regarding serialno http://www.developer.nokia.com/Commu...ore#post613691 in which the given resolution is

    SignedObject::ExternalizeL function

    But i am not getting exactly...

  5. #5
    Registered User
    Join Date
    Oct 2010
    Posts
    66

    Re: CSecureSocket example

    I am trying like that

    TPtrC8 serialNo(servCert->SerialNumber());

    But i am not able to verify that, is it correct or not, how can i convert TPtrC8 to Qstring or int ??????????????

  6. #6
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: CSecureSocket example

    Quote Originally Posted by Yogesghpatel View Post

    how can i convert TPtrC8 to Qstring or int ??????????????
    you might want to go through this : http://library.developer.nokia.com/i...D662B45B6.html

  7. #7
    Registered User
    Join Date
    Nov 2010
    Posts
    40

    Re: CSecureSocket example

    You can check this,hope it might be helpful
    QString TBuf2QString(const TDesC8 &buf)
    {
    return QString::fromLocal8Bit(reinterpret_cast<const char *>(buf.Ptr()),buf.Length());
    }
    TBuf<16> foo(_L("sometext"));
    QString bar = TBuf2QString(foo);

  8. #8
    Registered User
    Join Date
    Oct 2010
    Posts
    66

    Re: CSecureSocket example

    Thanks a lot..............

Similar Threads

  1. SSH Client Using CSecureSocket
    By paijwar in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-07-05, 10:14
  2. CSecureSocket App Gives KErrNotReady
    By neomax21 in forum Symbian
    Replies: 1
    Last Post: 2009-04-28, 10:17
  3. CSecureSocket via proxy
    By ivey in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-07-22, 12:44
  4. CSecureSocket KErrSSLAlertInternalError !!!
    By timatima in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-04-27, 14:42
  5. CSecureSocket Bug ???
    By timatima in forum Symbian
    Replies: 1
    Last Post: 2007-01-08, 09:27

Posting Permissions

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