aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/dsa_sign.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/dsa_sign.cpp')
-rw-r--r--doc/examples/dsa_sign.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/dsa_sign.cpp b/doc/examples/dsa_sign.cpp
index 97d8e2918..67800497e 100644
--- a/doc/examples/dsa_sign.cpp
+++ b/doc/examples/dsa_sign.cpp
@@ -48,8 +48,10 @@ int main(int argc, char* argv[])
return 1;
}
+ std::auto_ptr<RandomNumberGenerator> rng(make_rng());
+
std::auto_ptr<PKCS8_PrivateKey> key(
- PKCS8::load_key(argv[1], passphrase)
+ PKCS8::load_key(argv[1], *rng, passphrase)
);
DSA_PrivateKey* dsakey = dynamic_cast<DSA_PrivateKey*>(key.get());