#include <SSLSessionImpl.h>
Definition at line 29 of file SSLSessionImpl.h.
folly::ssl::detail::SSLSessionImpl::SSLSessionImpl |
( |
SSL_SESSION * |
session, |
|
|
bool |
takeOwnership = true |
|
) |
| |
|
explicit |
folly::ssl::detail::SSLSessionImpl::SSLSessionImpl |
( |
const std::string & |
serializedSession | ) |
|
|
explicit |
Definition at line 41 of file SSLSessionImpl.cpp.
References session_.
43 reinterpret_cast<const unsigned char*
>(serializedSession.data());
44 auto longLen = long(serializedSession.length());
45 if ((
session_ = d2i_SSL_SESSION(
nullptr, &sessionData, longLen)) ==
nullptr) {
46 throw std::runtime_error(
"Cannot deserialize SSLSession string");
folly::ssl::detail::SSLSessionImpl::~SSLSessionImpl |
( |
| ) |
|
|
virtual |
void folly::ssl::detail::SSLSessionImpl::downRef |
( |
| ) |
|
|
private |
const SSL_SESSION * folly::ssl::detail::SSLSessionImpl::getRawSSLSession |
( |
| ) |
const |
SSL_SESSION * folly::ssl::detail::SSLSessionImpl::getRawSSLSessionDangerous |
( |
| ) |
|
std::string folly::ssl::detail::SSLSessionImpl::getSessionID |
( |
| ) |
const |
std::string folly::ssl::detail::SSLSessionImpl::serialize |
( |
| ) |
const |
Definition at line 54 of file SSLSessionImpl.cpp.
References session_, and string.
58 auto len = i2d_SSL_SESSION(
session_,
nullptr);
61 std::unique_ptr<unsigned char[]> uptr(
new unsigned char[
size_t(len)]);
63 auto written = i2d_SSL_SESSION(
session_, &p);
65 VLOG(2) <<
"Could not serialize SSL_SESSION!";
67 ret.assign(uptr.get(), uptr.get() + written);
void folly::ssl::detail::SSLSessionImpl::upRef |
( |
| ) |
|
|
private |
SSL_SESSION* folly::ssl::detail::SSLSessionImpl::session_ {nullptr} |
|
private |
The documentation for this class was generated from the following files: