#include <KjSslConnection.h>
Inheritance diagram for KjSslConnection:

Public Types | |
| enum | EKjSslConType { KJ_SSL_SERVER, KJ_SSL_CLIENT } |
Public Member Functions | |
| KjSslConnection (KjSslConnection::EKjSslConType _eType, char *_strConn, const string &_strCertFile="", const string &_strKeyFile="") | |
| KjSslConnection (BIO *_pBio, const string &_strCertFile="", const string &_strKeyFile="") | |
| ~KjSslConnection () | |
| int | Write (const string &_str) |
| Write string to the SSL connection. | |
| int | Read (string &_str) |
| Read string from SSL connection. | |
| bool | GetIsValid () |
| int & | GetId () |
| BIO * | GetBio () |
Private Member Functions | |
| bool | ServerConnect (char *_strConn) |
| New server connection. | |
| bool | ClientConnect (char *_strConn) |
| New client connection. | |
| bool | Init (const string &_strCertFile, const string &_strKeyFile) |
| Initialize SSL connection. | |
| bool | CheckSslState () |
| Check SSL connection state. | |
Private Attributes | |
| SSL * | m_pSsl |
| SSL connection. | |
| X509 * | m_pCert |
| X509 certificate. | |
| EKjSslConType | m_eType |
| Connection types. | |
| BIO * | m_pBio |
| BIO I/O. | |
| bool | m_bIsValid |
| Is SSL connection valid ? | |
| int | m_iId |
| Connection index (client connection index). | |
Definition at line 50 of file KjSslConnection.h.
|
|
Definition at line 53 of file KjSslConnection.h. |
|
||||||||||||||||||||
|
Definition at line 36 of file KjSslConnection.cpp. References ClientConnect(), Init(), KJ_SSL_CLIENT, KJ_SSL_SERVER, m_bIsValid, m_eType, and ServerConnect(). |
|
||||||||||||||||
|
Definition at line 53 of file KjSslConnection.cpp. References Init(), m_bIsValid, m_iId, and ServerConnect(). |
|
|
Definition at line 65 of file KjSslConnection.cpp. References m_bIsValid, and m_pSsl. |
|
|
Check SSL connection state.
Definition at line 245 of file KjSslConnection.cpp. References m_pSsl. |
|
|
New client connection.
Definition at line 148 of file KjSslConnection.cpp. References KjSslObject::CheckErrors(), KjSslObject::CheckSslErrors(), m_bIsValid, m_pBio, and m_pSsl. Referenced by KjSslConnection(). |
|
|
Definition at line 90 of file KjSslConnection.h. References m_pBio. |
|
|
Definition at line 85 of file KjSslConnection.h. References m_iId. |
|
|
Definition at line 80 of file KjSslConnection.h. References m_bIsValid. |
|
||||||||||||
|
Initialize SSL connection.
Definition at line 75 of file KjSslConnection.cpp. References KjSslObject::CheckErrors(), KjSslObject::GetCtx(), m_bIsValid, and m_pSsl. Referenced by KjSslConnection(). |
|
|
Read string from SSL connection.
Definition at line 224 of file KjSslConnection.cpp. References CheckSslState(), KJ_SSL_READ_CHUNK_SIZE, and m_pSsl. |
|
|
New server connection.
Definition at line 122 of file KjSslConnection.cpp. References KjSslObject::CheckErrors(), KjSslObject::CheckSslErrors(), m_pBio, and m_pSsl. Referenced by KjSslConnection(). |
|
|
Write string to the SSL connection.
Definition at line 173 of file KjSslConnection.cpp. References CheckSslState(), KJ_SSL_READ_CHUNK_SIZE, and m_pSsl. |
|
|
Is SSL connection valid ?
Definition at line 64 of file KjSslConnection.h. Referenced by ClientConnect(), GetIsValid(), Init(), KjSslConnection(), and ~KjSslConnection(). |
|
|
Connection types.
Definition at line 62 of file KjSslConnection.h. Referenced by KjSslConnection(). |
|
|
Connection index (client connection index).
Definition at line 65 of file KjSslConnection.h. Referenced by GetId(), and KjSslConnection(). |
|
|
BIO I/O.
Definition at line 63 of file KjSslConnection.h. Referenced by ClientConnect(), GetBio(), and ServerConnect(). |
|
|
X509 certificate.
Definition at line 61 of file KjSslConnection.h. |
|
|
SSL connection.
Definition at line 60 of file KjSslConnection.h. Referenced by CheckSslState(), ClientConnect(), Init(), Read(), ServerConnect(), Write(), and ~KjSslConnection(). |
1.4.6