aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/cvc/cvc_self.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-08 21:11:25 +0000
committerlloyd <[email protected]>2008-10-08 21:11:25 +0000
commitfd710936ca8a3495b838404ca02a3ace62ba4a5d (patch)
tree083b0d5f885074cfc8866a639a7e5ec6927a0536 /src/cert/cvc/cvc_self.cpp
parent832dfea7d8d664ee186f94213185c51047ea6cfa (diff)
More compilation fixes for CVC code
Diffstat (limited to 'src/cert/cvc/cvc_self.cpp')
-rw-r--r--src/cert/cvc/cvc_self.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cert/cvc/cvc_self.cpp b/src/cert/cvc/cvc_self.cpp
index 340d01db6..3d11d6b03 100644
--- a/src/cert/cvc/cvc_self.cpp
+++ b/src/cert/cvc/cvc_self.cpp
@@ -157,7 +157,8 @@ EAC1_1_ADO create_ado_req(Private_Key const& key,
namespace DE_EAC
{
-EAC1_1_CVC create_cvca(Private_Key const& key, std::string const& hash, ASN1_Car const& car, bool iris, bool fingerpr)
+EAC1_1_CVC create_cvca(Private_Key const& key, std::string const& hash, ASN1_Car const& car, bool iris, bool fingerpr,
+ RandomNumberGenerator& rng)
{
ECDSA_PrivateKey const* priv_key = dynamic_cast<ECDSA_PrivateKey const*>(&key);
if (priv_key == 0)
@@ -173,7 +174,7 @@ EAC1_1_CVC create_cvca(Private_Key const& key, std::string const& hash, ASN1_Car
opts.cex.add_months(global_config().option_as_u32bit("eac/ca/cvca_validity_months"));
opts.holder_auth_templ = (CVCA | (iris * IRIS) | (fingerpr * FINGERPRINT));
opts.hash_alg = hash;
- return Botan::CVC_EAC::create_self_signed_cert(*priv_key, opts);
+ return Botan::CVC_EAC::create_self_signed_cert(*priv_key, opts, rng);
}
@@ -298,6 +299,7 @@ EAC1_1_CVC sign_request(EAC1_1_CVC const& signer_cert,
cex,
rng);
}
+
EAC1_1_Req create_cvc_req(Private_Key const& prkey,
ASN1_Chr const& chr,
std::string const& hash_alg)