Commit c83718bf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Store CheckSignatureAuthenticationResult

parent 6afabe16
......@@ -92,6 +92,7 @@ void DKIMCheckFullJob::checkSignature(const QVector<DKIMCheckSignatureJob::DKIMC
job->setMessage(mMessage);
job->setHeaderParser(mHeaderParser);
job->setPolicy(mCheckPolicy);
job->setCheckSignatureAuthenticationResult(lst);
job->start();
}
......
......@@ -52,7 +52,7 @@ MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult DKIMCheckSignatureJob
result.sdid = mDkimInfo.domain();
result.auid = mDkimInfo.agentOrUserIdentifier();
result.fromEmail = mFromEmail;
//TODO result.listSignatureAuthenticationResult =
result.listSignatureAuthenticationResult = mCheckSignatureAuthenticationResult;
return result;
}
......@@ -261,6 +261,11 @@ void DKIMCheckSignatureJob::setHeaderParser(const DKIMHeaderParser &headerParser
mHeaderParser = headerParser;
}
void DKIMCheckSignatureJob::setCheckSignatureAuthenticationResult(const QVector<DKIMCheckSignatureJob::DKIMCheckSignatureAuthenticationResult> &lst)
{
mCheckSignatureAuthenticationResult = lst;
}
QString DKIMCheckSignatureJob::bodyCanonizationSimple() const
{
/*
......
......@@ -145,6 +145,8 @@ public:
void setHeaderParser(const DKIMHeaderParser &headerParser);
void setCheckSignatureAuthenticationResult(const QVector<DKIMCheckSignatureJob::DKIMCheckSignatureAuthenticationResult> &lst);
Q_SIGNALS:
void result(const MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult &checkResult);
void storeKey(const QString &key, const QString &domain, const QString &selector);
......@@ -160,6 +162,7 @@ private:
Q_REQUIRED_RESULT MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult createCheckResult();
void verifyRSASignature();
void computeHeaderCanonization(bool removeQuoteOnContentType);
QVector<DKIMCheckSignatureJob::DKIMCheckSignatureAuthenticationResult> mCheckSignatureAuthenticationResult;
DKIMCheckPolicy mPolicy;
DKIMHeaderParser mHeaderParser;
KMime::Message::Ptr mMessage;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment