From 4416c1a5dfa4a6dc71ec15107de290b3d5606bb1 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 11 Jun 2008 01:20:24 +0000 Subject: X509::create_cert_req and X509::create_self_signed_cert take an RNG ref --- checks/x509.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'checks') diff --git a/checks/x509.cpp b/checks/x509.cpp index 6a61ad361..30c4dbd53 100644 --- a/checks/x509.cpp +++ b/checks/x509.cpp @@ -78,7 +78,9 @@ void do_x509_tests() RSA_PrivateKey ca_key(1024, rng); std::cout << '.' << std::flush; - X509_Certificate ca_cert = X509::create_self_signed_cert(ca_opts(), ca_key); + X509_Certificate ca_cert = X509::create_self_signed_cert(ca_opts(), + ca_key, + rng); std::cout << '.' << std::flush; /* Create user #1's key and cert request */ @@ -86,13 +88,17 @@ void do_x509_tests() DSA_PrivateKey user1_key(DL_Group("dsa/jce/1024"), rng); std::cout << '.' << std::flush; - PKCS10_Request user1_req = X509::create_cert_req(req_opts1(), user1_key); + PKCS10_Request user1_req = X509::create_cert_req(req_opts1(), + user1_key, + rng); /* Create user #2's key and cert request */ std::cout << '.' << std::flush; RSA_PrivateKey user2_key(1024, rng); std::cout << '.' << std::flush; - PKCS10_Request user2_req = X509::create_cert_req(req_opts2(), user2_key); + PKCS10_Request user2_req = X509::create_cert_req(req_opts2(), + user2_key, + rng); /* Create the CA object */ std::cout << '.' << std::flush; -- cgit v1.2.3