diff options
author | lloyd <[email protected]> | 2008-06-11 01:20:24 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-11 01:20:24 +0000 |
commit | 4416c1a5dfa4a6dc71ec15107de290b3d5606bb1 (patch) | |
tree | 301787680ee49de3ee864bce1031521736fb3e44 /checks | |
parent | 184fe79523ad605ea3c820b83e984362433b2a7a (diff) |
X509::create_cert_req and X509::create_self_signed_cert take an RNG ref
Diffstat (limited to 'checks')
-rw-r--r-- | checks/x509.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
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; |