Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

SSL_Context.cpp File Reference

#include "SSL_Context.h"
#include "sslconf.h"
#include "SSL_Context.inl"
#include "ace/Synch.h"
#include "ace/Object_Manager.h"
#include "ace/Log_Msg.h"
#include <openssl/x509.h>
#include <openssl/err.h>
#include <openssl/rand.h>

Include dependency graph for SSL_Context.cpp:

Include dependency graph

Go to the source code of this file.

Functions

 ACE_RCSID (ACE_SSL, SSL_Context,"$Id:SSL_Context.cpp, v 1.1.1.2 2003/02/21 18:36:32 chad Exp$") ACE_mutex_t *ACE_SSL_Context
void ACE_SSL_locking_callback (int mode, int type, const char *, int)
 Mutex locking/unlocking callback for OpenSSL multithread support. More...

unsigned long ACE_SSL_thread_id (void)
 Return the current thread ID. OpenSSL uses this on platforms that need it. More...


Function Documentation

ACE_RCSID ACE_SSL   ,
SSL_Context   ,
"$Id:SSL_Context.    cpp,
v 1.1.1.2 2003/02/21 18:36:32 chad Exp$"   
 

Definition at line 19 of file SSL_Context.cpp.

References ACE_SSL_Context::ssl_library_init.

00021                : SSL_Context.cpp,v 1.1.1.2 2003/02/21 18:36:32 chad Exp $")
00022 
00023 #ifdef ACE_HAS_THREADS
00024 ACE_mutex_t * ACE_SSL_Context::lock_ = 0;
00025 #endif  /* ACE_HAS_THREADS */
00026 
00027 
00028 int ACE_SSL_Context::library_init_count_ = 0;
00029 
00030 ACE_SSL_Context::ACE_SSL_Context (void)
00031   : context_ (0),
00032     mode_ (-1),
00033     default_verify_mode_ (SSL_VERIFY_NONE),
00034     have_ca_ (0)
00035 {
00036   ACE_SSL_Context::ssl_library_init ();
00037 }

void ACE_SSL_locking_callback int    mode,
int    type,
const char *   ,
int   
 

Mutex locking/unlocking callback for OpenSSL multithread support.

Definition at line 483 of file SSL_Context.cpp.

References ACE_OS::mutex_lock, and ACE_OS::mutex_unlock.

00487 {
00488   // #ifdef undef
00489   //   fprintf(stderr,"thread=%4d mode=%s lock=%s %s:%d\n",
00490   //           CRYPTO_thread_id(),
00491   //           (mode&CRYPTO_LOCK)?"l":"u",
00492   //           (type&CRYPTO_READ)?"r":"w",file,line);
00493   // #endif
00494   //   /*
00495   //     if (CRYPTO_LOCK_SSL_CERT == type)
00496   //     fprintf(stderr,"(t,m,f,l) %ld %d %s %d\n",
00497   //     CRYPTO_thread_id(),
00498   //     mode,file,line);
00499   //   */
00500   if (mode & CRYPTO_LOCK)
00501     ACE_OS::mutex_lock (&(ACE_SSL_Context::lock_[type]));
00502   else
00503     ACE_OS::mutex_unlock (&(ACE_SSL_Context::lock_[type]));
00504 }

unsigned long ACE_SSL_thread_id void   
 

Return the current thread ID. OpenSSL uses this on platforms that need it.

Definition at line 509 of file SSL_Context.cpp.

References ACE_OS::thr_self.

00510 {
00511   return (unsigned long) ACE_OS::thr_self ();
00512 }


Generated on Mon Jun 16 13:16:01 2003 for ACE_SSL by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002