Messagelib

dkimutil.h
1 /*
2  SPDX-FileCopyrightText: 2018-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 #include "dkimchecksignaturejob.h"
9 #include "messageviewer_private_export.h"
10 #include <QCryptographicHash>
11 #include <QString>
12 namespace MessageViewer
13 {
14 namespace DKIMUtil
15 {
16 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT QString bodyCanonizationRelaxed(QString body);
17 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT QString bodyCanonizationSimple(QString body);
18 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT QByteArray generateHash(const QByteArray &body, QCryptographicHash::Algorithm algo);
19 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT QString headerCanonizationSimple(const QString &headerName, const QString &headerValue);
20 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT QString headerCanonizationRelaxed(const QString &headerName,
21  const QString &headerValue,
22  bool removeQuoteOnContentType);
23 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT QString cleanString(QString str);
24 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT QString emailDomain(const QString &emailDomain);
25 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT QString emailSubDomain(const QString &emailDomain);
26 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT QString defaultConfigFileName();
27 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT QString convertAuthenticationMethodEnumToString(DKIMCheckSignatureJob::AuthenticationMethod);
28 Q_REQUIRED_RESULT MESSAGEVIEWER_TESTS_EXPORT DKIMCheckSignatureJob::AuthenticationMethod convertAuthenticationMethodStringToEnum(const QString &str);
29 }
30 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.