SSL/TLS sockets

Andreas Hartmetz ahartmetz at gmail.com
Sun Oct 14 22:41:23 BST 2007


Hi,

I just wanted to tell you that I'm working on getting functional SSL support 
in a class called KTcpSocket that mimics QTcpSocket's and QSslSocket's API, 
but with startTls() and common KDE settings support and the possibility to 
add Fancy Stuff as needed. KSocketFactory will probably become obsolete.
KTcpSocket is supposed to be an all-in-one stream (not datagram) socket where 
encryption is just a setting.
Note that the scope of this undertaking is larger than having SSL work again 
(only) in KIO, for hopefully little extra effort.
The class does not inherit QAbstractSocket, only QIODevice. Thiago suggested 
the basic design and implemented a skeleton of some hundred lines to give me 
a quick start, let's see how far I can get. Quite far I hope.
The backend aka Engine will be theoretically (and hopefully in practice, too) 
pluggable. At the moment I'm doing an engine using QCA::TLS. Justin Karneges, 
QCA main developer, told me that he is planning to maintain it for quite some 
time, and it has the features already implemented in a rather easy to use 
way.

Cheers,
Andreas




More information about the kde-core-devel mailing list