summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorPaulo Matias <matias@ufscar.br>2016-09-27 14:50:23 -0300
committerPaulo Matias <matias@ufscar.br>2016-09-27 15:03:04 -0300
commitce26bc05fff006695c7378ba6dfa721de0ac8fb7 (patch)
treea7fd7be39ace9655c151a9e27b2b799d3f8b5038 /mainwindow.cpp
parentf7635c045d3e30dfce76dfc6d5ec8d6e02264edd (diff)
Lookup validity field to check if keys are valid
Currently, the code checks the Ownertrust field [1] to look if a key should be considered as valid. However, the Ownertrust field should not be deemed to represent the level of confidence that a key is valid. Rather, it represents how much the user trusts in the owner of the key to understand correctly how key signing works and to strictly check fingerprints before signing keys. Ownertrust is used as input by the trust models to compute the validity of keys, which is printed by GnuPG in the Validity field. This commit changes the code to check the Validity field instead of the Ownertrust field. Keys which are at least marginally valid are also included in the user list dialog, however keys which are not fully valid are printed with dark orange background. [1] http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob_plain;f=doc/DETAILS
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 2892d687..16617875 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -1380,7 +1380,7 @@ QList<UserInfo> MainWindow::listKeys(QString keystring, bool secret) {
current_user = UserInfo();
current_user.key_id = props[4];
current_user.name = props[9].toUtf8();
- current_user.validity = props[8][0].toLatin1();
+ current_user.validity = props[1][0].toLatin1();
current_user.created.setTime_t(props[5].toInt());
current_user.expiry.setTime_t(props[6].toInt());
} else if (current_user.name.isEmpty() && props[0] == "uid") {