BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Namespaces | Macros | Functions
openssl.cpp File Reference
#include <fc/crypto/openssl.hpp>
#include <fc/filesystem.hpp>
#include <boost/filesystem/path.hpp>
#include <cstdlib>
#include <string>
#include <stdlib.h>

Go to the source code of this file.

Classes

struct  fc::openssl_scope
 

Namespaces

 fc
 

Macros

#define SSL_TYPE_IMPL(name, ssl_type, free_func)
 

Functions

void fc::store_configuration_path (const path &filePath)
 
int fc::init_openssl ()
 

Macro Definition Documentation

◆ SSL_TYPE_IMPL

#define SSL_TYPE_IMPL (   name,
  ssl_type,
  free_func 
)
Value:
name::name( ssl_type* obj ) : ssl_wrapper(obj) {} \
name::name( name&& move ) : ssl_wrapper( move.obj ) \
{ \
move.obj = nullptr; \
} \
name::~name() \
{ \
if( obj != nullptr ) \
free_func(obj); \
} \
name& name::operator=( name&& move ) \
{ \
if( this != &move ) \
{ \
if( obj != nullptr ) \
free_func(obj); \
obj = move.obj; \
move.obj = nullptr; \
} \
return *this; \
}

Definition at line 69 of file openssl.cpp.