This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05950b7
commit b0357ec
Showing
4 changed files
with
29 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#ifndef OSSL_CORE_EXCEP_H_INCLUDE | ||
#define OSSL_CORE_EXCEP_H_INCLUDE | ||
|
||
#include <stdexcept> | ||
#include <openssl/err.h> | ||
|
||
#include "logger.h" | ||
|
||
std::string OPENSSL_get_errors(); | ||
|
||
#define LOG_ERROR(text) \ | ||
LOG_INFO("ERROR: %s\n%s", text, __FUNCTION__); | ||
|
||
#define THROW_ERROR(text) \ | ||
{LOG_ERROR(text); throw std::runtime_error(text);} | ||
|
||
#define THROW_OPENSSL(text) \ | ||
{LOG_ERROR(text);throw std::runtime_error(OPENSSL_get_errors().c_str());} | ||
|
||
#ifndef OSSL_CORE_EXCEP_H_INCLUDE | ||
#define OSSL_CORE_EXCEP_H_INCLUDE | ||
|
||
#include <stdexcept> | ||
#include <openssl/err.h> | ||
|
||
#include "logger.h" | ||
|
||
std::string OPENSSL_get_errors(); | ||
|
||
#define LOG_ERROR(text) \ | ||
LOG_INFO("ERROR: %s\n%s", text, __FUNCTION__); | ||
|
||
#define THROW_ERROR(text) \ | ||
{LOG_ERROR(text); throw std::runtime_error(text);} | ||
|
||
#define THROW_OPENSSL(text) \ | ||
{LOG_ERROR(text);throw std::runtime_error(OPENSSL_get_errors().c_str());} | ||
|
||
#endif // OSSL_CORE_EXCEP_H_INCLUDE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters