]> git.proxmox.com Git - ceph.git/blob - ceph/src/crypto/openssl/openssl_crypto_plugin.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / crypto / openssl / openssl_crypto_plugin.cc
1 /*
2 * Ceph - scalable distributed file system
3 *
4 * Copyright (C) 2017 Intel Corporation
5 *
6 * Author: Qiaowei Ren <qiaowei.ren@intel.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
16 #include "crypto/openssl/openssl_crypto_plugin.h"
17
18 #include "ceph_ver.h"
19
20 const char *__ceph_plugin_version()
21 {
22 return CEPH_GIT_NICE_VER;
23 }
24
25 int __ceph_plugin_init(CephContext *cct,
26 const std::string& type,
27 const std::string& name)
28 {
29 auto instance = cct->get_plugin_registry();
30
31 return instance->add(type, name, new OpenSSLCryptoPlugin(cct));
32 }