aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-07-04 20:10:14 -0400
committerJack Lloyd <[email protected]>2015-07-04 20:10:14 -0400
commitfee04efff8f4a89589d3bf65ba7d377f1b6b7c65 (patch)
treeb66e06876422e555ba4d906a6072f0276f1e0116 /src/tests
parent687dbec558339b6ab1f4d04e821723c2165d0b84 (diff)
MSVC fix, for some reason it believes the load_key call to be ambigious
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_c25519.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/test_c25519.cpp b/src/tests/test_c25519.cpp
index 0012b5490..1e5854c35 100644
--- a/src/tests/test_c25519.cpp
+++ b/src/tests/test_c25519.cpp
@@ -59,7 +59,8 @@ size_t c25519_roundtrip()
DataSource_Memory a_priv_ds(a_priv_pem);
DataSource_Memory b_priv_ds(b_priv_pem);
- std::unique_ptr<Private_Key> a_priv(PKCS8::load_key(a_priv_ds, rng, []() { return "alice pass"; }));
+ std::function<std::string ()> a_pass_fn = []() { return "alice pass"; };
+ std::unique_ptr<Private_Key> a_priv(PKCS8::load_key(a_priv_ds, rng, a_pass_fn));
std::unique_ptr<Private_Key> b_priv(PKCS8::load_key(b_priv_ds, rng, "bob pass"));
// Export public keys as PEM