diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kio/kssl/ksslsession.cc | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/kssl/ksslsession.cc')
-rw-r--r-- | kio/kssl/ksslsession.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kio/kssl/ksslsession.cc b/kio/kssl/ksslsession.cc index 28cfe0202..3c80233f1 100644 --- a/kio/kssl/ksslsession.cc +++ b/kio/kssl/ksslsession.cc @@ -41,10 +41,10 @@ KSSLSession::~KSSLSession() { } -QString KSSLSession::toString() const { -QString rc; +TQString KSSLSession::toString() const { +TQString rc; #ifdef KSSL_HAVE_SSL -QByteArray qba; +TQByteArray qba; SSL_SESSION *session = static_cast<SSL_SESSION*>(_session); unsigned int slen = KOpenSSLProxy::self()->i2d_SSL_SESSION(session, 0L); unsigned char *csess = new unsigned char[slen]; @@ -52,7 +52,7 @@ unsigned char *p = csess; if (!KOpenSSLProxy::self()->i2d_SSL_SESSION(session, &p)) { delete[] csess; - return QString::null; + return TQString::null; } // encode it into a QString @@ -64,10 +64,10 @@ return rc; } -KSSLSession *KSSLSession::fromString(const QString& s) { +KSSLSession *KSSLSession::fromString(const TQString& s) { KSSLSession *session = 0L; #ifdef KSSL_HAVE_SSL -QByteArray qba, qbb = s.local8Bit().copy(); +TQByteArray qba, qbb = s.local8Bit().copy(); KCodecs::base64Decode(qbb, qba); unsigned char *qbap = reinterpret_cast<unsigned char *>(qba.data()); SSL_SESSION *ss = KOSSL::self()->d2i_SSL_SESSION(0L, &qbap, qba.size()); |