Commit 9b6cb5af authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Use oidForAttributeName() from libkleo

parent f6527c5e
Pipeline #42659 failed with stage
in 10 minutes and 30 seconds
......@@ -15,7 +15,7 @@ option(DISABLE_KWATCHGNUPG "Don't build the kwatchgnupg tool [default=OFF]" OFF)
# Standalone build. Find / include everything necessary.
set(KF5_MIN_VERSION "5.76.0")
set(KMIME_VERSION "5.16.40")
set(LIBKLEO_VERSION "5.16.41")
set(LIBKLEO_VERSION "5.16.42")
set(QT_REQUIRED_VERSION "5.13.0")
set(GPGME_REQUIRED_VERSION "1.13.1")
......
......@@ -28,8 +28,8 @@
#include <utils/validation.h>
#include <utils/filedialog.h>
#include <Libkleo/GnuPG>
#include <Libkleo/GnuPG>
#include <Libkleo/Stl_Util>
#include <Libkleo/Dn>
#include <Libkleo/OidMap>
......@@ -1288,16 +1288,6 @@ static QString attributeFromKey(QString key)
return key.remove(QLatin1Char('!'));
}
static const char *oidForAttributeName(const QString &attr)
{
QByteArray attrUtf8 = attr.toUtf8();
for (unsigned int i = 0; i < numOidMaps; ++i)
if (qstricmp(attrUtf8.constData(), oidmap[i].name) == 0) {
return oidmap[i].oid;
}
return nullptr;
}
QDir WizardPage::tmpDir() const
{
return wizard() ? QDir(wizard()->d->tmp.path()) : QDir::home();
......
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