aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509self.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/x509self.cpp')
-rw-r--r--src/x509self.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/x509self.cpp b/src/x509self.cpp
index 5707c1a58..9820c0270 100644
--- a/src/x509self.cpp
+++ b/src/x509self.cpp
@@ -21,9 +21,9 @@ namespace {
* Shared setup for self-signed items *
*************************************************/
MemoryVector<byte> shared_setup(const X509_Cert_Options& opts,
- const PKCS8_PrivateKey& key)
+ const Private_Key& key)
{
- const PKCS8_PrivateKey* key_pointer = &key;
+ const Private_Key* key_pointer = &key;
if(!dynamic_cast<const PK_Signing_Key*>(key_pointer))
throw Invalid_Argument("Key type " + key.algo_name() + " cannot sign");
@@ -63,7 +63,7 @@ namespace X509 {
* Create a new self-signed X.509 certificate *
*************************************************/
X509_Certificate create_self_signed_cert(const X509_Cert_Options& opts,
- const PKCS8_PrivateKey& key)
+ const Private_Key& key)
{
AlgorithmIdentifier sig_algo;
X509_DN subject_dn;
@@ -100,7 +100,7 @@ X509_Certificate create_self_signed_cert(const X509_Cert_Options& opts,
* Create a PKCS #10 certificate request *
*************************************************/
PKCS10_Request create_cert_req(const X509_Cert_Options& opts,
- const PKCS8_PrivateKey& key)
+ const Private_Key& key)
{
AlgorithmIdentifier sig_algo;
X509_DN subject_dn;