aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/cms_dec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/cms_dec.cpp')
-rw-r--r--doc/examples/cms_dec.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/examples/cms_dec.cpp b/doc/examples/cms_dec.cpp
index 08d43e7b8..f35d63fa6 100644
--- a/doc/examples/cms_dec.cpp
+++ b/doc/examples/cms_dec.cpp
@@ -17,11 +17,10 @@ int main(int argc, char* argv[])
LibraryInitializer init;
try {
- std::auto_ptr<RandomNumberGenerator> rng(
- RandomNumberGenerator::make_rng());
+ AutoSeeded_RNG rng;
X509_Certificate mycert("mycert.pem");
- PKCS8_PrivateKey* mykey = PKCS8::load_key("mykey.pem", *rng, "cut");
+ PKCS8_PrivateKey* mykey = PKCS8::load_key("mykey.pem", rng, "cut");
X509_Certificate yourcert("yourcert.pem");
X509_Certificate cacert("cacert.pem");