aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/kdf/kdf.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-22 18:49:30 -0400
committerJack Lloyd <[email protected]>2017-09-22 18:49:30 -0400
commitf8f2912d24bad8b162b89e34ab62c415aef98843 (patch)
treef318dc75953a8b92fef0420855ea3cdcd40ca265 /src/lib/kdf/kdf.cpp
parent00bf32562653b468b1b7a2b3ed3eb10f95bf230e (diff)
Cryptobox code modernization
Only encrypt so it's easy to verify everything still works.
Diffstat (limited to 'src/lib/kdf/kdf.cpp')
-rw-r--r--src/lib/kdf/kdf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/kdf/kdf.cpp b/src/lib/kdf/kdf.cpp
index f3d962c14..a1b0b91a9 100644
--- a/src/lib/kdf/kdf.cpp
+++ b/src/lib/kdf/kdf.cpp
@@ -221,9 +221,9 @@ std::unique_ptr<KDF>
KDF::create_or_throw(const std::string& algo,
const std::string& provider)
{
- if(auto bc = KDF::create(algo, provider))
+ if(auto kdf = KDF::create(algo, provider))
{
- return bc;
+ return kdf;
}
throw Lookup_Error("KDF", algo, provider);
}