Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_SSLConnection Class Reference

#include <ssl_connection.h>

List of all members.

Public Member Functions

 CL_SSLConnection (CL_TCPConnection *connection, CL_PK11PasswordHandler *handler)
 Construction:.
 ~CL_SSLConnection ()

Private Member Functions

PRFileDesc * create_prfd ()
 Implementation:.

Static Private Member Functions

static SECStatus auth_certificate (void *arg, PRFileDesc *ssl_fd, PRBool check_sig, PRBool is_server)
static SECStatus bad_certificate (void *arg, PRFileDesc *ssl_fd)
static SECStatus get_client_auth_data (void *arg, PRFileDesc *fd, CERTDistNames *ca_names, CERTCertificate **ret_cert, SECKEYPrivateKey **ret_key)
static void handshake_completed (PRFileDesc *ssl_fd, void *arg)
static void prfd_dtor (PRFileDesc *fd)
static PRStatus prfd_close (PRFileDesc *fd)
static PRInt32 prfd_read (PRFileDesc *fd, void *buf, PRInt32 amount)
static PRInt32 prfd_write (PRFileDesc *fd, const void *buf, PRInt32 amount)
static PRInt32 prfd_available (PRFileDesc *fd)
static PRInt64 prfd_available64 (PRFileDesc *fd)
static PRStatus prfd_fsync (PRFileDesc *fd)
static PRInt32 prfd_seek (PRFileDesc *fd, PRInt32 offset, PRSeekWhence whence)
static PRInt64 prfd_seek64 (PRFileDesc *fd, PRInt64 offset, PRSeekWhence whence)
static PRStatus prfd_file_info (PRFileDesc *fd, PRFileInfo *info)
static PRStatus prfd_file_info64 (PRFileDesc *fd, PRFileInfo64 *info64)
static PRInt32 prfd_writev (PRFileDesc *fd, const PRIOVec *iov, PRInt32 size, PRIntervalTime timeout)
static PRStatus prfd_connect (PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout)
static PRFileDesc * prfd_accept (PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout)
static PRStatus prfd_bind (PRFileDesc *fd, const PRNetAddr *addr)
static PRStatus prfd_listen (PRFileDesc *fd, PRIntn backlog)
static PRStatus prfd_shutdown (PRFileDesc *fd, PRIntn how)
static PRInt32 prfd_recv (PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout)
static PRInt32 prfd_send (PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout)
static PRInt32 prfd_recvfrom (PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *addr, PRIntervalTime timeout)
static PRInt32 prfd_sendto (PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout)
static PRInt16 prfd_poll (PRFileDesc *fd, PRInt16 in_flags, PRInt16 *out_flags)
static PRInt32 prfd_acceptread (PRFileDesc *listen_sock, PRFileDesc **accepted_sock, PRNetAddr **peer_addr, void *buf, PRInt32 amount, PRIntervalTime timeout)
static PRInt32 prfd_transmitfile (PRFileDesc *network_socket, PRFileDesc *source_file, const void *headers, PRInt32 hlen, PRTransmitFileFlags flags, PRIntervalTime timeout)
static PRStatus prfd_getsockname (PRFileDesc *fd, PRNetAddr *addr)
static PRStatus prfd_getpeername (PRFileDesc *fd, PRNetAddr *addr)
static PRStatus prfd_getsockopt (PRFileDesc *fd, PRSocketOptionData *data)
static PRStatus prfd_setsockopt (PRFileDesc *fd, const PRSocketOptionData *data)
static PRInt32 prfd_sendfile (PRFileDesc *network_socket, PRSendFileData *send_data, PRTransmitFileFlags flags, PRIntervalTime timeout)
static PRStatus prfd_connectcontinue (PRFileDesc *fd, PRInt16 out_flags)
static PRIntn prfd_reserved (PRFileDesc *fd)

Private Attributes

PRFileDesc * ssl_fd
CL_TCPConnectionconnection
CL_PK11PasswordHandler * password_handler

Static Private Attributes

static PRIOMethods methods


Constructor & Destructor Documentation

CL_SSLConnection::CL_SSLConnection CL_TCPConnection connection,
CL_PK11PasswordHandler *  handler
 

Construction:.

Definition at line 39 of file ssl_connection.cpp.

References auth_certificate(), bad_certificate(), create_prfd(), get_client_auth_data(), handshake_completed(), password_handler, ssl_fd, and TEXT.

CL_SSLConnection::~CL_SSLConnection  ) 
 

Definition at line 98 of file ssl_connection.cpp.

References ssl_fd.


Member Function Documentation

SECStatus CL_SSLConnection::auth_certificate void *  arg,
PRFileDesc *  ssl_fd,
PRBool  check_sig,
PRBool  is_server
[static, private]
 

Definition at line 171 of file ssl_connection.cpp.

References ssl_fd.

Referenced by CL_SSLConnection().

SECStatus CL_SSLConnection::bad_certificate void *  arg,
PRFileDesc *  ssl_fd
[static, private]
 

Definition at line 177 of file ssl_connection.cpp.

Referenced by CL_SSLConnection().

PRFileDesc * CL_SSLConnection::create_prfd  )  [private]
 

Implementation:.

Definition at line 152 of file ssl_connection.cpp.

References methods, and TEXT.

Referenced by CL_SSLConnection().

SECStatus CL_SSLConnection::get_client_auth_data void *  arg,
PRFileDesc *  fd,
CERTDistNames *  ca_names,
CERTCertificate **  ret_cert,
SECKEYPrivateKey **  ret_key
[static, private]
 

Definition at line 183 of file ssl_connection.cpp.

References ssl_fd.

Referenced by CL_SSLConnection().

void CL_SSLConnection::handshake_completed PRFileDesc *  ssl_fd,
void *  arg
[static, private]
 

Definition at line 194 of file ssl_connection.cpp.

Referenced by CL_SSLConnection().

PRFileDesc * CL_SSLConnection::prfd_accept PRFileDesc *  fd,
PRNetAddr *  addr,
PRIntervalTime  timeout
[static, private]
 

Definition at line 275 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_acceptread PRFileDesc *  listen_sock,
PRFileDesc **  accepted_sock,
PRNetAddr **  peer_addr,
void *  buf,
PRInt32  amount,
PRIntervalTime  timeout
[static, private]
 

Definition at line 351 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_available PRFileDesc *  fd  )  [static, private]
 

Definition at line 221 of file ssl_connection.cpp.

References cl_log_event().

PRInt64 CL_SSLConnection::prfd_available64 PRFileDesc *  fd  )  [static, private]
 

Definition at line 227 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_bind PRFileDesc *  fd,
const PRNetAddr *  addr
[static, private]
 

Definition at line 281 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_close PRFileDesc *  fd  )  [static, private]
 

Definition at line 203 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_connect PRFileDesc *  fd,
const PRNetAddr *  addr,
PRIntervalTime  timeout
[static, private]
 

Definition at line 269 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_connectcontinue PRFileDesc *  fd,
PRInt16  out_flags
[static, private]
 

Definition at line 409 of file ssl_connection.cpp.

References cl_log_event().

void CL_SSLConnection::prfd_dtor PRFileDesc *  fd  )  [static, private]
 

Definition at line 199 of file ssl_connection.cpp.

PRStatus CL_SSLConnection::prfd_file_info PRFileDesc *  fd,
PRFileInfo *  info
[static, private]
 

Definition at line 251 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_file_info64 PRFileDesc *  fd,
PRFileInfo64 *  info64
[static, private]
 

Definition at line 257 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_fsync PRFileDesc *  fd  )  [static, private]
 

Definition at line 233 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_getpeername PRFileDesc *  fd,
PRNetAddr *  addr
[static, private]
 

Definition at line 381 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_getsockname PRFileDesc *  fd,
PRNetAddr *  addr
[static, private]
 

Definition at line 375 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_getsockopt PRFileDesc *  fd,
PRSocketOptionData *  data
[static, private]
 

Definition at line 387 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_listen PRFileDesc *  fd,
PRIntn  backlog
[static, private]
 

Definition at line 287 of file ssl_connection.cpp.

References cl_log_event().

PRInt16 CL_SSLConnection::prfd_poll PRFileDesc *  fd,
PRInt16  in_flags,
PRInt16 *  out_flags
[static, private]
 

Definition at line 345 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_read PRFileDesc *  fd,
void *  buf,
PRInt32  amount
[static, private]
 

Definition at line 209 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_recv PRFileDesc *  fd,
void *  buf,
PRInt32  amount,
PRIntn  flags,
PRIntervalTime  timeout
[static, private]
 

Definition at line 299 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_recvfrom PRFileDesc *  fd,
void *  buf,
PRInt32  amount,
PRIntn  flags,
PRNetAddr *  addr,
PRIntervalTime  timeout
[static, private]
 

Definition at line 321 of file ssl_connection.cpp.

References cl_log_event().

PRIntn CL_SSLConnection::prfd_reserved PRFileDesc *  fd  )  [static, private]
 

Definition at line 415 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_seek PRFileDesc *  fd,
PRInt32  offset,
PRSeekWhence  whence
[static, private]
 

Definition at line 239 of file ssl_connection.cpp.

References cl_log_event().

PRInt64 CL_SSLConnection::prfd_seek64 PRFileDesc *  fd,
PRInt64  offset,
PRSeekWhence  whence
[static, private]
 

Definition at line 245 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_send PRFileDesc *  fd,
const void *  buf,
PRInt32  amount,
PRIntn  flags,
PRIntervalTime  timeout
[static, private]
 

Definition at line 310 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_sendfile PRFileDesc *  network_socket,
PRSendFileData *  send_data,
PRTransmitFileFlags  flags,
PRIntervalTime  timeout
[static, private]
 

Definition at line 399 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_sendto PRFileDesc *  fd,
const void *  buf,
PRInt32  amount,
PRIntn  flags,
const PRNetAddr *  addr,
PRIntervalTime  timeout
[static, private]
 

Definition at line 333 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_setsockopt PRFileDesc *  fd,
const PRSocketOptionData *  data
[static, private]
 

Definition at line 393 of file ssl_connection.cpp.

References cl_log_event().

PRStatus CL_SSLConnection::prfd_shutdown PRFileDesc *  fd,
PRIntn  how
[static, private]
 

Definition at line 293 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_transmitfile PRFileDesc *  network_socket,
PRFileDesc *  source_file,
const void *  headers,
PRInt32  hlen,
PRTransmitFileFlags  flags,
PRIntervalTime  timeout
[static, private]
 

Definition at line 363 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_write PRFileDesc *  fd,
const void *  buf,
PRInt32  amount
[static, private]
 

Definition at line 215 of file ssl_connection.cpp.

References cl_log_event().

PRInt32 CL_SSLConnection::prfd_writev PRFileDesc *  fd,
const PRIOVec *  iov,
PRInt32  size,
PRIntervalTime  timeout
[static, private]
 

Definition at line 263 of file ssl_connection.cpp.

References cl_log_event().


Member Data Documentation

CL_TCPConnection* CL_SSLConnection::connection [private]
 

Definition at line 60 of file ssl_connection.h.

PRIOMethods CL_SSLConnection::methods [static, private]
 

Definition at line 112 of file ssl_connection.cpp.

Referenced by create_prfd().

CL_PK11PasswordHandler* CL_SSLConnection::password_handler [private]
 

Definition at line 62 of file ssl_connection.h.

Referenced by CL_SSLConnection().

PRFileDesc* CL_SSLConnection::ssl_fd [private]
 

Definition at line 58 of file ssl_connection.h.

Referenced by auth_certificate(), CL_SSLConnection(), get_client_auth_data(), and ~CL_SSLConnection().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:18 2005 for npcore by  doxygen 1.4.1