|
| TLSContext (Provider *p, const QString &type) |
|
virtual bool | canCompress () const =0 |
|
virtual bool | canSetHostName () const =0 |
|
virtual bool | certificateRequested () const =0 |
|
virtual bool | clientHelloReceived () const =0 |
|
virtual int | encoded () const =0 |
|
virtual bool | eof () const =0 |
|
virtual QString | hostName () const =0 |
|
virtual QList< CertificateInfoOrdered > | issuerList () const =0 |
|
virtual int | maxSSF () const =0 |
|
virtual CertificateChain | peerCertificateChain () const =0 |
|
virtual Validity | peerCertificateValidity () const =0 |
|
virtual void | reset ()=0 |
|
virtual Result | result () const =0 |
|
virtual bool | serverHelloReceived () const =0 |
|
virtual SessionInfo | sessionInfo () const =0 |
|
virtual void | setCertificate (const CertificateChain &cert, const PrivateKey &key)=0 |
|
virtual void | setConstraints (const QStringList &cipherSuiteList)=0 |
|
virtual void | setConstraints (int minSSF, int maxSSF)=0 |
|
virtual void | setIssuerList (const QList< CertificateInfoOrdered > &issuerList)=0 |
|
virtual void | setMTU (int size) |
|
virtual void | setSessionId (const TLSSessionContext &id)=0 |
|
virtual void | setTrustedCertificates (const CertificateCollection &trusted)=0 |
|
virtual void | setup (bool serverMode, const QString &hostName, bool compress)=0 |
|
virtual void | shutdown ()=0 |
|
virtual void | start ()=0 |
|
virtual QStringList | supportedCipherSuites (const TLS::Version &version) const =0 |
|
virtual QByteArray | to_app ()=0 |
|
virtual QByteArray | to_net ()=0 |
|
virtual QByteArray | unprocessed ()=0 |
|
virtual void | update (const QByteArray &from_net, const QByteArray &from_app)=0 |
|
virtual bool | waitForResultsReady (int msecs)=0 |
|
virtual Context * | clone () const =0 |
|
Provider * | provider () const |
|
bool | sameProvider (const Context *c) const |
|
QString | type () const |
|
| QObject (QObject *parent) |
|
QBindable< QString > | bindableObjectName () |
|
bool | blockSignals (bool block) |
|
const QObjectList & | children () const const |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
|
void | deleteLater () |
|
void | destroyed (QObject *obj) |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
|
bool | disconnect (const QObject *receiver, const char *method) const const |
|
void | dumpObjectInfo () const const |
|
void | dumpObjectTree () const const |
|
QList< QByteArray > | dynamicPropertyNames () const const |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (Qt::FindChildOptions options) const const |
|
bool | inherits (const char *className) const const |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isQuickItemType () const const |
|
bool | isWidgetType () const const |
|
bool | isWindowType () const const |
|
void | killTimer (int id) |
|
virtual const QMetaObject * | metaObject () const const |
|
void | moveToThread (QThread *targetThread) |
|
QString | objectName () const const |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const const |
|
QVariant | property (const char *name) const const |
|
| Q_CLASSINFO (Name, Value) |
|
| Q_EMIT Q_EMIT |
|
| Q_ENUM (...) |
|
| Q_ENUM_NS (...) |
|
| Q_ENUMS (...) |
|
| Q_FLAG (...) |
|
| Q_FLAG_NS (...) |
|
| Q_FLAGS (...) |
|
| Q_GADGET Q_GADGET |
|
| Q_GADGET_EXPORT (EXPORT_MACRO) |
|
| Q_INTERFACES (...) |
|
| Q_INVOKABLE Q_INVOKABLE |
|
| Q_MOC_INCLUDE Q_MOC_INCLUDE |
|
| Q_NAMESPACE Q_NAMESPACE |
|
| Q_NAMESPACE_EXPORT (EXPORT_MACRO) |
|
| Q_OBJECT Q_OBJECT |
|
| Q_PROPERTY (...) |
|
| Q_REVISION Q_REVISION |
|
| Q_SET_OBJECT_NAME (Object) |
|
| Q_SIGNAL Q_SIGNAL |
|
| Q_SIGNALS Q_SIGNALS |
|
| Q_SLOT Q_SLOT |
|
| Q_SLOTS Q_SLOTS |
|
T | qobject_cast (const QObject *object) |
|
T | qobject_cast (QObject *object) |
|
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT |
|
void | removeEventFilter (QObject *obj) |
|
void | setObjectName (const QString &name) |
|
void | setObjectName (QAnyStringView name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const char *name, const QVariant &value) |
|
bool | setProperty (const char *name, QVariant &&value) |
|
bool | signalsBlocked () const const |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
int | startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType) |
|
QThread * | thread () const const |
|
|
| objectName |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
| Context (const Context &from) |
|
| Context (Provider *parent, const QString &type) |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | connectNotify (const QMetaMethod &signal) |
|
virtual void | customEvent (QEvent *event) |
|
virtual void | disconnectNotify (const QMetaMethod &signal) |
|
bool | isSignalConnected (const QMetaMethod &signal) const const |
|
int | receivers (const char *signal) const const |
|
QObject * | sender () const const |
|
int | senderSignalIndex () const const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
TLS provider.
- Note
- This class is part of the provider plugin interface and should not be used directly by applications. You probably want TLS instead.
Definition at line 2239 of file qcaprovider.h.
virtual void QCA::TLSContext::start |
( |
| ) |
|
|
pure virtual |
Begins the session, starting with the handshake.
This function returns immediately, and completion is signaled with the resultsReady() signal.
On completion, the result() function will return Success if the TLS session is able to begin, or Error if there is a failure to initialize the TLS subsystem. If successful, the session is now in the handshake state, and update() will be called repeatedly until the session ends.
Performs one iteration of the TLS session processing.
This function returns immediately, and completion is signaled with the resultsReady() signal.
If the session is in a handshake state, result() and to_net() will be valid. If result() is Success, then the session is now in the connected state.
If the session is in a shutdown state, result() and to_net() will be valid. If result() is Success, then the session has ended.
If the session is in a connected state, result(), to_net(), encoded(), to_app(), and eof() are valid. The result() function will return Success or Error. Note that eof() does not apply to DTLS.
For DTLS, this function operates with single packets. Many update() operations must be performed repeatedly to exchange multiple packets.
- Parameters
-
from_net | the data from the "other side" of the connection |
from_app | the data from the application of the protocol |