From 34d5da54da524018580935da11525bd72b5a560e Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 27 Jun 2008 14:29:33 +0000 Subject: Remove load checking, as it requires an RNG (at least at the moment). Probably some variation of it will be added back in later, at least to do basic checks like that primes are really odd (and we can do basic primality checks, etc, even with an RNG). Alternative: call check_key() manually on public keys you load with an RNG object. --- checks/x509.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'checks/x509.cpp') diff --git a/checks/x509.cpp b/checks/x509.cpp index 92d9d43ed..015b050f6 100644 --- a/checks/x509.cpp +++ b/checks/x509.cpp @@ -84,7 +84,7 @@ void do_x509_tests() /* Create the CA's key and self-signed cert */ std::cout << '.' << std::flush; - RSA_PrivateKey ca_key(1024, rng); + RSA_PrivateKey ca_key(rng, 1024); std::cout << '.' << std::flush; X509_Certificate ca_cert = X509::create_self_signed_cert(ca_opts(), @@ -103,7 +103,7 @@ void do_x509_tests() /* Create user #2's key and cert request */ std::cout << '.' << std::flush; - RSA_PrivateKey user2_key(1024, rng); + RSA_PrivateKey user2_key(rng, 1024); std::cout << '.' << std::flush; PKCS10_Request user2_req = X509::create_cert_req(req_opts2(), user2_key, -- cgit v1.2.3