|
QtPass 2.0.0
Developer documentation
|
Record handlers of the gpg colon-listing parser, declared separately only so the unit tests can call them; not for use outside gpgkeystate.cpp. More...
Go to the source code of this file.
Functions | |
| void | handlePubSecRecord (const QStringList &props, bool secret, UserInfo ¤t_user) |
| Start a key from a pub or sec record: key ID, the user ID the record may carry, validity, creation and expiry time. | |
| void | handleFprRecord (const QStringList &props, UserInfo ¤t_user) |
| Replace the key ID of the key being built with its fingerprint. | |
Record handlers of the gpg colon-listing parser, declared separately only so the unit tests can call them; not for use outside gpgkeystate.cpp.
Definition in file gpgkeystate_p.h.
| void handleFprRecord | ( | const QStringList & | props, |
| UserInfo & | current_user ) |
Replace the key ID of the key being built with its fingerprint.
Only when the fpr record's value has the expected fingerprint shape and contains the exact 16-hex key ID in its version-specific position: the tail for a 40-hex v4 fingerprint, the head for a 64-hex v5/v6 fingerprint. A subkey's fingerprint therefore cannot replace the primary key's ID.
| props | The colon-split fields of the record. |
| current_user | The key being built; its key ID may be replaced. |
Definition at line 160 of file gpgkeystate.cpp.
| void handlePubSecRecord | ( | const QStringList & | props, |
| bool | secret, | ||
| UserInfo & | current_user ) |
Start a key from a pub or sec record: key ID, the user ID the record may carry, validity, creation and expiry time.
An empty expiry field (gpg's "no expiry") leaves the date null. A record with fewer than ten fields changes nothing.
| props | The colon-split fields of the record. |
| secret | Whether to mark the key as having a secret part. |
| current_user | The key being built; filled in. |
Definition at line 61 of file gpgkeystate.cpp.