Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / crypto / crypto_plugin.h
1 /*
2  * Ceph - scalable distributed file system
3  *
4  * Copyright (C) 2016 Mirantis, Inc.
5  *
6  * Author: Adam Kupczyk <akupczyk@mirantis.com>
7  *
8  *  This library is free software; you can redistribute it and/or
9  *  modify it under the terms of the GNU Lesser General Public
10  *  License as published by the Free Software Foundation; either
11  *  version 2.1 of the License, or (at your option) any later version.
12  *
13  */
14
15 #ifndef CRYPTO_PLUGIN_H
16 #define CRYPTO_PLUGIN_H
17
18 // -----------------------------------------------------------------------------
19 #include "include/memory.h"
20 #include "common/PluginRegistry.h"
21 #include "ostream"
22
23 #include "crypto/crypto_accel.h"
24 // -----------------------------------------------------------------------------
25
26 class CryptoPlugin : public Plugin {
27
28 public:
29   explicit CryptoPlugin(CephContext* cct) : Plugin(cct)
30   {}
31   ~CryptoPlugin()
32   {}
33   virtual int factory(CryptoAccelRef *cs,
34                       std::ostream *ss) = 0;
35 };
36 #endif