common: only call crypto::init once per CephContext
Signed-off-by: Casey Bodley <firstname.lastname@example.org>
(cherry picked from commit 9dfc153)
@oritwas does this backport look good to merge ? It passed the rados (http://tracker.ceph.com/issues/17487#note-12), upgrade/jewel-x and upgrade/hammer-x (http://tracker.ceph.com/issues/17487#note-15) suites (except for two bugs that are, I believe, unrelated)
@dachary, this is a good fix. But have one question: is it better to set this init_crypto as private function, and be called inside the CephContext construction func?