|
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 is shaped like a fingerprint (40 or 64 hex digits) and ends in the key ID already there, so a subkey's fingerprint is never taken for the primary key's.
| props | The colon-split fields of the record. |
| current_user | The key being built; its key ID may be replaced. |
Definition at line 96 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 59 of file gpgkeystate.cpp.