KIO
Go to the documentation of this file.
24 #include <ksslconfig.h>
30 #include <netinet/in.h>
31 #include <sys/socket.h>
32 #define crypt _openssl_crypt
33 #include <openssl/ssl.h>
34 #include <openssl/x509.h>
35 #include <openssl/x509v3.h>
36 #include <openssl/pem.h>
37 #include <openssl/rand.h>
49 #include <QtNetwork/QAbstractSocket>
54 #warning "kssl.cc contains temporary functions! Clean up"
55 #warning "kssl.cc needs to be ported to QSslSocket"
58 #define sk_dup d->kossl->sk_dup
82 m_bAutoReconfig =
true;
104 rc = d->kossl->RAND_egd(m_cfg->
getEGDPath().toLatin1().constData());
106 kDebug(7029) <<
"KSSL: Error seeding PRNG with the EGD.";
107 else kDebug(7029) <<
"KSSL: PRNG was seeded with " << rc
108 <<
" bytes from the EGD." << endl;
110 rc = d->kossl->RAND_load_file(m_cfg->
getEGDPath().toLatin1().constData(), -1);
112 kDebug(7029) <<
"KSSL: Error seeding PRNG with the entropy file.";
113 else kDebug(7029) <<
"KSSL: PRNG was seeded with " << rc
114 <<
" bytes from the entropy file." << endl;
123 kDebug(7029) <<
"KSSL initialize";
132 d->m_meth = d->kossl->SSLv23_client_method();
133 d->m_ctx = d->kossl->SSL_CTX_new(d->m_meth);
134 if (d->m_ctx == 0L) {
140 kDebug(7029) <<
"Cipher list: " << clist;
141 if (!clist.isEmpty())
142 d->kossl->SSL_CTX_set_cipher_list(d->m_ctx, const_cast<char *>(clist.toLatin1().constData()));
159 d->kossl->SSL_shutdown(d->m_ssl);
160 d->kossl->SSL_free(d->m_ssl);
164 d->kossl->SSL_CTX_free(d->m_ctx);
166 d->kossl->RAND_write_file(m_cfg->
getEGDPath().toLatin1().constData());
189 m_bAutoReconfig = ar;
206 bool KSSL::m_bSSLWorks =
true;
208 bool KSSL::m_bSSLWorks =
false;
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Sep 23 2014 09:58:52 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.