#include "crypto/crypto_accel.h"
// -----------------------------------------------------------------------------
-class CryptoPlugin : public Plugin {
+class CryptoPlugin : public ceph::Plugin {
public:
CryptoAccelRef cryptoaccel;
const std::string& type,
const std::string& name)
{
- PluginRegistry *instance = cct->get_plugin_registry();
+ auto instance = cct->get_plugin_registry();
return instance->add(type, name, new ISALCryptoPlugin(cct));
}
~ISALCryptoPlugin()
{}
virtual int factory(CryptoAccelRef *cs,
- ostream *ss)
+ std::ostream *ss)
{
if (cryptoaccel == nullptr)
{
#undef dout_prefix
#define dout_prefix _prefix(_dout)
-static ostream&
+static std::ostream&
_prefix(std::ostream* _dout)
{
return *_dout << "OpensslCryptoAccel: ";
const std::string& type,
const std::string& name)
{
- PluginRegistry *instance = cct->get_plugin_registry();
+ auto instance = cct->get_plugin_registry();
return instance->add(type, name, new OpenSSLCryptoPlugin(cct));
}
public:
explicit OpenSSLCryptoPlugin(CephContext* cct) : CryptoPlugin(cct)
{}
- int factory(CryptoAccelRef *cs, ostream *ss) override {
+ int factory(CryptoAccelRef *cs, std::ostream *ss) override {
if (cryptoaccel == nullptr)
cryptoaccel = CryptoAccelRef(new OpenSSLCryptoAccel);