diff options
author | Jack Lloyd <[email protected]> | 2015-08-29 07:55:30 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-08-29 07:55:30 -0400 |
commit | d9de3157bc1d06c4f5f250b5b7ef635474973c85 (patch) | |
tree | 405f1dd8f59466b65a9901a8595a5c6a4599c1bd /src/lib/vendor/openssl/openssl.h | |
parent | 6efa5a930c3f75b9203c27303448e602f8bc781c (diff) |
Fix minimized builds and amalgamation builds
No need to include the pk_utils.h header until we know ECDSA
is enabled in the build.
Move OpenSSL_Error to an internal header, was previously defined
twice when all sources were combined.
Diffstat (limited to 'src/lib/vendor/openssl/openssl.h')
-rw-r--r-- | src/lib/vendor/openssl/openssl.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/vendor/openssl/openssl.h b/src/lib/vendor/openssl/openssl.h new file mode 100644 index 000000000..1ffaed519 --- /dev/null +++ b/src/lib/vendor/openssl/openssl.h @@ -0,0 +1,28 @@ +/* +* Utils for calling OpenSSL +* (C) 2015 Jack Lloyd +* +* Botan is released under the Simplified BSD License (see license.txt) +*/ + +#ifndef BOTAN_CALL_OPENSSL_H__ +#define BOTAN_CALL_OPENSSL_H__ + +#include <botan/secmem.h> +#include <botan/exceptn.h> +#include <memory> + +#include <openssl/err.h> + +namespace Botan { + +class OpenSSL_Error : public Exception + { + public: + OpenSSL_Error(const std::string& what) : + Exception(what + " failed: " + ERR_error_string(ERR_get_error(), nullptr)) {} + }; + +} + +#endif |