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

SSL_Context.h File Reference

#include "ace/pre.h"
#include "SSL_Export.h"
#include "ace/SString.h"
#include "ace/Singleton.h"
#include "ace/Synch.h"
#include <openssl/ssl.h>
#include "ace/post.h"

Include dependency graph for SSL_Context.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  ACE_SSL_Context
 A wrapper for the OpenSSL SSL_CTX related functions. More...

class  ACE_SSL_Data_File

Functions

void ACE_SSL_locking_callback (int mode, int type, const char *file, int line)
 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...


Detailed Description

Id:
SSL_Context.h,v 1.1.1.2 2003/02/21 18:36:32 chad Exp

Author:
Carlos O'Ryan <coryan@ece.uci.edu>

Definition in file SSL_Context.h.


Function Documentation

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

Mutex locking/unlocking callback for OpenSSL multithread support.

Definition at line 483 of file SSL_Context.cpp.

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.

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


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