summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <kiagiadakis.george@gmail.com>2012-05-06 10:24:22 (GMT)
committerGeorge Kiagiadakis <kiagiadakis.george@gmail.com>2012-05-06 10:24:22 (GMT)
commit715508857d443b81568e6d905ea75de073f2061d (patch)
tree3eafb4aaba52a952c31824eb822a571abd1d7b4b
parent1efaa4a458335720461d187bdf11eea475abebaf (diff)
downloadqca-715508857d443b81568e6d905ea75de073f2061d.tar.gz
qca-715508857d443b81568e6d905ea75de073f2061d.tar.xz
Add the missing CertificateAuthority::createCertificate() method.
-rw-r--r--src/qca_cert.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qca_cert.cpp b/src/qca_cert.cpp
index eb5393f..b655617 100644
--- a/src/qca_cert.cpp
+++ b/src/qca_cert.cpp
@@ -2545,6 +2545,15 @@ Certificate CertificateAuthority::signRequest(const CertificateRequest &req, con
return c;
}
+Certificate CertificateAuthority::createCertificate(const PublicKey &key, const CertificateOptions &opts) const
+{
+ Certificate c;
+ CertContext *cc = static_cast<const CAContext *>(context())->createCertificate(*(static_cast<const PKeyContext *>(key.context())), opts);
+ if(cc)
+ c.change(cc);
+ return c;
+}
+
CRL CertificateAuthority::createCRL(const QDateTime &nextUpdate) const
{
CRL crl;