Class TlsThread.

Inherits Garbage

Creates and manages a thread for TLS processing using openssl

TlsThread::TlsThread()

Constructs an empty TlsThread

Reimplements Garbage::Garbage().

bool TlsThread::broken() const

Returns true if this TlsThread is broken somehow, and false if it's in working order.

void TlsThread::setClientFD( int fd )

Records that fd should be used for encrypted communication with the client. The TLS thread will close fd when it's done.

void TlsThread::setServerFD( int fd )

Records that fd should be used for cleartext communication with the main aox thread. The TLS thread will close fd when it's done.

void TlsThread::setup()

Perform any OpenSSL initialisation needed to enable us to create TlsThreads later.

bool TlsThread::sslErrorSeriousness( int r )

Returns true if the openssl result status r is a serious error, and false otherwise.

void TlsThread::start()

Starts negotiating and does everything after that. This is run in the separate thread.

TlsThread::~TlsThread()

Destroys the object and frees any allocated resources. Except we probably should do this in Connection::react() or Connection::close() or something.

This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.