no encryption when encryption is not specified
vespalib::CryptoEngine::SP my_crypto_engine() {
const char *env_str = getenv("CRYPTOENGINE");
if (!env_str) {
- fprintf(stderr, "crypto engine: default\n");
- return vespalib::CryptoEngine::get_default();
+ fprintf(stderr, "crypto engine: null\n");
+ return std::make_shared<vespalib::NullCryptoEngine>();
}
std::string engine(env_str);
if (engine == "xor") {
