QtBase  v6.3.1
Functions | Variables
src_network_ssl_qsslsocket.cpp File Reference

Go to the source code of this file.

Functions

 connect (socket, SIGNAL(encrypted()), this, SLOT(ready()))
 
socket connectToHostEncrypted ("imap.example.com", 993)
 
socket connectToHostEncrypted ("http.example.com", 443)
 
 if (!socket.waitForEncrypted())
 
socket write ("GET / HTTP/1.0\r\n\r\n")
 
 while (socket.waitForReadyRead()) qDebug()<< socket.readAll().data()
 
connectsocket (encrypted()), receiver, SLOT(socketEncrypted())
 
socket connectToHostEncrypted ("imap", 993)
 [4] More...
 
socket write ("1 CAPABILITY\r\n")
 
socket setCiphers ("DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA")
 
 if (socket->waitForEncrypted(1000)) qDebug("Encrypted!")
 
QSslError error (QSslError::SelfSignedCertificate, cert.at(0))
 
expectedSslErrors append (error)
 
socket ignoreSslErrors (expectedSslErrors)
 
socket connectToHostEncrypted ("server.tld", 443)
 

Variables

QSslSocketsocket = new QSslSocket(this)
 [0] More...
 
QList< QSslCertificatecert = QSslCertificate::fromPath(QLatin1String("server-certificate.pem"))
 [5] More...
 
QList< QSslErrorexpectedSslErrors
 

Function Documentation

◆ append()

expectedSslErrors append ( error  )

◆ connect()

connect ( socket  ,
SIGNAL(encrypted())  ,
this  ,
SLOT(ready())   
)
Here is the caller graph for this function:

◆ connectToHostEncrypted() [1/4]

socket connectToHostEncrypted ( "http.example.com"  ,
443   
)

◆ connectToHostEncrypted() [2/4]

socket connectToHostEncrypted ( "imap"  ,
993   
)

[4]

[5]

◆ connectToHostEncrypted() [3/4]

socket connectToHostEncrypted ( "imap.example.com"  ,
993   
)
Here is the call graph for this function:

◆ connectToHostEncrypted() [4/4]

socket connectToHostEncrypted ( "server.tld"  ,
443   
)

◆ error()

QSslError error ( QSslError::SelfSignedCertificate  ,
cert.  at
)

◆ if() [1/2]

if ( !socket.  waitForEncrypted())

Definition at line 77 of file src_network_ssl_qsslsocket.cpp.

Here is the call graph for this function:

◆ if() [2/2]

if ( socket->  waitForEncrypted1000)

Definition at line 57 of file src_network_socket_qsctpsocket.cpp.

◆ ignoreSslErrors()

socket ignoreSslErrors ( expectedSslErrors  )

◆ setCiphers()

socket setCiphers ( "DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA"  )

◆ socket()

connect& socket ( encrypted()  )

◆ while()

while ( socket.  waitForReadyRead())

◆ write() [1/2]

socket write ( "1 CAPABILITY\r\n"  )

◆ write() [2/2]

socket write ( "GET / HTTP/1.0\r\n\r\n )

Variable Documentation

◆ cert

QList<QSslCertificate> cert = QSslCertificate::fromPath(QLatin1String("server-certificate.pem"))

[5]

[6]

Definition at line 110 of file src_network_ssl_qsslsocket.cpp.

◆ expectedSslErrors

QList<QSslError> expectedSslErrors

Definition at line 112 of file src_network_ssl_qsslsocket.cpp.

◆ socket

QSslSocket socket = new QSslSocket(this)

[0]

[1]

[2]

[3]

[4]

Definition at line 52 of file src_network_ssl_qsslsocket.cpp.