(file) Return to SSLContextRep.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/SSLContextRep.h between version 1.9 and 1.10

version 1.9, 2003/03/13 18:41:47 version 1.10, 2003/05/02 17:13:27
Line 23 
Line 23 
 // //
 // Author: Nag Boranna, Hewlett-Packard Company ( nagaraja_boranna@hp.com ) // Author: Nag Boranna, Hewlett-Packard Company ( nagaraja_boranna@hp.com )
 // //
 // Modified By:  // Modified By: Sushma Fernandes, Hewlett-Packard Company
   //                  sushma_fernandes@hp.com
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 36 
Line 37 
 #endif #endif
 #include <Pegasus/Common/SSLContext.h> #include <Pegasus/Common/SSLContext.h>
 #include <Pegasus/Common/Linkage.h> #include <Pegasus/Common/Linkage.h>
   #include <Pegasus/Common/IPC.h>
  
 #ifndef Pegasus_SSLContextRep_h #ifndef Pegasus_SSLContextRep_h
 #define Pegasus_SSLContextRep_h #define Pegasus_SSLContextRep_h
Line 46 
Line 48 
  
 class PEGASUS_COMMON_LINKAGE SSLContextRep class PEGASUS_COMMON_LINKAGE SSLContextRep
 { {
       /*
       SSL locking callback function. It is needed to perform locking on
       shared data structures.
   
       This function needs access to variable ssl_locks.
       Declare it as a friend of class SSLContextRep.
   
       @param mode         Specifies whether to lock/unlock.
       @param type Type of lock.
       @param file      File name of the function setting the lock.
       @param line      Line number of the function setting the lock.
       */
       friend void pegasus_locking_callback(
                         int       mode,
                         int       type,
                         const     char* file,
                         int       line);
   
 public: public:
  
     /** Constructor for a SSLContextRep object.     /** Constructor for a SSLContextRep object.
Line 70 
Line 90 
  
     SSL_CTX * getContext() const;     SSL_CTX * getContext() const;
  
       /*
       Initialize the SSL locking environment.
   
       This function sets the locking callback functions.
       */
       static void init_ssl();
   
       /*
       Cleanup the SSL locking environment.
       */
       static void free_ssl();
   
 private: private:
  
     SSL_CTX * _makeSSLContext();     SSL_CTX * _makeSSLContext();
Line 80 
Line 112 
     CString _certKeyPath;     CString _certKeyPath;
     String _randomFile;     String _randomFile;
     SSL_CTX * _sslContext;     SSL_CTX * _sslContext;
   
       /*
          Mutex containing the SSL locks.
       */
       static Mutex* _sslLocks;
   
       /*
          Count for instances of this class. This is used to initialize and free
          SSL locking objects.
       */
       static int _countRep;
   
       /*
          Mutex for countRep.
       */
       static Mutex _countRepMutex;
 }; };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2