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

SSL_Context.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: SSL_Context.inl,v 1.1.1.1 2003/02/21 18:36:32 chad Exp $
00004 
00005 
00006 ACE_INLINE
00007 ACE_SSL_Data_File::ACE_SSL_Data_File (void)
00008   : type_ (-1)
00009 {
00010 }
00011 
00012 ACE_INLINE
00013 ACE_SSL_Data_File::ACE_SSL_Data_File (const char *file_name,
00014                                       int type)
00015   : file_name_ (file_name),
00016     type_ (type)
00017 {
00018 }
00019 
00020 ACE_INLINE const char *
00021 ACE_SSL_Data_File::file_name (void) const
00022 {
00023   return this->file_name_.c_str ();
00024 }
00025 
00026 ACE_INLINE int
00027 ACE_SSL_Data_File::type (void) const
00028 {
00029   return this->type_;
00030 }
00031 
00032 // ****************************************************************
00033 
00034 ACE_INLINE ACE_SSL_Context *
00035 ACE_SSL_Context::instance (void)
00036 {
00037   return ACE_Singleton<ACE_SSL_Context, ACE_SYNCH_MUTEX>::instance ();
00038 }
00039 
00040 ACE_INLINE void
00041 ACE_SSL_Context::check_context (void)
00042 {
00043   if (this->context_ == 0)
00044     this->set_mode ();
00045 }
00046 
00047 ACE_INLINE SSL_CTX *
00048 ACE_SSL_Context::context (void)
00049 {
00050   this->check_context ();
00051   return this->context_;
00052 }
00053 
00054 ACE_INLINE int
00055 ACE_SSL_Context::private_key_type (void) const
00056 {
00057   return this->private_key_.type ();
00058 }
00059 
00060 ACE_INLINE const char*
00061 ACE_SSL_Context::private_key_file_name (void) const
00062 {
00063   return this->private_key_.file_name ();
00064 }
00065 
00066 ACE_INLINE int
00067 ACE_SSL_Context::certificate_type (void) const
00068 {
00069   return this->certificate_.type ();
00070 }
00071 
00072 ACE_INLINE const char*
00073 ACE_SSL_Context::certificate_file_name (void) const
00074 {
00075   return this->certificate_.file_name ();
00076 }
00077 
00078 ACE_INLINE int
00079 ACE_SSL_Context::dh_params_file_type (void) const
00080 {
00081   return this->dh_params_.type ();
00082 }
00083 
00084 ACE_INLINE const char*
00085 ACE_SSL_Context::dh_params_file_name (void) const
00086 {
00087   return this->dh_params_.file_name ();
00088 }
00089 
00090 ACE_INLINE void
00091 ACE_SSL_Context::default_verify_mode (int mode)
00092 {
00093   this->default_verify_mode_ = mode;
00094 }
00095 
00096 ACE_INLINE int
00097 ACE_SSL_Context::default_verify_mode (void) const
00098 {
00099   return this->default_verify_mode_;
00100 }
00101 
00102 ACE_INLINE int
00103 ACE_SSL_Context::get_mode (void) const
00104 {
00105   return this->mode_;
00106 }
00107 
00108 ACE_INLINE int
00109 ACE_SSL_Context::have_trusted_ca (void) const
00110 {
00111   return this->have_ca_;
00112 }

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