Open-Transactions  0.93.0-ge03d287
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
opentxs::OpenSSL_BIO Class Reference

#include <OpenSSL_BIO.hpp>

Public Member Functions

EXPORT OpenSSL_BIO (BIO *pBIO)
 
EXPORT ~OpenSSL_BIO ()
 
EXPORT operator BIO * () const
 
EXPORT void release ()
 
EXPORT void setFreeOnly ()
 

Detailed Description

Definition at line 143 of file OpenSSL_BIO.hpp.

Constructor & Destructor Documentation

opentxs::OpenSSL_BIO::OpenSSL_BIO ( BIO *  pBIO)

Definition at line 5048 of file OTCrypto.cpp.

5049  : m_refBIO(*assertBioNotNull(pBIO))
5050  , bCleanup(true)
5051  , bFreeOnly(false)
5052 {
5053 }
opentxs::OpenSSL_BIO::~OpenSSL_BIO ( )

Definition at line 5055 of file OTCrypto.cpp.

5056 {
5057  if (bCleanup) {
5058  if (bFreeOnly) {
5059  BIO_free(&m_refBIO);
5060  }
5061  else {
5062  BIO_free_all(&m_refBIO);
5063  }
5064  }
5065 }

Member Function Documentation

opentxs::OpenSSL_BIO::operator BIO * ( ) const

Definition at line 5067 of file OTCrypto.cpp.

5068 {
5069  return (&m_refBIO);
5070 }
void opentxs::OpenSSL_BIO::release ( )

Definition at line 5072 of file OTCrypto.cpp.

5073 {
5074  bCleanup = false;
5075 }
void opentxs::OpenSSL_BIO::setFreeOnly ( )

Definition at line 5077 of file OTCrypto.cpp.

5078 {
5079  bFreeOnly = true;
5080 }

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