17 Commits

Author SHA1 Message Date
Saleem Edah-Tally
be47316219 Expand developer string. 2022-11-19 15:56:56 +01:00
SET
e4f8ac9c3a Remove useless conditional.
Not forwarding customized message to UI in EditUidValidity().
2020-11-23 22:03:28 +01:00
SET
e14a5c19f4 Log GpgME errors.
In file WT_APP_ROOT/gpgme.log.

Independently of usual Wt logging.
2020-11-23 22:02:55 +01:00
SET
b726b89086 Use new Context::setExpire to set expiration dates.
If no subkey is found (wrong fpr) or not provided, the expiry time of 
the key is set instead.

setExpire() allows to expire all subkeys at once. Not implemented here.

Requires GPGME >= 1.15.0.
2020-11-23 11:46:41 +01:00
SET
14964f9862 Validate uid certification input.
Check all input in the popup before calling KeyEdit::
2020-11-22 14:48:27 +01:00
SET
6f15ab4d06 Refractor some identifiers to be more meaningful.
m_popupUid -> m_popupCertifyUid
CertifyKey() -> EditUidValidity()
2020-11-22 14:28:52 +01:00
SET
110e5e4fb3 Allow revoking key certifications.
Certified user identities in keys can be revoked using the same popup
for certification.

Requires GnuPG 2.2.24 (not available in distro's repository, not fully
tested to date).
2020-11-22 14:22:08 +01:00
SET
e9a55a1f69 Allow changing subkey expiry time.
Needs GPGME 1.15.0.
Using the same UI for changing expiry time of the primary secret key.
2020-11-21 20:59:32 +01:00
SET
bb174075df Allow to add and revoke user identities.
Using a popup with required parameters.
2020-11-19 19:16:17 +01:00
SET
a721bb0225 Use common code formatting style. 2020-11-14 14:46:28 +01:00
SET
6ac7ea7c0f Reorganize code.
Move KeyEdit::IsOurKey to Tools::IsOurKey.
2020-11-14 11:25:00 +01:00
SET
2bddf29596 Allow to change key expiry date.
Select new date in a popup. Controlled by a specific configuration flag.
2020-11-07 22:25:07 +01:00
SET
fcd595d530 Rename variable.
Prepare for other edits in KeyEdit (change expiry date).
m_targetKeyFpr -> m_targetUidValidityKeyFpr.
2020-11-07 18:54:38 +01:00
SET
c8b2f81bf8 Optimize certification trust level management.
A private key should be editable to Unknown or Ultimate levels only.
A public key should be editable to all levels except Ultimate.
Undefined level is excluded for both public and private keys.

The public WTreeTableNode may list private keys if the user does not manage
these private keys. Inform of this state in the tool tip. The certification
trust level is excluded for any change.
2020-11-06 21:42:50 +01:00
SET
54fa245fa8 Allow certification trust level to be editable for any key.
Imported primary keys also have unknown trust level, when they have
been generated in other keyrings.

Later, we should decide whether to exclude any primary key with ultimate
trust level from any further change.
2020-11-04 21:00:03 +01:00
SET
7f8af95d3a Certify key.
In-place editing with a popup if user is allowed in app config file.
User must of course manage at least a private key. User identities of
target key may be selectively chosen. Optionally, certification may be
exportable and non-revocable.
2020-11-03 11:06:25 +01:00
SET
e434315940 Edit owner trust level.
Inplace editing with a combobox if user is allowed. in app config file.
2020-10-25 17:28:47 +01:00