proxygen
folly::ssl::SSLSession Class Reference

#include <SSLSession.h>

Public Member Functions

 SSLSession (SSL_SESSION *session, bool takeOwnership=true)
 
 SSLSession (const std::string &serializedSession)
 
std::string serialize () const
 
std::string getSessionID () const
 
const SSL_SESSION * getRawSSLSession () const
 
SSL_SESSION * getRawSSLSessionDangerous ()
 

Private Attributes

std::unique_ptr< detail::SSLSessionImplimpl_
 

Detailed Description

Definition at line 26 of file SSLSession.h.

Constructor & Destructor Documentation

folly::ssl::SSLSession::SSLSession ( SSL_SESSION *  session,
bool  takeOwnership = true 
)
inlineexplicit

Definition at line 29 of file SSLSession.h.

30  : impl_(
31  std::make_unique<detail::SSLSessionImpl>(session, takeOwnership)) {}
std::unique_ptr< detail::SSLSessionImpl > impl_
Definition: SSLSession.h:61
folly::ssl::SSLSession::SSLSession ( const std::string serializedSession)
inlineexplicit

Definition at line 34 of file SSLSession.h.

35  : impl_(std::make_unique<detail::SSLSessionImpl>(serializedSession)) {}
std::unique_ptr< detail::SSLSessionImpl > impl_
Definition: SSLSession.h:61

Member Function Documentation

const SSL_SESSION* folly::ssl::SSLSession::getRawSSLSession ( ) const
inline

Definition at line 49 of file SSLSession.h.

References impl_.

49  {
50  return impl_->getRawSSLSession();
51  }
std::unique_ptr< detail::SSLSessionImpl > impl_
Definition: SSLSession.h:61
SSL_SESSION* folly::ssl::SSLSession::getRawSSLSessionDangerous ( )
inline

Definition at line 56 of file SSLSession.h.

References impl_.

Referenced by folly::TEST_F().

56  {
57  return impl_->getRawSSLSessionDangerous();
58  }
std::unique_ptr< detail::SSLSessionImpl > impl_
Definition: SSLSession.h:61
std::string folly::ssl::SSLSession::getSessionID ( ) const
inline

Definition at line 43 of file SSLSession.h.

References impl_.

Referenced by folly::TEST_F().

43  {
44  return impl_->getSessionID();
45  }
std::unique_ptr< detail::SSLSessionImpl > impl_
Definition: SSLSession.h:61
std::string folly::ssl::SSLSession::serialize ( ) const
inline

Definition at line 38 of file SSLSession.h.

References impl_.

Referenced by folly::TEST_F().

38  {
39  return impl_->serialize();
40  }
std::unique_ptr< detail::SSLSessionImpl > impl_
Definition: SSLSession.h:61

Member Data Documentation

std::unique_ptr<detail::SSLSessionImpl> folly::ssl::SSLSession::impl_
private

Definition at line 61 of file SSLSession.h.

Referenced by getRawSSLSession(), getRawSSLSessionDangerous(), getSessionID(), and serialize().


The documentation for this class was generated from the following file: