@@ -51,7 +51,7 @@ using namespace ria::qdigidoc4;
5151
5252Q_LOGGING_CATEGORY (CRYPTO, " CRYPTO" )
5353
54- CDKey::CDKey (QSslCertificate _rcpt_cert) : lock(libcdoc::Lock::PUBLIC_KEY), rcpt_cert(_rcpt_cert) {
54+ CKey::CKey (QSslCertificate _rcpt_cert) : lock(libcdoc::Lock::PUBLIC_KEY), rcpt_cert(_rcpt_cert) {
5555 SslCertificate ssl (rcpt_cert);
5656 lock.pk_type = (rcpt_cert.publicKey ().algorithm () == QSsl::Ec) ? libcdoc::PKType::ECC : libcdoc::PKType::RSA;
5757 QByteArray der = ssl.publicKeyDer ();
@@ -61,7 +61,7 @@ CDKey::CDKey(QSslCertificate _rcpt_cert) : lock(libcdoc::Lock::PUBLIC_KEY), rcpt
6161}
6262
6363bool
64- CDKey ::operator ==(const CDKey & rhs) const
64+ CKey ::operator ==(const CKey & rhs) const
6565{
6666 if (!lock.isPKI () || !rhs.lock .isPKI ()) return false ;
6767 return lock.getBytes (libcdoc::Lock::RCPT_KEY) == rhs.lock .getBytes (libcdoc::Lock::RCPT_KEY);
@@ -82,7 +82,7 @@ struct CryptoDoc::Private
8282 DDNetworkBackend network;
8383
8484 std::vector<IOEntry> files;
85- std::vector<CDKey > keys;
85+ std::vector<CKey > keys;
8686
8787 bool isEncryptedWarning (const QString &title) const ;
8888
@@ -251,7 +251,7 @@ CryptoDoc::supportsSymmetricKeys() const
251251 return !d->reader && (d->version == 2 );
252252}
253253
254- bool CryptoDoc::addEncryptionKey (const CDKey & key) {
254+ bool CryptoDoc::addEncryptionKey (const CKey & key) {
255255 if (d->isEncryptedWarning (tr (" Failed to add key" )))
256256 return false ;
257257 for (auto &k : d->keys ) {
@@ -521,7 +521,7 @@ bool CryptoDoc::encrypt(const QString &filename, const QString& label, const QBy
521521
522522QString CryptoDoc::fileName () const { return d->fileName ; }
523523
524- const std::vector<CDKey >&
524+ const std::vector<CKey >&
525525CryptoDoc::keys () const
526526{
527527 return d->keys ;
0 commit comments