aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509self.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-11 01:15:31 +0000
committerlloyd <[email protected]>2008-06-11 01:15:31 +0000
commit184fe79523ad605ea3c820b83e984362433b2a7a (patch)
treefeca060d82d2e0cbdbddc2f29f00c7b7db682974 /src/x509self.cpp
parent7253964aba9ca41a88261557d8cd91df39cd4b88 (diff)
Modify X509_CA::make_cert and X509_CA::sign_request to take a RNG reference
argument in favor of referencing the global PRNG argument
Diffstat (limited to 'src/x509self.cpp')
-rw-r--r--src/x509self.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/x509self.cpp b/src/x509self.cpp
index b9e558b7a..9e035ff7d 100644
--- a/src/x509self.cpp
+++ b/src/x509self.cpp
@@ -91,7 +91,9 @@ X509_Certificate create_self_signed_cert(const X509_Cert_Options& opts,
extensions.add(
new Cert_Extension::Basic_Constraints(opts.is_CA, opts.path_limit));
- return X509_CA::make_cert(signer.get(), sig_algo, pub_key,
+ RandomNumberGenerator& rng = global_state().prng_reference();
+
+ return X509_CA::make_cert(signer.get(), rng, sig_algo, pub_key,
opts.start, opts.end,
subject_dn, subject_dn,
extensions);