diff -r 5ee1d9ce5878 -r 337070b4fa18 applayerpluginsandutils/httptransportplugins/httptransporthandler/csocketwriter.cpp --- a/applayerpluginsandutils/httptransportplugins/httptransporthandler/csocketwriter.cpp Fri Feb 19 23:50:57 2010 +0200 +++ b/applayerpluginsandutils/httptransportplugins/httptransporthandler/csocketwriter.cpp Fri Mar 12 15:45:46 2010 +0200 @@ -353,7 +353,16 @@ { // Start the secure handshake iState = ESecureHandshakeComplete; - iSocket.UpgradeToSecureL(iStatus, iHostName); + _LIT(KTxtTls, "tls1.0"); + _LIT(KTxtSsl,"ssl3.0"); + if (!iObserver->SecureRetry()) + { + iSocket.UpgradeToSecureL(iStatus, iHostName,KTxtTls()); //first negotiate with latest version of TLS + } + else + { + iSocket.UpgradeToSecureL(iStatus, iHostName,KTxtSsl()); //now try old ssl version + } SetActive(); } break; case ESecureHandshakeComplete: