/*
* Utils for calling OpenSSL
* (C) 2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/

#ifndef BOTAN_OPENSSL_H__
#define BOTAN_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)) {}
   };

#define BOTAN_OPENSSL_BLOCK_PRIO 150
#define BOTAN_OPENSSL_HASH_PRIO  150
#define BOTAN_OPENSSL_RC4_PRIO   150

#define BOTAN_OPENSSL_RSA_PRIO     150
#define BOTAN_OPENSSL_ECDSA_PRIO   150

}

#endif

/*
* Utils for calling OpenSSL
* (C) 2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/

#ifndef BOTAN_OPENSSL_H__
#define BOTAN_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)) {}
   };

#define BOTAN_OPENSSL_BLOCK_PRIO 150
#define BOTAN_OPENSSL_HASH_PRIO  150
#define BOTAN_OPENSSL_RC4_PRIO   150

#define BOTAN_OPENSSL_RSA_PRIO     90
#define BOTAN_OPENSSL_ECDSA_PRIO   90

}

#endif

Make OpenSSL ECDSA and RSA request only until they can be tested
Make OpenSSL ECDSA and RSA request only until they can be tested
