SSL_Context.inl

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

Generated on Thu Nov 9 11:41:56 2006 for ACE_SSL by doxygen 1.3.6