summaryrefslogtreecommitdiff
path: root/src/authAlgoFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/authAlgoFactory.cpp')
-rw-r--r--src/authAlgoFactory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/authAlgoFactory.cpp b/src/authAlgoFactory.cpp
index 4e51f36..333c47c 100644
--- a/src/authAlgoFactory.cpp
+++ b/src/authAlgoFactory.cpp
@@ -40,8 +40,10 @@ AuthAlgo* AuthAlgoFactory::create(std::string const& type)
{
if( type == "null" )
return new NullAuthAlgo();
+#ifndef NOCRYPT
else if( type == "sha1" )
return new Sha1AuthAlgo();
+#endif
else
throw std::invalid_argument("auth algo not available");
}