Commit 58c7ecce authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Append optional relax flag to (un)trusted root certificates

This makes our implementation more consistent with the implementation of
gpg-agent's MARKTRUSTED command which always appends " relax" to the
flag 'S'.

GnuPG-bug-id: 6096
parent 8e05bd71
......@@ -338,9 +338,9 @@ QString change_trust_file(const QString &trustListFile, const QString &key, Key:
if (!found) { // add
if (trust == Key::Ultimate) {
out.write(keyColon.toLatin1() + ' ' + 'S' + '\n');
out.write(keyColon.toLatin1() + " S relax\n");
} else if (trust == Key::Never) {
out.write('!' + keyColon.toLatin1() + ' ' + 'S' + '\n');
out.write('!' + keyColon.toLatin1() + " S relax\n");
}
}
......
Supports Markdown
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