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

SSL_SOCK_Stream.cpp File Reference

#include "ace/Handle_Set.h"
#include "ace/Log_Msg.h"
#include <openssl/err.h>
#include "SSL_SOCK_Stream.h"

Include dependency graph for SSL_SOCK_Stream.cpp:

Include dependency graph

Go to the source code of this file.

Functions

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


Function Documentation

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

Definition at line 16 of file SSL_SOCK_Stream.cpp.

References ACE_ERROR, ACE_TEXT, ACE_TRACE, ACE_SSL_Context::context, ACE_SSL_Context::default_verify_mode, ACE_SSL_Context::instance, and LM_ERROR.

00018                : SSL_SOCK_Stream.cpp,v 1.1.1.2 2003/02/21 18:36:32 chad Exp $")
00019 
00020 ACE_ALLOC_HOOK_DEFINE(ACE_SSL_SOCK_Stream)
00021 
00022 ACE_SSL_SOCK_Stream::ACE_SSL_SOCK_Stream (ACE_SSL_Context *context)
00023   : ssl_ (0),
00024     stream_ ()
00025 {
00026   ACE_TRACE ("ACE_SSL_SOCK_Stream::ACE_SSL_SOCK_Stream");
00027 
00028   ACE_SSL_Context * ctx =
00029     (context == 0 ? ACE_SSL_Context::instance () : context);
00030 
00031   this->ssl_ = ::SSL_new (ctx->context ());
00032 
00033   if (this->ssl_ != 0)
00034     {
00035       ::SSL_set_verify (this->ssl_,
00036                         ctx->default_verify_mode (),
00037                         0);
00038     }
00039   else
00040     {
00041       ACE_ERROR ((LM_ERROR,
00042                   "(%P|%t) ACE_SSL_SOCK_Stream "
00043                   "- cannot allocate new SSL structure %p\n",
00044                   ACE_TEXT ("")));
00045     }
00046 }


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