Lines 364-375
Link Here
|
364 |
} |
364 |
} |
365 |
|
365 |
|
366 |
// FIXME find a test server and test that this works |
366 |
// FIXME find a test server and test that this works |
367 |
// TODO ask the system whether SSL is available |
367 |
if (useTLSIfAvailable && m_supportsTLS && QSslSocket::supportsSsl()) { |
368 |
if (useTLSIfAvailable && QSslSocket::supportsSsl()) { |
|
|
369 |
sendData("STARTTLS"); |
368 |
sendData("STARTTLS"); |
370 |
if (operationSuccessful()) { |
369 |
if (operationSuccessful()) { |
371 |
ksDebug << "TLS has been accepted. Starting TLS..." << endl |
370 |
ksDebug << "TLS has been accepted. Starting TLS..." << endl |
372 |
<< "WARNING this is untested and may fail."; |
371 |
<< "WARNING this is untested and may fail."; |
373 |
if (startSsl()) { |
372 |
if (startSsl()) { |
374 |
ksDebug << "TLS enabled successfully." << endl; |
373 |
ksDebug << "TLS enabled successfully." << endl; |
375 |
// reparse capabilities: |
374 |
// reparse capabilities: |