Hi again huh

I'm using Qt 4.3.4 and I'm tring to make secure connection to one server.
The server is wrote with other sockets library that support OpenSSL.
The server side is using .pam file (like apache) to secure the connection, the client side don't have anything, it just must connect to the server and establish a secure connection.
Ok so I create my Qt application with QSslSocket, I initalise it and I do connectToHostEncrypted("someip", port); and after that I'm waiting for waitForEncrypted() to return but something goes wrong, the signal disconnected() is directly called and the connection is closed, in the same time the server says that a secure connection is established but the client side (QSslSocket) directly close it...
I'm using the very simple QSslSocket examples from the documentation to make the test connection but no luck, I'm sure that the server dosn't close the connection because I had coded it myself, I coded and console client for it with the same library that the server is made and everything is fine, but with Qt I desided the use the QSslSocket for the GUI interface but it aways fail... Any ideas ?
If someone is interested the library that is coded the server is this one:
http://www.alhem.net/Sockets/

Regards,
The Storm