/usr/include/ace/SSL/SSL_Context.inl is in libace-ssl-dev 6.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | // -*- C++ -*-
//
// $Id: SSL_Context.inl 83916 2008-11-28 16:32:21Z johnnyw $
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
ACE_SSL_Data_File::ACE_SSL_Data_File (void)
: type_ (-1)
{
}
ACE_INLINE
ACE_SSL_Data_File::ACE_SSL_Data_File (const char *file_name,
int type)
: file_name_ (file_name),
type_ (type)
{
}
ACE_INLINE const char *
ACE_SSL_Data_File::file_name (void) const
{
return this->file_name_.c_str ();
}
ACE_INLINE int
ACE_SSL_Data_File::type (void) const
{
return this->type_;
}
// ****************************************************************
ACE_INLINE void
ACE_SSL_Context::check_context (void)
{
if (this->context_ == 0)
{
this->set_mode ();
}
::SSL_CTX_set_verify (this->context_, this->default_verify_mode (),
this->default_verify_callback ());
}
ACE_INLINE SSL_CTX *
ACE_SSL_Context::context (void)
{
this->check_context ();
return this->context_;
}
ACE_INLINE int
ACE_SSL_Context::private_key_type (void) const
{
return this->private_key_.type ();
}
ACE_INLINE const char*
ACE_SSL_Context::private_key_file_name (void) const
{
return this->private_key_.file_name ();
}
ACE_INLINE int
ACE_SSL_Context::certificate_type (void) const
{
return this->certificate_.type ();
}
ACE_INLINE const char*
ACE_SSL_Context::certificate_file_name (void) const
{
return this->certificate_.file_name ();
}
ACE_INLINE int
ACE_SSL_Context::dh_params_file_type (void) const
{
return this->dh_params_.type ();
}
ACE_INLINE const char*
ACE_SSL_Context::dh_params_file_name (void) const
{
return this->dh_params_.file_name ();
}
ACE_INLINE void
ACE_SSL_Context::default_verify_mode (int mode)
{
this->default_verify_mode_ = mode;
}
ACE_INLINE int
ACE_SSL_Context::default_verify_mode (void) const
{
return this->default_verify_mode_;
}
ACE_INLINE void
ACE_SSL_Context::default_verify_callback (int (*callback) (int, X509_STORE_CTX*))
{
this->default_verify_callback_ = callback;
}
ACE_INLINE int (*ACE_SSL_Context::default_verify_callback(void) const)(int,X509_STORE_CTX *)
{
return this->default_verify_callback_;
}
ACE_INLINE int
ACE_SSL_Context::get_mode (void) const
{
return this->mode_;
}
ACE_INLINE int
ACE_SSL_Context::have_trusted_ca (void) const
{
return this->have_ca_;
}
ACE_END_VERSIONED_NAMESPACE_DECL
|