Debian wheezy'de QsslSocket kullanarak Qt 5.4.1'de bir sslclient ve sslserver oluşturdum. Programı çalıştırdığımda hiç çalışmıyorlar. Kodumu hata ayıkladıktan sonra QSslSocket
'dan yeni bir nesne oluşturmayı denediğimde, bu hatayı (cannot resolve SSLV2_client_method
) yapıcıda iade et.QSslSocket: SSLV2_client_method çözümlenemiyor
bu benim kod bloğu: Sorun paylaşılan kitaplık olarak openssl derlenerek çözdü
SSlClient::SSlClient(QObject *parent) : QObject(parent)
{
client = new QSslSocket(this);
client->setProtocol(QSsl::SslV3);
connect(client, SIGNAL(encrypted()), this, SLOT(startTransfer()));
connect(client, SIGNAL(encryptedBytesWritten(qint64)), this, SLOT(byteWritten()));
}
OpenSSL'yi sisteminize yüklediniz mi? – Nejat
Evet yükledim openssl 1.0.1 –
Hangi işletim sistemini kullanıyorsunuz? –