Callbacks.hpp

This File On Github
Ask A Question

API: latest
module: oatpp-libressl
#include "oatpp-libressl/Callbacks.hpp"

Callbacks

Collection of default-implemented callbacks for libressl

namespace oatpp { namespace libressl { 
  class Callbacks {}
}}

Methods

Return Type Name Summary
void setDefaultCallbacks Set default callbacks for libressl
void lockingCallback Oatpp-default implementation of lockingCallback passed to CRYPTO_set_locking_callback().

Callbacks::setDefaultCallbacks

Set default callbacks for libressl

static void setDefaultCallbacks()

Callbacks::lockingCallback

Oatpp-default implementation of lockingCallback passed to CRYPTO_set_locking_callback(). must be set in case libressl is used in multithreaded environment. Locking is done using oatpp::concurrency::SpinLock.

  • @param mode
  • @param n - index of the lock.
  • @param file - file where lock is set.
  • @param line - line where lock is set.

static void lockingCallback(int mode, int n, const char* file, int line)