diff options
author | lloyd <[email protected]> | 2008-10-08 21:11:25 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-08 21:11:25 +0000 |
commit | fd710936ca8a3495b838404ca02a3ace62ba4a5d (patch) | |
tree | 083b0d5f885074cfc8866a639a7e5ec6927a0536 /src/cert | |
parent | 832dfea7d8d664ee186f94213185c51047ea6cfa (diff) |
More compilation fixes for CVC code
Diffstat (limited to 'src/cert')
-rw-r--r-- | src/cert/cvc/cvc_self.cpp | 6 | ||||
-rw-r--r-- | src/cert/cvc/cvc_self.h | 10 |
2 files changed, 12 insertions, 4 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) diff --git a/src/cert/cvc/cvc_self.h b/src/cert/cvc/cvc_self.h index 608d93af8..a03d9e885 100644 --- a/src/cert/cvc/cvc_self.h +++ b/src/cert/cvc/cvc_self.h @@ -70,7 +70,8 @@ EAC1_1_Req create_cvc_req(Private_Key const& priv_key, */ EAC1_1_ADO create_ado_req(Private_Key const& priv_key, EAC1_1_Req const& req, - ASN1_Car const& car); + ASN1_Car const& car, + RandomNumberGenerator& rng); } /** * This namespace represents EAC 1.1 CVC convenience functions following the specific german @@ -95,7 +96,8 @@ EAC1_1_CVC create_cvca(Private_Key const& priv_key, std::string const& hash, ASN1_Car const& car, bool iris, - bool fingerpr); + bool fingerpr, + RandomNumberGenerator& rng); /** * Create a link certificate between two CVCA certificates. The key @@ -105,6 +107,7 @@ EAC1_1_CVC create_cvca(Private_Key const& priv_key, * @param priv_key the private key associated with the signer * @param to_be_signed the certificate which whose CAR/CHR will be * the holder of the link certificate +* @param rng a random number generator */ EAC1_1_CVC link_cvca(EAC1_1_CVC const& signer, Private_Key const& priv_key, @@ -118,11 +121,13 @@ EAC1_1_CVC link_cvca(EAC1_1_CVC const& signer, * sequence number) * @param hash_alg the string defining the hash algorithm to be used for the creation * of the signature +* @param rng a random number generator * @result the new request */ EAC1_1_Req create_cvc_req(Private_Key const& priv_key, ASN1_Chr const& chr, std::string const& hash_alg); + /** * Sign a CVC request. * @param signer_cert the certificate of the signing entity @@ -133,6 +138,7 @@ EAC1_1_Req create_cvc_req(Private_Key const& priv_key, * encoded in * @param domestic indicates whether to sign a domestic or a foreign certificate: * set to true for domestic +* @param rng a random number generator * @result the new certificate * **/ |