21 #include "ksslsession.h"
30 KSSLSession::KSSLSession() : _session(0L) {
48 SSL_SESSION *session =
static_cast<SSL_SESSION*
>(_session);
50 unsigned char *csess =
new unsigned char[slen];
51 unsigned char *p = csess;
55 return TQString::null;
59 qba.duplicate((
const char*)csess, slen);
61 rc = KCodecs::base64Encode(qba);
70 TQByteArray qba, qbb = s.local8Bit().copy();
71 KCodecs::base64Decode(qbb, qba);
72 unsigned char *qbap =
reinterpret_cast<unsigned char *
>(qba.data());
73 SSL_SESSION *ss = KOSSL::self()->d2i_SSL_SESSION(0L, &qbap, qba.size());
76 session->_session = ss;
static KOpenSSLProxy * self()
Return an instance of class KOpenSSLProxy * You cannot delete this object.
KDE SSL Session Information.
static KSSLSession * fromString(const TQString &s)
Create as session ID object from a base64 encoded string.
~KSSLSession()
Destroy this instance.
TQString toString() const
Convert to a base64 encoded string (so it can be copied safely)