diff options
author | lloyd <[email protected]> | 2008-06-27 19:29:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-27 19:29:19 +0000 |
commit | cbcebfaad9ab6dc22186e93d259c6beed7fcff88 (patch) | |
tree | 73540a68f94fc397289c034f0babb0c645cecacc /doc/examples/dsa_sign.cpp | |
parent | e2a465b75d8baeac912e3f4d428ebc5e03fd76f1 (diff) |
Update some of the examples for the recent API changes
Diffstat (limited to 'doc/examples/dsa_sign.cpp')
-rw-r--r-- | doc/examples/dsa_sign.cpp | 4 |
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()); |