diff options
author | lloyd <[email protected]> | 2006-09-06 19:51:17 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-06 19:51:17 +0000 |
commit | 559e2860f0716dc5c40697a08a790d3b7c42ce8e (patch) | |
tree | 358bafd6ffd1609da224fb100cb2f39f3af3af03 /src/x509_ca.cpp | |
parent | e00227828d80f9c9a17ef236586211faa01e4193 (diff) |
Rename instances of X509_PublicKey and PKCS8_PrivateKey
Diffstat (limited to 'src/x509_ca.cpp')
-rw-r--r-- | src/x509_ca.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/x509_ca.cpp b/src/x509_ca.cpp index d074afbe2..baa2c095c 100644 --- a/src/x509_ca.cpp +++ b/src/x509_ca.cpp @@ -24,9 +24,9 @@ namespace Botan { * Load the certificate and private key * *************************************************/ X509_CA::X509_CA(const X509_Certificate& c, - const PKCS8_PrivateKey& key) : cert(c) + const Private_Key& key) : cert(c) { - const PKCS8_PrivateKey* key_pointer = &key; + const Private_Key* key_pointer = &key; if(!dynamic_cast<const PK_Signing_Key*>(key_pointer)) throw Invalid_Argument("X509_CA: " + key.algo_name() + " cannot sign"); @@ -50,7 +50,7 @@ X509_Certificate X509_CA::sign_request(const PKCS10_Request& req, constraints = Key_Constraints(KEY_CERT_SIGN | CRL_SIGN); else { - std::auto_ptr<X509_PublicKey> key(req.subject_public_key()); + std::auto_ptr<Public_Key> key(req.subject_public_key()); constraints = X509::find_constraints(*key, req.constraints()); } @@ -243,7 +243,7 @@ X509_CA::~X509_CA() /************************************************* * Choose a signing format for the key * *************************************************/ -PK_Signer* choose_sig_format(const PKCS8_PrivateKey& key, +PK_Signer* choose_sig_format(const Private_Key& key, AlgorithmIdentifier& sig_algo) { std::string padding; |