mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 09:23:13 +01:00
7e95ff90c8
git-svn-id: http://encfs.googlecode.com/svn/trunk@95 db9cf616-1c43-0410-9cb8-a902689de0d6
32 lines
502 B
C++
32 lines
502 B
C++
#include "cipher/BlockCipher.h"
|
|
|
|
// TODO: add ifdef when OpenSSL becomes optional.
|
|
#include "cipher/openssl.h"
|
|
#include "cipher/NullCiphers.h"
|
|
|
|
namespace encfs {
|
|
|
|
Registry<BlockCipher>& BlockCipher::GetRegistry()
|
|
{
|
|
static Registry<BlockCipher> registry;
|
|
static bool first = true;
|
|
if (first)
|
|
{
|
|
OpenSSL::registerCiphers();
|
|
NullCiphers::registerCiphers();
|
|
first = false;
|
|
}
|
|
return registry;
|
|
}
|
|
|
|
BlockCipher::BlockCipher()
|
|
{
|
|
}
|
|
|
|
BlockCipher::~BlockCipher()
|
|
{
|
|
}
|
|
|
|
} // namespace encfs
|
|
|