![]() |
Kea 2.2.0
|
TLS stream base class. More...
#include <common_tls.h>
Inheritance diagram for isc::asiolink::TlsStreamBase< Callback, TlsStreamImpl >:Public Member Functions | |
| TlsStreamBase (IOService &service, TlsContextPtr context) | |
| Constructor. More... | |
| virtual | ~TlsStreamBase () |
| Destructor. More... | |
| virtual std::string | getIssuer ()=0 |
| Return the commonName part of the issuerName of the peer certificate. More... | |
| TlsRole | getRole () const |
| Returns the role. More... | |
| virtual std::string | getSubject ()=0 |
| Return the commonName part of the subjectName of the peer certificate. More... | |
| virtual void | handshake (Callback &callback)=0 |
| TLS Handshake. More... | |
| virtual void | shutdown (Callback &callback)=0 |
| TLS shutdown. More... | |
Public Attributes | |
| TlsRole | role_ |
| The role i.e. client or server. More... | |
TLS stream base class.
| Callback | The type of callbacks. |
| TlsStreamImpl | The type of underlying TLS streams. |
Definition at line 126 of file common_tls.h.
| isc::asiolink::TlsStreamBase< Callback, TlsStreamImpl >::TlsStreamBase | ( | IOService & | service, |
| TlsContextPtr | context | ||
| ) |
Constructor.
| service | I/O Service object used to manage the stream. |
| context | Pointer to the TLS context. |
|
inlinevirtual |
Destructor.
Definition at line 137 of file common_tls.h.
|
pure virtual |
Return the commonName part of the issuerName of the peer certificate.
First commonName when there are more than one, in UTF-8. The issuerName is the subjectName of the signing certificate (the issue in PKIX terms). The idea is to encode a group as members of an intermediate certification authority.
|
inline |
Returns the role.
Definition at line 140 of file common_tls.h.
References isc::asiolink::TlsStreamBase< Callback, TlsStreamImpl >::role_.
|
pure virtual |
Return the commonName part of the subjectName of the peer certificate.
First commonName when there are more than one, in UTF-8. RFC 3280 provides as a commonName example "Susan Housley", to idea to give access to this come from the Role Based Access Control experiment.
|
pure virtual |
TLS Handshake.
| callback | Callback object. |
|
pure virtual |
TLS shutdown.
| callback | Callback object. |
| TlsRole isc::asiolink::TlsStreamBase< Callback, TlsStreamImpl >::role_ |
The role i.e. client or server.
Definition at line 177 of file common_tls.h.
Referenced by isc::asiolink::TlsStreamBase< Callback, TlsStreamImpl >::getRole().