sipxportlib  Version 3.3
OsTLSClientConnectionSocket.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _OsTLSClientConnectionSocket_h_
13 #define _OsTLSClientConnectionSocket_h_
14 
15 #ifdef SIP_TLS
16 #ifdef SIP_TLS_NSS
17 
18 // SYSTEM INCLUDES
19 #include <prio.h>
20 
21 // APPLICATION INCLUDES
23 #include "os/OsTLS.h"
24 
25 // DEFINES
26 // MACROS
27 // EXTERNAL FUNCTIONS
28 // EXTERNAL VARIABLES
29 // CONSTANTS
30 // STRUCTS
31 // TYPEDEFS
32 // FORWARD DECLARATIONS
33 
34 
36 class OsTLSClientConnectionSocket : public OsTLSConnectionSocket
37 {
38 /* //////////////////////////// PUBLIC //////////////////////////////////// */
39 public:
40 
41 /* ============================ CREATORS ================================== */
42 
43  OsTLSClientConnectionSocket(int serverPort,
44  const char* serverName,
45  const UtlString certNickname,
46  const UtlString password,
47  const UtlString dbLocation,
48  long timeoutInSecs,
49  const char* localIp,
50  ITlsSink* pSink);
51 
52  virtual
53  ~OsTLSClientConnectionSocket();
54  //:Destructor
55 
56 /* ============================ MANIPULATORS ============================== */
57 
58 
59 /* ============================ ACCESSORS ================================= */
60 
61 /* ============================ INQUIRY =================================== */
62 
63 /* //////////////////////////// PROTECTED ///////////////////////////////// */
64 protected:
65  void NSSInitSocket(int socket, long timeoutInSecs, const char* szPassword);
66 
67 /* //////////////////////////// PRIVATE /////////////////////////////////// */
68 private:
69 
70  OsTLSClientConnectionSocket(const OsTLSClientConnectionSocket& rOsTLSClientConnectionSocket);
71  //:Disable copy constructor
72 
73  OsTLSClientConnectionSocket();
74  //:Disable default constructor
75 
76  OsTLSClientConnectionSocket& operator=(const OsTLSClientConnectionSocket& rhs);
77  //:Assignment operator
78 
79  ITlsSink* mpTlsSink;
80 
81 
82 
83 };
84 
85 /* ============================ INLINE METHODS ============================ */
86 
87 #endif // SIP_TLS
88 #endif // SIP_TLS_NSS
89 
90 
91 #endif // _OsTLSClientConnectionSocket_h_
92 
Definition: OsTLS.h:75
Definition: UtlString.h:48